pycatia.hybrid_shape_interfaces.hybrid_shape_trim¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-07-06 14:02:20.222384
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.hybrid_shape_interfaces.hybrid_shape_trim.HybridShapeTrim(com_object)¶
Note
CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMecModInterfaces.HybridShapeHybridShapeTrimRepresents the hybrid shape trim object.Role: To access the data of the hybrid shape trim object. This dataincludes:The first element (surface or curve) to be trimmedThe second element (surface or curve) to be trimmedThe orientation corresponding to the first elementThe orientation corresponding to the second elementUse the CATIAHybridShapeFactory to create a HybridShapeTrimobject.See also:HybridShapeFactory- add_element_to_keep(i_element: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub AddElementToKeep(Reference iElement)Adds an element to specifications. This element will bekept.Parameters:iElementElement to keep.
- Parameters:
i_element (Reference) –
- Return type:
None
- add_element_to_remove(i_element: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub AddElementToRemove(Reference iElement)Adds an element to specifications. This element will beremoved.Parameters:iElementElement to remove.
- Parameters:
i_element (Reference) –
- Return type:
None
- add_piece_cutter(i_rank: int, i_cutter_elem: int, i_orientation: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub AddPieceCutter(long iRank,long iCutterElem,long iOrientation)Add piece Cutting element and its orientation. Used for trim pieces ofshells onlyParameters:iRankIndex of the trimmed element (piece)iCutterElemIdxindex is the index of input shell except in case of multiple intersection between shellswhere Index=IndexInputShell+NbInputShells*(1-iw)(with iw=1… : wire index in case of multiple intersection)iOrientationcutter element orientation
- Parameters:
i_rank (int) –
i_cutter_elem (int) –
i_orientation (int) –
- Return type:
None
- property automatic_extrapolation_mode: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property AutomaticExtrapolationMode() As booleanGets or sets the automatic extrapolation mode status. AutomaticExtrapolationModeTRUE : Automatic extrapolation mode is on.FALSE : Automatic extrapolation mode is off.This example retrieves in AutoExtrapolMode the automatic extrapolation mode status for theTrim hybrid shape feature.Dim AutoExtrapolMode As booleanAutoExtrapolMode = Trim.AutomaticExtrapolationMode
- Return type:
bool
- property connex: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Connex() As booleanGets or sets connected mode.ConnexTRUE : the check of connexity is enable. ConnexFALSE : the check of connexity is disable.This example retrieves in Connex the connected mode for the Trim hybrid shape feature.Dim Connex As booleanConnex = Trim.Connex
- Return type:
bool
- property first_elem: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property FirstElem() As ReferenceDeprecated:V5R17 CATIAHybridShapeTrim#GetElem Returns or sets the first element tobe trimmed.Example:This example retrieves in Surface1 the first element to be trimmedfor the hybTrim hybrid shape feature.Dim Surface1 As ReferenceSet Surface1 = hybTrim.FirstElem
- Return type:
- property first_orientation: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property FirstOrientation() As longDeprecated:V5R17 CATIAHybridShapeTrim#GetPreviousOrientation Returns or sets thefirst orientation used to compute the trim.Role: The orientation specifies the kept parts of the first element tobe trimmed.When trimming surfaces:If orientation value is 1: kept parts are specified by the“natural” normal to the second objectIf orientation value is -1: kept parts are specified by theinverse of the “natural” normal to the secondobjectWhen trimming curves:If orientation value is 1: kept parts are from the beginning ofthe curve to the first intersection, and, if there is one, from the second tothe third intersection and so on until the end of thecurveIf orientation value is -1: kept parts are from the firstintersection to the second (if there is one), and, if there is one, from thethird to the fourth and so on until the end of thecurve.Example:This example retrieves in firstOrient the orientationofthe first element used by the hybTrim hybrid shapefeature.Dim firstOrient As longSet firstOrient = hybTrim.FirstOrientation
- Return type:
int
- get_elem(i_rank: int) Reference ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetElem(long iRank) As ReferenceGets the trimmed feature at a given index.Parameters:iRankIndex of one of the trimmed featuresoElemtrimmed feature
- Parameters:
i_rank (int) –
- Return type:
- get_kept_elem(i_rank: int) Reference ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetKeptElem(long iRank) As ReferenceGets the kept feature at a given index.Parameters:oElemKept featureiRankIndex of one of the kept features
- Parameters:
i_rank (int) –
- Return type:
- get_nb_elem() int ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetNbElem() As longGets the number of elements: couple(element, index of portion to keep onelement).Parameters:oNbElemNumber of elements
- Return type:
int
- get_nb_elements_to_keep() int ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetNbElementsToKeep() As longGets the number of elements to keep.Parameters:oNbElementsToKeepNumber of elements to keep
- Return type:
int
- get_nb_elements_to_remove() int ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetNbElementsToRemove() As longGets the number of elements to remove.Parameters:oNbElementsToRemoveNumber of elements to remove
- Return type:
int
- get_next_orientation(i_rank: int) int ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetNextOrientation(long iRank) As longGets Orientation used to compute the feature, referring to the next trimmedelement.Parameters:iRankindex (of one of the trimmed features) - 1 iRank must be greaterthan 1 and lower than the number of elements - 1oOrientationOrientation
- Parameters:
i_rank (int) –
- Return type:
int
- get_piece_cutter(i_rank: int, i_cutter_index: int, o_cutter_elem_idx: int, o_orientation: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetPieceCutter(long iRank,long iCutterIndex,long oCutterElemIdx,long oOrientation)Gets piece Cutting element and its orientation. Used for trim pieces ofshells onlyParameters:iRankIndex of the trimmed element (piece)oCutterElemIdxindex is the index of input shell except in case of multiple intersection between shellswhere Index=IndexInputShell+NbInputShells*(1-iw)(with iw=1… : wire index in case of multiple intersection)oCutterElemcutter elementoOrientationcutter element orientation
- Parameters:
i_rank (int) –
i_cutter_index (int) –
o_cutter_elem_idx (int) –
o_orientation (int) –
- Return type:
None
- get_piece_discrimination_index(i_rank: int, o_index: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetPieceDiscriminationIndex(long iRank,long oIndex)Gets the discrimination index. Used for the trim pieces of shellsonlyParameters:iRankIndex of the trimmed element (piece)oIndexDiscrimination Index Used to discrimine pieces when cuttersorientations are not enough
- Parameters:
i_rank (int) –
o_index (int) –
- Return type:
None
- get_piece_nb_cutters(i_rank: int) int ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetPieceNbCutters(long iRank) As longGets the number of cutters of a piece. Used for trim pieces of shellsonlyParameters:oNbCuttersNumber of cutters (except in case of multiple intersection betweenshells)
- Parameters:
i_rank (int) –
- Return type:
int
- get_portion_to_keep(i_rank: int) int ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetPortionToKeep(long iRank) As longGets a portion to keep number, giving the index of the element. Used fortrim pieces of wiresParameters:oPortionNumberIndex of portion to keep on the elementiRankIndex of the trimmed element
- Parameters:
i_rank (int) –
- Return type:
int
- get_previous_orientation(i_rank: int) int ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetPreviousOrientation(long iRank) As longGets Orientation used to compute the feature, referring to the previoustrimmed element.Parameters:iRankindex (of one of the trimmed features) - 1 iRank must be greaterthan 1 and lower than the number of elements - 1oOrientationOrientation
- Parameters:
i_rank (int) –
- Return type:
int
- get_removed_elem(i_rank: int) Reference ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetRemovedElem(long iRank) As ReferenceGets the removed feature at a given index.Parameters:oElemRemoved featureiRankIndex of one of the removed features
- Parameters:
i_rank (int) –
- Return type:
- property intersection_computation: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property IntersectionComputation() As booleanGets or sets Intersection computation mode.IntersectionComputationTRUE : Intersection is computed.FALSE : Intersection is not computed.This example retrieves in Intersection the Intersection computation mode for the Trim hybridshape feature.Dim Intersection As booleanIntersection = Trim.IntersectionComputation
- Return type:
bool
- invert_first_orientation() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub InvertFirstOrientation()Deprecated:V5R17 CATIAHybridShapeTrim#SetPreviousOrientation Inverts the firstorientation used to compute the trim.Example:This example inverts the first orientation tocomputethe hybTrim hybrid shape trim object.hybTrim.InvertFirstOrientation
- Return type:
None
- invert_second_orientation() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub InvertSecondOrientation()Deprecated:V5R17 CATIAHybridShapeTrim#SetPreviousOrientation Inverts the secondorientation used to compute the trim. This example inverts the firstorientation to compute the hybTrim hybrid shape trimobject.hybTrim.InvertSecondOrientation
- Return type:
None
- property keep_all_pieces: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property KeepAllPieces() As booleanGets or Sets keep all pieces mode. Used for the trim pieces of shells only KeepAllPieces=TRUE : all the pieces are kept during update, KeepAllPieces=FALSE : only chosen pieces are kept during update (default).This example retrieves in KeepAllPieces the Keep All Pieces mode for the Trim hybrid shapefeature.Dim bKeepAllPieces As booleanbKeepAllPieces = Trim.KeepAllPieces
- Return type:
bool
- property manifold: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Manifold() As booleanGets or sets manifold mode.Manifold = TRUE : the check of manifold is enable.Manifold = FALSE : the check of manifold is disable.This example retrieves in Manifold the manifold mode for the Trim hybrid shape feature.Dim Manifold As booleanConnex = Trim.Manifold
- Return type:
bool
- property mode: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Mode() As longGets or sets Trim mode. Mode =1 : Standard. =2 : Pieces.This example retrieves in Mode the mode for the Trim hybrid shape feature.Dim Mode As longMode = Trim.Mode
- Return type:
int
- remove_element_to_keep(i_rank: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveElementToKeep(long iRank)Removes an element from specifications.Parameters:iRankIndex of the kept element.
- Parameters:
i_rank (int) –
- Return type:
None
- remove_element_to_remove(i_rank: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveElementToRemove(long iRank)Removes an element from specifications.Parameters:iRankIndex of the removed element.
- Parameters:
i_rank (int) –
- Return type:
None
- remove_piece_cutter(i_rank: int, i_cutter_index: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemovePieceCutter(long iRank,long iCutterIndex)Remove piece Cutting element and its orientation. Used for trim pieces ofshells onlyParameters:iRankIndex of the trimmed element (piece)iCutterIndexIndex in cutters list
- Parameters:
i_rank (int) –
i_cutter_index (int) –
- Return type:
None
- property second_elem: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SecondElem() As ReferenceDeprecated:V5R17 CATIAHybridShapeTrim#GetElem Returns or sets the second elementto be trimmed.Example:This example retrieves in Surface2 the second element to be trimmedfor the hybTrim hybrid shape trim object.Dim Surface2 As ReferenceSet Surface2 = hybTrim.SecondElem
- Return type:
- property second_orientation: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SecondOrientation() As longDeprecated:V5R17 CATIAHybridShapeTrim#GetPreviousOrientation Returns or sets thesecond orientation used to compute the trim.Role: The orientation specifies the kept parts of the second element tobe trimmed.When trimming surfaces:If orientation value is 1: kept parts are specified by the“natural” normal to the first objectIf orientation value is -1: kept parts are specified by theinverse of the “natural” normal to the firstobjectWhen trimming curves:If orientation value is 1: kept parts are from the beginning ofthe curve to the first intersection, and, if there is one, from the second tothe third intersection and so on until the end of thecurveIf orientation value is -1: kept parts are from the firstintersection to the second (if there is one), and, if there is one, from thethird to the fourth and so on until the end of thecurve.Example:This example retrieves in secondOrient the orientationofthe second element used by the hybTrim hybrid shape trimobject.Dim secondOrient As longSet secondOrient = hybTrim.SecondOrientation
- Return type:
int
- set_elem(i_rank: int, i_elem: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetElem(long iRank,Reference iElem)Modifies the trimmed feature at a given index. Use AddElem method tospecify a new trimmed elementParameters:iRankIndex of one of the trimmed featuresiElemtrimmed feature
- Parameters:
i_rank (int) –
i_elem (Reference) –
- Return type:
None
- set_next_orientation(i_rank: int, i_orientation: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetNextOrientation(long iRank,long iOrientation)Sets the orientation used to compute the feature, referring to the nexttrimmed element.Parameters:iRankindex (of one of the trimmed features) - 1 iRank must be greaterthan 1 and lower than the number of elements - 1iOrientationOrientation
- Parameters:
i_rank (int) –
i_orientation (int) –
- Return type:
None
- set_piece_discrimination_index(i_rank: int, i_index: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetPieceDiscriminationIndex(long iRank,long iIndex)Sets the discrimination index. Used for the trim pieces of shellsonlyParameters:iRankIndex of the trimmed element (piece)iIndexDiscrimination Index Used to discrimine pieces when cuttersorientations are not enough
- Parameters:
i_rank (int) –
i_index (int) –
- Return type:
None
- set_portion_to_keep(i_rank: int, i_portion_number: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetPortionToKeep(long iRank,long iPortionNumber)Sets a portion to keep number in Pieces mode. Used for trim pieces ofwiresParameters:iRankIndex of the trimmed elementiPortionNumberIndex of portion to keep on the element
- Parameters:
i_rank (int) –
i_portion_number (int) –
- Return type:
None
- set_previous_orientation(i_rank: int, i_orientation: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetPreviousOrientation(long iRank,long iOrientation)Sets the orientation used to compute the feature, referring to the previoustrimmed element.Parameters:iRankindex (of one of the trimmed features) - 1 iRank must be greaterthan 1 and lower than the number of elements - 1iOrientationOrientation
- Parameters:
i_rank (int) –
i_orientation (int) –
- Return type:
None
- property simplify: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Simplify() As booleanReturns or sets whether the simplification of the resulting topology is orshould be activated.Legal values: True to activate the simplification, and Falseotherwise.Example:This example activates the simplification of the resulting topologyofthe hybTrim hybrid shape trim object.hybTrim.Simplify = True
- Return type:
bool
- property support: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Support() As ReferenceReturns or sets the support element.This support element may not exist.Sub-element(s) supported (see Boundary object): Face.Example:This example retrieves in supportElement the supportelementof the hybTrim hybrid shape trim object.Dim supportElement As ReferenceSet supportElement = hybTrim.Support
- Return type: