pycatia.part_interfaces.draft_domain¶
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.draft_domain.DraftDomain(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDraftDomainRepresents the draft domain.A draft domain is a basic object used by a draft shape. It contains objectssuch as an angle, a pulling direction, and a collection of faces to bedrafted.- add_face_to_draft(i_face: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub AddFaceToDraft(Reference iFace)Adds a face to those to be drafted.Parameters:iFaceThe face to add to those to be draftedThe followingBoundary object is supported: ScFace.Example:The following example adds the face NewFaceToDraft to the draft domainCurrentDraftDomain:CurrentDraftDomain.AddFaceToDraft(NewFaceToDraft)
- Parameters:
i_face (Reference) –
- Return type:
None
- property draft_angle: Angle¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property DraftAngle() As Angle (Read Only)Returns the draft angle.Example:The following example returns in angle the draft angle of the draftdomain firstDraftDomain:Set angle = firstDraftDomain.DraftAngle
- Return type:
- property faces_to_draft: References¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property FacesToDraft() As References (Read Only)Returns the faces to be drafted. They are returned as a collection ofreference geometric elements.Example:The following example returns the collection of faces to be drafted ofthe draft domain firstDraftDomain in list:Set list = firstDraftDomain.FacesToDraft
- Return type:
- get_pulling_direction(io_pulling_direction: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetPullingDirection(CATSafeArrayVariantioPullingDirection)Returns the draft pulling direction. The pulling direction is returned asan array containing the pulling direction vector components. Assume this arrayis PullDir. It contains:PullDir[0],PullDir[1],PullDir[2]The X, Y, and Z pulling direction vector componentsExample:The following example returns in PullDir the pulling direction vectorcomponents of the draft domain firstDraftDomain:Set PullDir = firstDraftDomain.PullingDirectionSet x = PullDir[0]Set y = PullDir[1]Set z = PullDir[2]
- Parameters:
io_pulling_direction (tuple) –
- Return type:
None
- property multiselection_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property MultiselectionMode() As CatDraftMultiselectionModeChanges the multiselection mode.Parameters:iMultiselectionMode.The elements to be drafted can be selected explicitly(CATNoneDraftMultiselectionMode) or can implicitly selected as neighbors of theneutral face (CATMultiselectionByNeutralMode)Example:The following example returns in MultiselMode themultiselection mode of the draft domain firstDraftDomain, and then sets it toCATMultiselectionByNeutralModeSet MultiselMode = firstDraftDomain.MultiselectionModefirstDraftDomain.MultiselectionMode = CATMultiselectionByNeutralMode
- Returns:
enum cat_draft_multiselection_mode
- Return type:
int
- property neutral_element: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property NeutralElement() As ReferenceReturns or sets the draft neutral element.To set the property, you can use the following Boundary object:PlanarFace.Example:The following example returns in neutral the neutral element of thedraft domain firstDraftDomain, and then sets it tonewNeutral:Set neutral = firstDraftDomain.NeutralElementfirstDraftDomain.NeutralElement = newNeutral
- Return type:
- property neutral_propagation_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property NeutralPropagationMode() AsCatDraftNeutralPropagationModeReturns or sets the neutral element propagation mode. This mode is usedwhen computing the needed neutral elements.Example:The following example returns in propMode the neutral propagation modeof the draft domain firstDraftDomain, and then sets it toCATSmoothDraftNeutralPropagationMode so that the neutral propagation will nowbe smooth:Set propMode = firstDraftDomain.NeutralPropagationModefirstDraftDomain.NeutralPropagationMode = CATSmoothDraftNeutralPropagationMode
- Returns:
enum cat_draft_neutral_propagation_mode
- Return type:
int
- property pulling_direction_element: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property PullingDirectionElement() As ReferenceReturns or sets the draft pulling direction element.To set the property, you can use one of the following Boundary objects:PlanarFace or RectilinearTriDimFeatEdge.Example:The following example returns in pullingdirection the pulling directionelement of the draft domain firstDraftDomain, and then sets it tonewPullingDirection:Set pullingdirection = firstDraftDomain.NeutralElementfirstDraftDomain.PullingDirectionElement = newPullingDirection
- Return type:
- remove_face_to_draft(i_face: Reference) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveFaceToDraft(Reference iFace)Removes a face from those to be drafted.Parameters:iFaceThe face to be removed from those to be draftedThe followingBoundary object is supported: Face.Example:The following example removes the face FaceToRemove from the draft domainCurrentDraftDomain:CurrentDraftDomain.RemoveFaceToDraft(FaceToRemove)
- Parameters:
i_face (Reference) –
- Return type:
None
- set_pulling_direction(i_x: float, i_y: float, i_z: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetPullingDirection(double iX,double iY,double iZ)Sets the draft pulling direction.Parameters:iX,iY,iZThe X, Y, and Z pulling direction vector componentsExample:The following example sets the draft pulling direction of the draftdomain firstDraftDomain to the direction with the vector components 10, -5,10:firstDraftDomain.PullingDirection 10, -5, 10
- Parameters:
i_x (float) –
i_y (float) –
i_z (float) –
- Return type:
None