pycatia.part_interfaces.chamfer¶
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.chamfer.Chamfer(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMecModInterfaces.ShapePartInterfaces.DressUpShapeChamferRepresents the chamfer shape.A chamfer is made up of a list of geometrical elements to process, such asfaces, and is defined using a couple of parameters, such as two lengths, or alength and an angle.- add_element_to_chamfer(i_element_to_chamfer: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub AddElementToChamfer(Reference iElementToChamfer)Adds a new geometrical element to be chamfered.Parameters:iElementToChamferThe new element to be chamferedThe followingBoundary object is supported: TriDimFeatEdge.Example:The following example adds the new element element to be chamfered for thefirstChamfer chamfer:firstChamfer.AddElementToChamfer(element)
- Parameters:
i_element_to_chamfer (Reference) –
- Return type:
None
- property angle: Angle¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Angle() As Angle (Read Only)Returns the chamfer angle. This is valid only if the chamfer is definedusing a length and an angle, that is if the chamfer definition modeCatChamferMode is set to catLengthAngleChamfer.Example:The following example returns in angle the angle of the firstChamferchamfer:Set angle = firstChamfer.Angle
- Return type:
- property elements_to_chamfer: References¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property ElementsToChamfer() As References (Read Only)Returns the collection of geometrical elements to bechamfered.Example:The following example returns in list the list of elements of thefirstChamfer chamfer:Set list = firstChamfer.ElementsToChamfer
- Return type:
- property length1: Length¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Length1() As Length (Read Only)Returns the chamfer first length. This is the first length if the chamferis defined by two lengthes, or the chamfer if the chamfer is defined by alength and an angle.Example:The following example returns in length1 the first length of thefirstChamfer chamfer:Set length1 = firstChamfer.Length1
- Return type:
- property length2: Length¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Length2() As Length (Read Only)Returns the chamfer second length. This is valid only if the chamfer isdefined using two lengthes, that is if the chamfer definition modeCatChamferMode is set to catTwoLengthChamfer.Example:The following example returns in length2 the second length of thefirstChamfer chamfer:Set length2 = firstChamfer.Length2
- Return type:
- property mode: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Mode() As CatChamferModeReturns or sets the chamfer definition mode. The chamfer definition modeenables the chamfer to be defined using either two lengthes or a length and anangle.Example:The following example returns in mode how the parameters of thefirstChamfer chamfer are defined, and then sets it tocatTwoLengthChamfer:Set mode = firstChamfer.ModefirstChamfer.Mode = catTwoLengthChamfer
- Returns:
enum cat_chamfer_mode
- Return type:
int
- property orientation: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Orientation() As CatChamferOrientationReturns or sets the chamfer orientation.Example:The following example returns in orient the orientation mode of thefirstChamfer chamfer, and then sets it tocatReverseChamfer:Set orient = firstChamfer.OrientationfirstChamfer.Orientation = catReverseChamfer
- Returns:
enum cat_chamfer_orientation
- Return type:
int
- property propagation: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Propagation() As CatChamferPropagationReturns or sets the propagation mode of the geometrical elements to bechamfered.Example:The following example returns in prop the propagation mode of thefirstChamfer chamfer, and then sets it tocatMinimalChamfer:Set prop = firstChamfer.PropagationfirstChamfer.Propagation = catMinimalChamfer
- Returns:
enum cat_chamfer_orientation
- Return type:
int
- withdraw_element_to_chamfer(i_element_to_withdraw: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub WithdrawElementToChamfer(Reference iElementToWithdraw)Withdraws a geometrical element from those to bechamfered.Parameters:iElementToWithdrawThe existing element to withdrawThe followingBoundary object is supported: TriDimFeatEdge.Example:The following example withdraws an existing element element to be chamferedfrom the firstChamfer chamfer:firstChamfer.WithdrawElementToChamfer(element)
- Parameters:
i_element_to_withdraw (Reference) –
- Return type:
None