pycatia.assembly_interfaces.assembly_pocket¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.assembly_interfaces.assembly_pocket.AssemblyPocket(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectCATAssemblyInterfaces.AssemblyFeatureAssemblyPocketRepresents the AssemblyPocket object.- property direction_orientation: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property DirectionOrientation() As CatPrismOrientationReturns or sets the pocket direction orientation.Example:The following example saves in dirOrientation the direction orientationof the pocket assemblyPocket, and then sets it so that the direction will benow inversed.Dim dirOrientationSet dirOrientation = assemblyPocket.DirectionOrientationassemblyPocket.DirectionOrientation = catInverseOrientation
- Returns:
enum cat_prism_orientation
- Return type:
int
- property direction_type: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property DirectionType() As CatPrismExtrusionDirectionReturns or sets the pocket direction type.Example:The following example saves in dirType the direction type of the pocketassemblyPocket, and then sets it so that the direction will be now normal tothe sketch.Dim dirTypeSet dirType = assemblyPocket.DirectionTypeassemblyPocket.DirectionType = catNormalToSketchDirection
- Returns:
enum cat_prism_extrusion_direction
- Return type:
int
- property first_limit: Limit¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property FirstLimit() As Limit (Read Only)Returns the first pocket limit.A pocket has two limits that manage the way the pocket isended.Example:The following example returns in firstLimit the first limit of thepocket assemblyPocket.Dim firstLimit As LimitSet firstLimit = assemblyPocket.FirstLimit
- Return type:
- get_direction() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetDirection(CATSafeArrayVariant ioDirection)Retrieves the pocket direction vector components.These components are expressed in millimeter according to the absolutecoordinate system.Parameters:ioDirectionThe pocket direction vector components, as a safe array made up ofthree doubles: X, Y, ZThe array must be previously initialized.Example:The following example retrieves in dirArray the direction vectorcomponents of the pocket assemblyPocket.Dim dirArray(2)Call assemblyPocket.GetDirection(dirArray)Set x = dirArray[0]Set y = dirArray[1]Set z = dirArray[2]
- Parameters:
io_direction (tuple) –
- Return type:
None
- property is_symmetric: bool¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property IsSymmetric() As booleanReturns or sets the pocket symmetry flag.TRUE if the pocket is symmetric with respect to the base sketch, and FALSEotherwise.Example:The following example saves in symFlag the symmetry flag of the pocketassemblyPocket, and then sets it so that it will be now symmetric with respectto the base sketch.Dim symFlag As booleanSet symFlag = assemblyPocket.IsSymmetricassemblyPocket.IsSymmetric = TRUE
- Return type:
bool
- reverse_inner_side() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- 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 pocketassemblyPocket.assemblyPocket.ReverseInnerSide
- Return type:
None
- property second_limit: Limit¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property SecondLimit() As Limit (Read Only)Returns the second pocket limit.A pocket has two limits that manage the way the pocket isended.Example:The following example returns in secondLimit the second limit of thepocket assemblyPocket.Dim secondLimit As LimitSet secondLimit = assemblyPocket.SecondLimit
- Return type:
- set_direction(i_line: Reference, i_line_comp: Product) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetDirection(Reference iLine,Product iLineComp)Sets the pocket associated direction.Parameters:iLineThe pocket associated direction, as a reference to a line or anedge.iLineCompThe component containing the associated directionreferenceExample:The following example sets the associated direction of thepocket assemblyPocket using the dirRef line of the componentdirComp.assemblyPocket.SetDirection dirRef, dirComp
- property sketch: Sketch¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Sketch() As Sketch (Read Only)Returns the pocket sketch.Example:The following example retrieves in sketch the sketch on which thepocket assemblyPocket is built.Dim sketch As SketchSet sketch = assemblyPocket.Sketch
- Return type:
- property sketch_component: Product¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property SketchComponent() As Product (Read Only)Returns the component containing the pocket sketch.Example:The following example retrieves in skComp the component that containsthe sketch of the pocket assemblyPocket is built.Dim skComp As ProductSet skComp = assemblyPocket.SketchComponent
- Return type: