Properties
- Property DirectionOrientation() As
-
Returns or sets the pocket direction orientation.
- Example:
- The following example saves in dirOrientation the direction orientation of
the pocket assemblyPocket, and then sets it so that the direction will be now inversed.
Dim dirOrientation Set dirOrientation = assemblyPocket.DirectionOrientation assemblyPocket.DirectionOrientation = catInverseOrientation
- Property DirectionType() As
-
Returns or sets the pocket direction type.
- Example:
- The following example saves in dirType the direction type of
the pocket assemblyPocket, and then sets it so that the direction
will be now normal to the sketch.
Dim dirType Set dirType = assemblyPocket.DirectionType assemblyPocket.DirectionType = catNormalToSketchDirection
- Property FirstLimit() As (Read Only)
-
Returns the first pocket limit.
A pocket has two limits that manage the way the pocket is ended.- Example:
- The following example returns in firstLimit the first limit of
the pocket assemblyPocket.
Dim firstLimit As Limit Set firstLimit = assemblyPocket.FirstLimit
- Property IsSymmetric() As
-
Returns or sets the pocket symmetry flag.
TRUE if the pocket is symmetric with respect to the base sketch, and FALSE otherwise.- Example:
- The following example saves in symFlag the symmetry flag of
the pocket assemblyPocket, and then sets it so that it will be now symmetric
with respect to the base sketch.
Dim symFlag As boolean Set symFlag = assemblyPocket.IsSymmetric assemblyPocket.IsSymmetric = TRUE
- Property SecondLimit() As (Read Only)
-
Returns the second pocket limit.
A pocket has two limits that manage the way the pocket is ended.- Example:
- The following example returns in secondLimit the second limit of
the pocket assemblyPocket.
Dim secondLimit As Limit Set secondLimit = assemblyPocket.SecondLimit
- Property Sketch() As (Read Only)
-
Returns the pocket sketch.
- Example:
- The following example retrieves in sketch the sketch on which
the pocket assemblyPocket is built.
Dim sketch As Sketch Set sketch = assemblyPocket.Sketch
- Property SketchComponent() As (Read Only)
-
Returns the component containing the pocket sketch.
- Example:
- The following example retrieves in skComp the component
that contains the sketch of
the pocket assemblyPocket is built.
Dim skComp As Product Set skComp = assemblyPocket.SketchComponent
Methods
- Sub GetDirection( ioDirection)
-
Retrieves the pocket direction vector components.
These components are expressed in millimeter according to the absolute coordinate system.- Parameters:
-
- ioDirection
- The pocket direction vector components, as a safe array made up of three doubles: X, Y, Z
The array must be previously initialized.
- Example:
- The following example retrieves in dirArray the direction vector
components of the pocket assemblyPocket.
Dim dirArray(2) Call assemblyPocket.GetDirection(dirArray) Set x = dirArray[0] Set y = dirArray[1] Set z = dirArray[2]
This is useful for finding the shape to reach.
- Example:
- The following example reverses the current inner side of
the pocket assemblyPocket.
assemblyPocket.ReverseInnerSide
- Parameters:
-
- iLine
- The pocket associated direction, as a reference to a line or an edge. dd>
- iLineComp
- The component containing the associated direction reference
- Example:
- The following example sets the associated direction of
the pocket assemblyPocket using the dirRef line
of the component dirComp.
assemblyPocket.SetDirection dirRef, dirComp