All Frameworks  Object Hierarchy  This Framework  Indexes   

AssemblyPocket (Object)

Represents the AssemblyPocket object.

Property Index

DirectionOrientation
Returns or sets the pocket direction orientation.
DirectionType
Returns or sets the pocket direction type.
FirstLimit
Returns the first pocket limit.
IsSymmetric
Returns or sets the pocket symmetry flag.
SecondLimit
Returns the second pocket limit.
SketchComponent
Returns the component containing the pocket sketch.
Sketch
Returns the pocket sketch.

Method Index

GetDirection
Retrieves the pocket direction vector components.
ReverseInnerSide
Reverses the pocket inner side when the profile is open.
SetDirection
Sets the pocket associated direction.

Properties


o 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
 
o 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
 
o 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
 
o 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
 
o 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
 
o 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
 
o 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
 

Methods


o 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]
 
o Sub ReverseInnerSide()
Reverses the pocket inner side when the profile is open.
This is useful for finding the shape to reach.
Example:
The following example reverses the current inner side of the pocket assemblyPocket.
 assemblyPocket.ReverseInnerSide
 
o Sub SetDirection( iLine,
iLineComp)
Sets the pocket associated direction.
Parameters:
iLine
The pocket associated direction, as a reference to a line or an edge.
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
 

Copyright © 2003, Dassault Systèmes. All rights reserved.