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.
Properties
- 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
- 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
- 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
- Property NeutralElement() As
-
Returns or sets the draft neutral element.
To set the property, you can use the following object: .- 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
- 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
- Property PullingDirectionElement() As
-
Returns or sets the draft pulling direction element.
To set the property, you can use one of the following objects: or .- 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
- Sub AddFaceToDraft( iFace)
-
Adds a face to those to be drafted.
- Parameters:
-
- iFace
- The face to add to those to be drafted
The following object is supported: ScFace.
- Example:
- The following example adds the face NewFaceToDraft
to the draft domain CurrentDraftDomain:
CurrentDraftDomain.AddFaceToDraft(NewFaceToDraft)
- 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]
- Parameters:
-
- iFace
- The face to be removed from those to be drafted
The following object is supported: .
- Example:
- The following example removes the face FaceToRemove
from the draft domain CurrentDraftDomain:
CurrentDraftDomain.RemoveFaceToDraft(FaceToRemove)
- 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
- Parameters:
-
- iVolumeSupport
- dd>