Home Page Icon
Home Page
Table of Contents for
Cover
Close
Cover
by Dieter Ziethen
CATIA V5 Macro Programming with Visual Basic Script
Cover
About the Author
Title Page
Copyright Page
Contents
Preface
1. Basics
1.1 Definition of CATScript and CATVBS
1.2 Definition of Nomenclature
1.3 Definition of Object, Class, and Object Path
1.3.1 Object and Class
1.3.2 Object Path
1.3.3 Root Class and Base Classes
1.4 Basic Example of a Macro
1.5 Selecting a Macro Editor
1.6 Storage of a Macro
1.6.1 Storage in a CATIA Document
1.6.2 Storage in a Separate File
1.7 Starting a Macro from a Button
1.7.1 Assigning a Macro to a Button
1.7.2 Creating a Toolbar
1.7.3 Assigning a Button to a Toolbar
1.8 Blocks of a Macro
1.8.1 Head of a Macro
1.8.2 Declaration of Global Variables and Objects
1.8.3 CATMain, Subroutines, and Functions
1.9 Branches and Loops
1.9.1 If-Then-Else
1.9.2 Select-Case-Else
1.9.3 For-Next
1.9.4 Do-While
1.9.5 Do Until
1.10 Anchor Objects of CATScript
1.10.1 CATIA-Application
1.10.2 CATIA Documents “CATPart” and “CATProduct”
1.10.3 Geometry Containers in CATParts
1.10.4 Structural Information and Metadata
1.11 Using the Macro Recorder
1.12 Additional Information
2. Communicating with the Environment
2.1 Screen Output and Input
2.1.1 Screen Output
2.1.2 Screen Input
2.2 Create, Load, and Save CATIA Documents
2.2.1 Creating Documents
2.2.2 Loading Documents
2.2.3 Saving Documents
2.3 User Selection of CATIA Elements
2.3.1 Selection before Starting a Macro
2.3.2 Selection during the Execution of a Macro
2.4 Searching and Recognizing Elements
2.4.1 Search
2.4.2 Recognize
2.5 Color and Hide Elements
2.5.1 Coloring Elements
2.5.2 Hiding Elements
2.6 Reading and Writing Data
2.6.1 Create or Declare a File
2.6.2 Reading Data
2.6.3 Writing Data
2.7 Executing External Programs and CATScripts
2.7.1 External Program
2.7.2 External CATScript
2.8 Reading Environment Variables
3. Components of CATParts
3.1 Attributes
3.1.1 Standard Attributes
3.1.2 Custom Attributes
3.2 Origin Elements
3.3 Bodies, Geometrical Sets, and Ordered Geometrical Sets
3.3.1 Bodies
3.3.2 Geometrical Sets
3.3.3 Ordered Geometrical Sets
3.3.4 Boolean Operations between Bodies
3.4 Parameters and Relations
3.4.1 Parameter
3.4.2 Design Table
3.4.3 Formulas
3.5 References
3.5.1 References to Geometry
3.5.2 References to Objects
3.5.3 References to Object Names
3.5.4 References to the Name of the Boundary Representation
3.6 Direction Definition
3.6.1 Direction Defined by a Vector
3.6.2 Direction Defined by an Object
4. Components of CATProducts
4.1 Attributes
4.2 Parameters and Formulas
4.3 Assembly Structure
4.3.1 Analyzing an Existing Structure
4.3.2 Adding Elements
4.3.3 Replacing Elements
4.3.4 Deleting Elements
4.4 Constraints
5. 2D Wireframe Geometry
5.1 Sketch References and Sketch Objects
5.2 Creating Sketch Geometry
5.3 Defining Construction Elements and the Rotation Axis
5.4 Creating Constraints
6. 3D Wireframe Geometry and Surfaces
6.1 General Procedure
6.2 Points
6.2.1 Methods for Creating Points
6.2.2 Case Studies: Points
6.3 Lines
6.3.1 Methods for Creating Lines
6.3.2 Case Studies: Lines
6.4 Planes
6.4.1 Methods for Creating Planes
6.4.2 Case Studies: Planes
6.5 Curves
6.5.1 Methods for Creating Curves
6.5.2 Case Studies: Curves
6.6 Surfaces
6.6.1 Methods for Creating Surfaces
6.6.2 Case Studies: Surfaces
6.7 Transformations
6.7.1 Methods for Creating Transformations
6.7.2 Case Studies: Transformations
6.8 Operations
6.8.1 Methods for Creating Operations
6.8.2 Case Studies: Operations
7. Solids
7.1 General Procedure
7.2 Sketch-Based Solids
7.2.1 Methods for Creating Sketch-Based Solids
7.2.2 Case Studies: Sketch-Based Solids
7.3 Surface-Based Solids
7.3.1 Methods for Creating Surface-Based Solids
7.3.2 Case Studies: Surface-Based Solids
7.4 Transformation-Based Solids
7.4.1 Methods for Creating Transformation-Based Solids
7.4.2 Case Studies: Transformation-Based Solids
7.5 Operations
7.5.1 Methods for Creating Operations on Solids
7.5.2 Case Studies: Operations
8. Featured Object Classes
8.1 Add
8.2 Angle
8.3 AngularRepartition
8.4 AnyObject
8.5 Application
8.6 Assemble
8.7 Axis2D
8.8 Bodies
8.9 Body
8.10 BooleanShape
8.11 BoolParam
8.12 CATBaseDispatch
8.13 Chamfer
8.14 Circle2D
8.15 CircPattern
8.16 CloseSurface
8.17 Collection
8.18 ConstRadEdgeFillet
8.19 Constraint
8.20 Constraints
8.21 ControlPoint2D
8.22 Curve2D
8.23 DesignTable
8.24 Dimension
8.25 Document
8.26 Documents
8.27 Draft
8.28 DraftDomain
8.29 DraftDomains
8.30 DressUpShape
8.31 EdgeFillet
8.32 Ellipse2D
8.33 FaceFillet
8.34 Factory
8.35 Factory2D
8.36 File
8.37 FileComponent
8.38 Files
8.39 FileSystem
8.40 Fillet
8.41 Folder
8.42 Folders
8.43 Formula
8.44 GeometricElement
8.45 GeometricElements
8.46 Geometry2D
8.47 Groove
8.48 Hole
8.49 HybridBodies
8.50 HybridBody
8.51 HybridShape
8.52 HybridShape3DCurveOffset
8.53 HybridShapeAffinity
8.54 HybridShapeAssemble
8.55 HybridShapeAxisLine
8.56 HybridShapeAxisToAxis
8.57 HybridShapeBlend
8.58 HybridShapeBoundary
8.59 HybridShapeCircle
8.60 HybridShapeCircle2PointsRad
8.61 HybridShapeCircle3Points
8.62 HybridShapeCircleBitangentPoint
8.63 HybridShapeCircleBitangentRadius
8.64 HybridShapeCircleCenterAxis
8.65 HybridShapeCircleCenterTangent
8.66 HybridShapeCircleCtrPt
8.67 HybridShapeCircleCtrRad
8.68 HybridShapeCircleExplicit
8.69 HybridShapeCircleTritangent
8.70 HybridShapeCombine
8.71 HybridShapeConic
8.72 HybridShapeConnect
8.73 HybridShapeCorner
8.74 HybridShapeCurveExplicit
8.75 HybridShapeCurvePar
8.76 HybridShapeCurveSmooth
8.77 HybridShapeCylinder
8.78 HybridShapeDirection
8.79 HybridShapeExtract
8.80 HybridShapeExtractMulti
8.81 HybridShapeExtrapol
8.82 HybridShapeExtremum
8.83 HybridShapeExtremumPolar
8.84 HybridShapeExtrude
8.85 HybridShapeFactory
8.86 HybridShapeFill
8.87 HybridShapeFilletBiTangent
8.88 HybridShapeFilletTriTangent
8.89 HybridShapeHelix
8.90 HybridShapeIntegratedLaw
8.91 HybridShapeIntersection
8.92 HybridShapeInverse
8.93 HybridShapeLawDistProj
8.94 HybridShapeLineAngle
8.95 HybridShapeLineBisecting
8.96 HybridShapeLineBiTangent
8.97 HybridShapeLineExplicit
8.98 HybridShapeLineNormal
8.99 HybridShapeLinePtDir
8.100 HybridShapeLinePtPt
8.101 HybridShapeLineTangency
8.102 HybridShapeLoft
8.103 HybridShapeNear
8.104 HybridShapeOffset
8.105 HybridShapePlane1Curve
8.106 HybridShapePlane1Line1Pt
8.107 HybridShapePlane2Lines
8.108 HybridShapePlane3Points
8.109 HybridShapePlaneAngle
8.110 HybridShapePlaneEquation
8.111 HybridShapePlaneExplicit
8.112 HybridShapePlaneMean
8.113 HybridShapePlaneNormal
8.114 HybridShapePlaneOffset
8.115 HybridShapePlaneOffsetPt
8.116 HybridShapePlaneTangent
8.117 HybridShapePointBetween
8.118 HybridShapePointCenter
8.119 HybridShapePointCoord
8.120 HybridShapePointExplicit
8.121 HybridShapePointOnCurve
8.122 HybridShapePointOnPlane
8.123 HybridShapePointOnSurface
8.124 HybridShapePointTangent
8.125 HybridShapePolyline
8.126 HybridShapePositionTransfo
8.127 HybridShapeProject
8.128 HybridShapeReflectLine
8.129 HybridShapeRevol
8.130 HybridShapeRotate
8.131 HybridShapes
8.132 HybridShapeScaling
8.133 HybridShapeSection
8.134 HybridShapeSphere
8.135 HybridShapeSpine
8.136 HybridShapeSpiral
8.137 HybridShapeSpline
8.138 HybridShapeSplit
8.139 HybridShapeSurfaceExplicit
8.140 HybridShapeSweep
8.141 HybridShapeSweepCircle
8.142 HybridShapeSweepConic
8.143 HybridShapeSweepExplicit
8.144 HybridShapeSweepLine
8.145 HybridShapeSymmetry
8.146 HybridShapeThickness
8.147 HybridShapeTranslate
8.148 HybridShapeTrim
8.149 Hyperbola2D
8.150 Intersect
8.151 IntParam
8.152 KnowledgeObject
8.153 KnowledgeActivateObject
8.154 Length
8.155 Limit
8.156 Line
8.157 Line2D
8.158 LinearRepartition
8.159 Loft
8.160 Mirror
8.161 OrderedGeometricalSet
8.162 OrderedGeometricalSets
8.163 OriginElements
8.164 Pad
8.165 Parabola2D
8.166 Parameter
8.167 Parameters
8.168 Part
8.169 PartDocument
8.170 Pattern
8.171 Plane
8.172 Pocket
8.173 Point
8.174 Point2D
8.175 Prism
8.176 Product
8.177 ProductDocument
8.178 Products
8.179 RealParam
8.180 RectPattern
8.181 Reference
8.182 References
8.183 Relation
8.184 Relations
8.185 Remove
8.186 RemoveFace
8.187 Repartition
8.188 ReplaceFace
8.189 Revolution
8.190 Rib
8.191 Rotate
8.192 Scaling
8.193 Scaling2
8.194 SelectedElement
8.195 Selection
8.196 SewSurface
8.197 Shaft
8.198 Shape
8.199 ShapeFactory
8.200 Shapes
8.201 Shell
8.202 Sketch
8.203 SketchBasedShape
8.204 Sketches
8.205 Slot
8.206 SolidCombine
8.207 Spline2D
8.208 Split
8.209 Stiffener
8.210 StrParam
8.211 SurfaceBasedShape
8.212 Sweep
8.213 Symmetry
8.214 SystemService
8.215 TextStream
8.216 Thickness
8.217 ThickSurface
8.218 Thread
8.219 TransformationShape
8.220 Translate
8.221 Trim
8.222 TritangentFillet
8.223 UserPattern
8.224 VarRadEdgeFillet
8.225 VisPropertySet
9. Featured VBScript Commands
9.1 Abs
9.2 Asc
9.3 Boolean
9.4 Byte
9.5 CBool
9.6 CByte
9.7 CDate
9.8 CDbl
9.9 Chr
9.10 CInt
9.11 CLng
9.12 Const
9.13 Cos
9.14 CSng
9.15 CStr
9.16 Date
9.17 Day
9.18 Dim
9.19 Dim ()
9.20 Double
9.21 Do-Until
9.22 Do-While
9.23 Empty
9.24 End
9.25 Err
9.26 Exit
9.27 Exp
9.28 Fix
9.29 For-Next
9.30 Function
9.31 Hour
9.32 If-Then-Else
9.33 InputBox
9.34 InStr
9.35 Int
9.36 Integer
9.37 IsDate
9.38 IsEmpty
9.39 IsNull
9.40 IsNumeric
9.41 Join
9.42 LCase
9.43 Left
9.44 Len
9.45 Log
9.46 Long
9.47 LTrim
9.48 Mid
9.49 Minute
9.50 Mod
9.51 Month
9.52 MsgBox
9.53 Now
9.54 Null
9.55 On Error Resume Next
9.56 Randomize
9.57 ReDim
9.58 Rem
9.59 Right
9.60 Rnd
9.61 RTrim
9.62 Second
9.63 Select Case
9.64 Set
9.65 Sin
9.66 Single
9.67 Sgn
9.68 Sqr
9.69 StrReverse
9.70 String
9.71 Sub
9.72 Tan
9.73 Time
9.74 Timer
9.75 TimeValue
9.76 Trim
9.77 UCase
9.78 Year
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
CATIA V5: Macro Programming with Visual Basic Script
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset