Role: To access the data of the hybrid shape trim object. This data includes:
- The first element (surface or curve) to be trimmed
- The second element (surface or curve) to be trimmed
- The orientation corresponding to the first element
- The orientation corresponding to the second element
- See also:
Properties
- Property AutomaticExtrapolationMode() As
-
Gets or sets the automatic extrapolation mode status.
AutomaticExtrapolationMode = TRUE : Automatic extrapolation mode is on.
= FALSE : Automatic extrapolation mode is off.
This example retrieves in
AutoExtrapolModethe automatic extrapolation mode status for theTrimhybrid shape feature.Dim AutoExtrapolMode As boolean AutoExtrapolMode = Trim.AutomaticExtrapolationMode
Connex the connected mode
for the Trim hybrid shape feature.
Dim Connex As boolean Connex = Trim.Connex
- Deprecated:
- V5R17 CATIAHybridShapeTrim#GetElem Returns or sets the first element to be trimmed. dd>
- Example:
-
This example retrieves in
Surface1the first element to be trimmed for thehybTrimhybrid shape feature.Dim Surface1 As Reference Set Surface1 = hybTrim.FirstElem
- Deprecated:
- V5R17 CATIAHybridShapeTrim#GetPreviousOrientation
Returns or sets the first orientation used to compute the trim.
Role: The orientation specifies the kept parts of the first element to be trimmed.- When trimming surfaces:
- If orientation value is 1: kept parts are specified by the "natural" normal to the second object
- If orientation value is -1: kept parts are specified by the inverse of the "natural" normal to the second object
- When trimming curves:
- If orientation value is 1: kept parts are from the beginning of the curve to the first intersection, and, if there is one, from the second to the third intersection and so on until the end of the curve
- If orientation value is -1: kept parts are from the first intersection to the second (if there is one), and, if there is one, from the third to the fourth and so on until the end of the curve.
- When trimming surfaces:
- Example:
-
This example retrieves in
firstOrientthe orientation of the first element used by thehybTrimhybrid shape feature.Dim firstOrient As long Set firstOrient = hybTrim.FirstOrientation
Intersection the Intersection computation mode
for the Trim hybrid shape feature.
Dim Intersection As boolean Intersection = Trim.IntersectionComputation
KeepAllPieces the Keep All Pieces mode
for the Trim hybrid shape feature.
Dim bKeepAllPieces As boolean bKeepAllPieces = Trim.KeepAllPieces
Manifold the manifold mode
for the Trim hybrid shape feature.
Dim Manifold As boolean Connex = Trim.Manifold
Mode the mode
for the Trim hybrid shape feature.
Dim Mode As long Mode = Trim.Mode
- Deprecated:
- V5R17 CATIAHybridShapeTrim#GetElem Returns or sets the second element to be trimmed. dd>
- Example:
-
This example retrieves in
Surface2the second element to be trimmed for thehybTrimhybrid shape trim object.Dim Surface2 As Reference Set Surface2 = hybTrim.SecondElem
- Deprecated:
- V5R17 CATIAHybridShapeTrim#GetPreviousOrientation
Returns or sets the second orientation used to compute the trim.
Role: The orientation specifies the kept parts of the second element to be trimmed.- When trimming surfaces:
- If orientation value is 1: kept parts are specified by the "natural" normal to the first object
- If orientation value is -1: kept parts are specified by the inverse of the "natural" normal to the first object
- When trimming curves:
- If orientation value is 1: kept parts are from the beginning of the curve to the first intersection, and, if there is one, from the second to the third intersection and so on until the end of the curve
- If orientation value is -1: kept parts are from the first intersection to the second (if there is one), and, if there is one, from the third to the fourth and so on until the end of the curve.
- When trimming surfaces:
- Example:
-
This example retrieves in
secondOrientthe orientation of the second element used by thehybTrimhybrid shape trim object.Dim secondOrient As long Set secondOrient = hybTrim.SecondOrientation
Legal values: True to activate the simplification, and False otherwise.
- Example:
-
This example activates the simplification of the resulting topology of the
hybTrimhybrid shape trim object.hybTrim.Simplify = True
This support element may not exist.
Sub-element(s) supported (see object): .
- Example:
-
This example retrieves in
supportElementthe support element of thehybTrimhybrid shape trim object.Dim supportElement As Reference Set supportElement = hybTrim.Support
Methods
- Sub AddElementToKeep( iElement)
-
Adds an element to specifications. This element will be kept.
- Parameters:
-
- iElement
- Element to keep. dd>
- Sub AddElementToRemove( iElement)
-
Adds an element to specifications. This element will be removed.
- Parameters:
-
- iElement
- Element to remove. dd>
- Sub AddPieceCutter( iRank, iCutterElem, iOrientation)
-
Add piece Cutting element and its orientation.
Used for trim pieces of shells only
- Parameters:
-
- iRank
- Index of the trimmed element (piece) dd>
- iCutterElemIdx
- index is the index of input shell except in case of multiple intersection between shells where Index=IndexInputShell+NbInputShells*(1-iw) (whith iw=1... : wire index in case of multiple intersection) dd>
- iOrientation
- cutter element orientation dd>
- Func GetElem( iRank) As
-
Gets the trimmed feature at a given index.
- Parameters:
-
- iRank
- Index of one of the trimmed features dd>
- oElem
- trimmed feature dd>
- Func GetKeptElem( iRank) As
-
Gets the kept feature at a given index.
- Parameters:
-
- oElem
- Kept feature dd>
- iRank
- Index of one of the kept features dd>
- Func GetNbElem() As
-
Gets the number of elements: couple(element, index of portion to keep on element).
- Parameters:
-
- oNbElem
- Number of elements dd>
- Func GetNbElementsToKeep() As
-
Gets the number of elements to keep.
- Parameters:
-
- oNbElementsToKeep
- Number of elements to keep dd>
- Func GetNbElementsToRemove() As
-
Gets the number of elements to remove.
- Parameters:
-
- oNbElementsToRemove
- Number of elements to remove dd>
- Func GetNextOrientation( iRank) As
-
Gets Orientation used to compute the feature, referring to the next trimmed element.
- Parameters:
-
- iRank
- index (of one of the trimmed features) - 1 iRank must be greater than 1 and lower than the number of elements - 1 dd>
- oOrientation
- Orientation dd>
- Sub GetPieceCutter( iRank, iCutterIndex, oCutterElemIdx, oOrientation)
-
Gets piece Cutting element and its orientation.
Used for trim pieces of shells only
- Parameters:
-
- iRank
- Index of the trimmed element (piece) dd>
- oCutterElemIdx
- index is the index of input shell except in case of multiple intersection between shells where Index=IndexInputShell+NbInputShells*(1-iw) (whith iw=1... : wire index in case of multiple intersection) dd>
- oCutterElem
- cutter element dd>
- oOrientation
- cutter element orientation dd>
- Sub GetPieceDiscriminationIndex( iRank, oIndex)
-
Gets the discrimination index.
Used for the trim pieces of shells only
- Parameters:
-
- iRank
- Index of the trimmed element (piece) dd>
- oIndex
- Discrimination Index Used to discrimine pieces when cutters orientations are not enough dd>
- Func GetPieceNbCutters( iRank) As
-
Gets the number of cutters of a piece.
Used for trim pieces of shells only
- Parameters:
-
- oNbCutters
- Number of cutters (except in case of multiple intersection between shells) dd>
- Func GetPortionToKeep( iRank) As
-
Gets a portion to keep number, giving the index of the element.
Used for trim pieces of wires
- Parameters:
-
- oPortionNumber
- Index of portion to keep on the element dd>
- iRank
- Index of the trimmed element dd>
- Func GetPreviousOrientation( iRank) As
-
Gets Orientation used to compute the feature, referring to the previous trimmed element.
- Parameters:
-
- iRank
- index (of one of the trimmed features) - 1 iRank must be greater than 1 and lower than the number of elements - 1 dd>
- oOrientation
- Orientation dd>
- Func GetRemovedElem( iRank) As
-
Gets the removed feature at a given index.
- Parameters:
-
- oElem
- Removed feature dd>
- iRank
- Index of one of the removed features dd>
- Sub InvertFirstOrientation()
-
- Deprecated:
- V5R17 CATIAHybridShapeTrim#SetPreviousOrientation Inverts the first orientation used to compute the trim. dd>
- Example:
-
This example inverts the first orientation to compute the
hybTrimhybrid shape trim object.hybTrim.InvertFirstOrientation
- Sub InvertSecondOrientation()
-
- Deprecated:
- V5R17 CATIAHybridShapeTrim#SetPreviousOrientation
Inverts the second orientation used to compute the trim.
This example inverts the first orientation to compute
the
hybTrimhybrid shape trim object.hybTrim.InvertSecondOrientation
dd>
- Sub RemoveElementToKeep( iRank)
-
Removes an element from specifications.
- Parameters:
-
- iRank
- Index of the kept element. dd>
- Sub RemoveElementToRemove( iRank)
-
Removes an element from specifications.
- Parameters:
-
- iRank
- Index of the removed element. dd>
- Sub RemovePieceCutter( iRank, iCutterIndex)
-
Remove piece Cutting element and its orientation.
Used for trim pieces of shells only
- Parameters:
-
- iRank
- Index of the trimmed element (piece) dd>
- iCutterIndex
- Index in cutters list dd>
- Sub SetElem( iRank, iElem)
-
Modifies the trimmed feature at a given index.
Use AddElem method to specify a new trimmed element
- Parameters:
-
- iRank
- Index of one of the trimmed features dd>
- iElem
- trimmed feature dd>
- Sub SetNextOrientation( iRank, iOrientation)
-
Sets the orientation used to compute the feature, referring to the next trimmed element.
- Parameters:
-
- iRank
- index (of one of the trimmed features) - 1 iRank must be greater than 1 and lower than the number of elements - 1 dd>
- iOrientation
- Orientation dd>
- Sub SetPieceDiscriminationIndex( iRank, iIndex)
-
Sets the discrimination index.
Used for the trim pieces of shells only
- Parameters:
-
- iRank
- Index of the trimmed element (piece) dd>
- iIndex
- Discrimination Index Used to discrimine pieces when cutters orientations are not enough dd>
- Sub SetPortionToKeep( iRank, iPortionNumber)
-
Sets a portion to keep number in Pieces mode.
Used for trim pieces of wires
- Parameters:
-
- iRank
- Index of the trimmed element dd>
- iPortionNumber
- Index of portion to keep on the element dd>
- Sub SetPreviousOrientation( iRank, iOrientation)
-
Sets the orientation used to compute the feature, referring to the previous trimmed element.
- Parameters:
-
- iRank
- index (of one of the trimmed features) - 1 iRank must be greater than 1 and lower than the number of elements - 1 dd>
- iOrientation
- Orientation dd>