All Frameworks  Object Hierarchy  This Framework  Indexes   

Prism (Object)

Prism-based features in Part Design : base for pad or pocket.

Property Index

DirectionOrientation
Returns the prism direction orientation.
DirectionType
Returns the prism direction type.
FirstLimit
Returns the first prism limit (one of the two).
IsSymmetric
Returns the prism symmetry flag.
IsThin
Returns the prism thin flag.
MergeEnd
Returns the prism merge end flag (for thin prism only).
NeutralFiber
Returns the prism neutral fiber flag (for thin prism only).
SecondLimit
Returns the second prism limit (one of the two).

Method Index

GetDirection
Returns the prism direction with absolute coordinates.
ReverseInnerSide
Reverses the prism inner side when the profile is open.
SetDirection
Sets the prism associative direction.

Properties


o Property DirectionOrientation() As
Returns the prism direction orientation.
Returns:
oOrientation The direction orientation (see CatPrismOrientation for list of possible types)
Example:
The following example saves in dirOrientation the direction orientation of prism firstPrism, and then sets it so that the direction will be now inversed :
 Set dirOrientation = firstPrism.DirectionOrientation
 firstPrism.DirectionOrientation = catInverseOrientation
o Property DirectionType() As
Returns the prism direction type.
Returns:
oDirType The direction type (see CatPrismExtrusionDirection for list of possible types)
Example:
The following example saves in dirType the direction type of prism firstPrism, and then sets it so that the direction will be now normal to the sketch :
 Set dirType = firstPrism.DirectionType
 firstPrism.DirectionType = catNormalToSketchDirection
o Property FirstLimit() As (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 more information)
Example:
The following example returns in firstLimit the first limit of prism firstPrism:
 Set firstLimit = firstPrism.FirstLimit
o Property IsSymmetric() As
Returns the prism symmetry flag.
It returns TRUE if the prism is symmetric (from the base sketch), FALSE if not.
Returns:
oIsSymmetric The symmetry flag as a boolean
Example:
The following example saves in symFlag the symmetry flag of prism firstPrism, and then sets it so that it will be now symmetric (from the base sketch) :
 Set symFlag = firstPrism.IsSymmetric
 firstPrism.IsSymmetric = TRUE
o Property IsThin() As
Returns the prism thin flag.
It returns TRUE if the prism is a thin prism , FALSE if not.
Returns:
oIsThin The thin flag as a boolean
Example:
The following example saves in thinFlag the thin flag of prism firstPrism, and then sets it so that it will be now thin :
 Set thinFlag = firstPrism.IsThin
 firstPrism.IsThin = TRUE
o Property MergeEnd() As
Returns 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 boolean
Example:
The following example saves in MergeEndFlag the merge end flag of prism firstPrism, and then sets it so that merge end will be required :
 Set MergeEndFlag = firstPrism.IsMergeEnd
 firstPrism.IsMergeEnd = TRUE
o Property NeutralFiber() As
Returns the prism neutral fiber flag (for thin prism only).
It returns TRUE if the prism is a neutral fiber prism , FALSE if not.
Returns:
oIsNeutralFiber The neutral fiber flag as a boolean
Example:
The following example saves in NeutralFiberFlag the neutral fiber flag of prism firstPrism, and then sets it so that it will be now neutral fiber :
 Set NeutralFiberFlag = firstPrism.IsNeutralFiber
 firstPrism.IsNeutralFiber = TRUE
o Property SecondLimit() As (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 more information)
Example:
The following example returns in secondLimit the second limit of prism firstPrism:
 Set secondLimit = firstPrism.SecondLimit

Methods


o Sub GetDirection( ioDirection)
Returns the prism direction with absolute coordinates.
It needs a safe array with 3 elements : X, Y, Z direction coordinates The array must be previously initialized
Returns:
ioDirection The direction coordinates
Example:
The following example returns in dirArray the direction coordinates of prism firstPrism:
 Dim dirArray(2)
 Call firstPrism.GetDirection(dirArray)
 Set x = dirArray[1]
 Set y = dirArray[2]
 Set z = dirArray[3]
o Sub ReverseInnerSide()
Reverses the prism 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 prism firstPrism :
 firstPrism.ReverseInnerSide
 
o Sub SetDirection( iLine)
Sets the prism associative direction.
Parameters:
iLine
The support direction reference (see
Reference for more information)
This reference can be valuated with a reference to a line or an edge.
The following Boundary objects are supported: PlanarFace, RectilinearTriDimFeatEdge and RectilinearBiDimFeatEdge.
Example:
The following example sets the prism direction reference of prism firstPrism with prismDirRef line :
 firstPrism.SetDirection prismDirRef

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