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.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
MecModInterfaces.Shape
PartInterfaces.DressUpShape
Chamfer

Represents the chamfer shape.
A chamfer is made up of a list of geometrical elements to process, such as
faces, and is defined using a couple of parameters, such as two lengths, or a
length 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:

iElementToChamfer
The new element to be chamfered
The following

Boundary object is supported: TriDimFeatEdge.

Example:
The following example adds the new element element to be chamfered for the
firstChamfer 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 defined
using a length and an angle, that is if the chamfer definition mode
CatChamferMode is set to catLengthAngleChamfer.

Example:
The following example returns in angle the angle of the firstChamfer
chamfer:

Set angle = firstChamfer.Angle
Return type:

Angle

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 be
chamfered.

Example:
The following example returns in list the list of elements of the
firstChamfer chamfer:

Set list = firstChamfer.ElementsToChamfer
Return type:

References

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 chamfer
is defined by two lengthes, or the chamfer if the chamfer is defined by a
length and an angle.

Example:
The following example returns in length1 the first length of the
firstChamfer chamfer:

Set length1 = firstChamfer.Length1
Return type:

Length

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 is
defined using two lengthes, that is if the chamfer definition mode
CatChamferMode is set to catTwoLengthChamfer.

Example:
The following example returns in length2 the second length of the
firstChamfer chamfer:

Set length2 = firstChamfer.Length2
Return type:

Length

property mode: int

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
o Property Mode() As CatChamferMode

Returns or sets the chamfer definition mode. The chamfer definition mode
enables the chamfer to be defined using either two lengthes or a length and an
angle.

Example:
The following example returns in mode how the parameters of the
firstChamfer chamfer are defined, and then sets it to
catTwoLengthChamfer:

Set mode = firstChamfer.Mode
firstChamfer.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 CatChamferOrientation

Returns or sets the chamfer orientation.

Example:
The following example returns in orient the orientation mode of the
firstChamfer chamfer, and then sets it to
catReverseChamfer:

Set orient = firstChamfer.Orientation
firstChamfer.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 CatChamferPropagation

Returns or sets the propagation mode of the geometrical elements to be
chamfered.

Example:
The following example returns in prop the propagation mode of the
firstChamfer chamfer, and then sets it to
catMinimalChamfer:

Set prop = firstChamfer.Propagation
firstChamfer.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 be
chamfered.

Parameters:

iElementToWithdraw
The existing element to withdraw
The following

Boundary object is supported: TriDimFeatEdge.

Example:
The following example withdraws an existing element element to be chamfered
from the firstChamfer chamfer:

firstChamfer.WithdrawElementToChamfer(element)
Parameters:

i_element_to_withdraw (Reference) –

Return type:

None