All Frameworks  Object Hierarchy  This Framework  Indexes   

DraftDomain (Object)

Represents the draft domain.
A draft domain is a basic object used by a draft shape. It contains objects such as an angle, a pulling direction, and a collection of faces to be drafted.

Property Index

DraftAngle
Returns the draft angle.
FacesToDraft
Returns the faces to be drafted.
MultiselectionMode
Changes the multiselection mode.
NeutralElement
Returns or sets the draft neutral element.
NeutralPropagationMode
Returns or sets the neutral element propagation mode.
PullingDirectionElement
Returns or sets the draft pulling direction element.

Method Index

AddFaceToDraft
Adds a face to those to be drafted.
GetPullingDirection
Returns the draft pulling direction.
RemoveFaceToDraft
Removes a face from those to be drafted.
SetPullingDirection
Sets the draft pulling direction.
SetVolumeSupport
Value the support of draft.

Properties


o Property DraftAngle() As (Read Only)
Returns the draft angle.
Example:
The following example returns in angle the draft angle of the draft domain firstDraftDomain:
 Set angle = firstDraftDomain.DraftAngle
 
o Property FacesToDraft() As (Read Only)
Returns the faces to be drafted. They are returned as a collection of reference geometric elements.
Example:
The following example returns the collection of faces to be drafted of the draft domain firstDraftDomain in list:
 Set list = firstDraftDomain.FacesToDraft
 
o Property MultiselectionMode() As
Changes the multiselection mode.
Parameters:
iMultiselectionMode.
The elements to be drafted can be selected explicitly (CATNoneDraftMultiselectionMode) or can implicitly selected as neighbors of the neutral face (CATMultiselectionByNeutralMode)
Example:
The following example returns in MultiselMode the multiselection mode of the draft domain firstDraftDomain, and then sets it to CATMultiselectionByNeutralMode
 Set MultiselMode = firstDraftDomain.MultiselectionMode
 firstDraftDomain.MultiselectionMode = CATMultiselectionByNeutralMode
 
o Property NeutralElement() As
Returns 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 the draft domain firstDraftDomain, and then sets it to newNeutral:
 Set neutral = firstDraftDomain.NeutralElement
 firstDraftDomain.NeutralElement = newNeutral
 
o Property NeutralPropagationMode() As
Returns or sets the neutral element propagation mode. This mode is used when computing the needed neutral elements.
Example:
The following example returns in propMode the neutral propagation mode of the draft domain firstDraftDomain, and then sets it to CATSmoothDraftNeutralPropagationMode so that the neutral propagation will now be smooth:
 Set propMode = firstDraftDomain.NeutralPropagationMode
 firstDraftDomain.NeutralPropagationMode = CATSmoothDraftNeutralPropagationMode
 
o Property PullingDirectionElement() As
Returns 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 direction element of the draft domain firstDraftDomain, and then sets it to newPullingDirection:
 Set pullingdirection = firstDraftDomain.NeutralElement
 firstDraftDomain.PullingDirectionElement = newPullingDirection
 

Methods


o Sub AddFaceToDraft( iFace)
Adds a face to those to be drafted.
Parameters:
iFace
The face to add to those to be drafted
The following
Boundary object is supported: ScFace.
Example:
The following example adds the face NewFaceToDraft to the draft domain CurrentDraftDomain:
 CurrentDraftDomain.AddFaceToDraft(NewFaceToDraft)
 
o Sub GetPullingDirection( ioPullingDirection)
Returns the draft pulling direction. The pulling direction is returned as an array containing the pulling direction vector components. Assume this array is PullDir. It contains:
PullDir[0],PullDir[1],PullDir[2]
The X, Y, and Z pulling direction vector components
Example:
The following example returns in PullDir the pulling direction vector components of the draft domain firstDraftDomain:
 Set PullDir = firstDraftDomain.PullingDirection
 Set x = PullDir[0]
 Set y = PullDir[1]
 Set z = PullDir[2]
 
o Sub RemoveFaceToDraft( iFace)
Removes a face from those to be drafted.
Parameters:
iFace
The face to be removed from those to be drafted
The following
Boundary object is supported: Face.
Example:
The following example removes the face FaceToRemove from the draft domain CurrentDraftDomain:
 CurrentDraftDomain.RemoveFaceToDraft(FaceToRemove)
 
o Sub SetPullingDirection( iX,
iY,
iZ)
Sets the draft pulling direction.
Parameters:
iX,iY,iZ
The X, Y, and Z pulling direction vector components
Example:
The following example sets the draft pulling direction of the draft domain firstDraftDomain to the direction with the vector components 10, -5, 10:
 firstDraftDomain.PullingDirection 10, -5, 10
 
o Sub SetVolumeSupport( iVolumeSupport)
Value the support of draft.
Parameters:
iVolumeSupport

Copyright © 2003, Dassault Systèmes. All rights reserved.