pycatia.part_interfaces.prism¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
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.part_interfaces.prism.Prism(com_object)¶
Note
CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMecModInterfaces.ShapePartInterfaces.SketchBasedShapePrismPrism-based features in Part Design : base for pad or pocket.- property direction_orientation: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property DirectionOrientation() As CatPrismOrientationReturns the prism direction orientation.Returns:oOrientation The direction orientation (see CatPrismOrientation forlist of possible types)Example:The following example saves in dirOrientation the directionorientation of prism firstPrism, and then sets it so that the direction will benow inversed :Set dirOrientation = firstPrism.DirectionOrientationfirstPrism.DirectionOrientation = catInverseOrientation
- Returns:
enum cat_prism_orientation
- Return type:
int
- property direction_type: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property DirectionType() As CatPrismExtrusionDirectionReturns the prism direction type.Returns:oDirType The direction type (see CatPrismExtrusionDirection for list ofpossible types)Example:The following example saves in dirType the direction type of prismfirstPrism, and then sets it so that the direction will be now normal to thesketch :Set dirType = firstPrism.DirectionTypefirstPrism.DirectionType = catNormalToSketchDirection
- Returns:
enum cat_prism_extrusion_direction
- Return type:
int
- property first_limit: Limit¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property FirstLimit() As Limit (Read Only)Returns the first prism limit (one of the two).This limit manages the way the prism is ended.Returns:oFirstLimit The first limit (see Limit for moreinformation)Example:The following example returns in firstLimit the first limit ofprism firstPrism:Set firstLimit = firstPrism.FirstLimit
- Return type:
- get_direction(io_direction: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetDirection(CATSafeArrayVariant ioDirection)Returns the prism direction with absolute coordinates.It needs a safe array with 3 elements : X, Y, Z direction coordinatesThe array must be previously initializedReturns:ioDirection The direction coordinatesExample:The following example returns in dirArray the direction coordinatesof prism firstPrism:Dim dirArray(2)Call firstPrism.GetDirection(dirArray)Set x = dirArray[1]Set y = dirArray[2]Set z = dirArray[3]
- Parameters:
io_direction (tuple) –
- Return type:
None
- property is_symmetric: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property IsSymmetric() As booleanReturns the prism symmetry flag.It returns TRUE if the prism is symmetric (from the base sketch), FALSE ifnot.Returns:oIsSymmetric The symmetry flag as a booleanExample:The following example saves in symFlag the symmetry flag of prismfirstPrism, and then sets it so that it will be now symmetric (from the basesketch) :Set symFlag = firstPrism.IsSymmetricfirstPrism.IsSymmetric = TRUE
- Return type:
bool
- property is_thin: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property IsThin() As booleanReturns the prism thin flag.It returns TRUE if the prism is a thin prism , FALSE ifnot.Returns:oIsThin The thin flag as a booleanExample:The following example saves in thinFlag the thin flag of prismfirstPrism, and then sets it so that it will be now thin:Set thinFlag = firstPrism.IsThinfirstPrism.IsThin = TRUE
- Return type:
bool
- property merge_end: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property MergeEnd() As booleanReturns the prism merge end flag (for thin prism only).It returns TRUE if merge ends is required , FALSE if not.Returns:oIsMergeEnd The merge end flag as a booleanExample:The following example saves in MergeEndFlag the merge end flag ofprism firstPrism, and then sets it so that merge end will be required:Set MergeEndFlag = firstPrism.IsMergeEndfirstPrism.IsMergeEnd = TRUE
- Return type:
bool
- property neutral_fiber: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property NeutralFiber() As booleanReturns the prism neutral fiber flag (for thin prismonly).It returns TRUE if the prism is a neutral fiber prism , FALSE ifnot.Returns:oIsNeutralFiber The neutral fiber flag as a booleanExample:The following example saves in NeutralFiberFlag the neutral fiberflag of prism firstPrism, and then sets it so that it will be now neutral fiber:Set NeutralFiberFlag = firstPrism.IsNeutralFiberfirstPrism.IsNeutralFiber = TRUE
- Return type:
bool
- reverse_inner_side() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub ReverseInnerSide()Reverses the prism inner side when the profile is open. This is useful forfinding the shape to reach.Example:The following example reverses the current inner side of prismfirstPrism :firstPrism.ReverseInnerSide
- Return type:
None
- property second_limit: Limit¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SecondLimit() As Limit (Read Only)Returns the second prism limit (one of the two).This limit manages the way the prism is ended.Returns:oSecondLimit The second limit (see Limit for moreinformation)Example:The following example returns in secondLimit the second limit ofprism firstPrism:Set secondLimit = firstPrism.SecondLimit
- Return type:
- set_direction(i_line: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetDirection(Reference iLine)Sets the prism associative direction.Parameters:iLineThe support direction reference (seeReference for more information)This reference can be valuated with a reference to a line or anedge.The following Boundary objects are supported: PlanarFace,RectilinearTriDimFeatEdge andRectilinearBiDimFeatEdge.Example:The following example sets the prism direction reference of prismfirstPrism with prismDirRef line :firstPrism.SetDirection prismDirRef
- Parameters:
i_line (Reference) –
- Return type:
None