DraftBuilder Class¶
-
class
NXOpen.Features.
DraftBuilder
¶ Bases:
NXOpen.Features.FeatureBuilder
Represents a Draft Feature Builder that creates or edits a draft (Old name Taper) feature.
This class provides methods to set and get various Draft feature parameters and input entities.
Following are default values and options.
** Direction </b> Z direction
** Draft method </b> :py:class:` Features.DraftBuilderMethod.Isocline < Features.DraftBuilderMethod>`
** Draft All instances </b> true
** Angle tolerance </b> 0.002/0.1 [rad/deg]
** Distance tolerance </b> 0.004/0.1 [in/mm]
To create a new instance of this class, use
NXOpen.Features.FeatureCollection.CreateDraftBuilder()
New in version NX4.0.0.
Properties¶
Property | Description |
---|---|
AngleTolerance | Returns or sets the angle tolerance in [rad/deg] |
Direction | Returns or sets the smart direction for draft |
DistanceTolerance | Returns or sets the distance tolerance in [in/mm] |
DraftAllInstances | Returns or sets the option Draft all instances [true/false] |
DraftBothSides | Returns or sets whether to draft on both sides of the reference |
DraftIsoclineOrTruedraft | Returns or sets the Draft method |
DraftReferencesMethod | Returns or sets the draft references method |
EdgeSetAngleExpressionList | Returns the list of draft edges SC Collectors and corresponding draft angles. |
FaceSetAngleExpressionList | Returns the list of draft faces SC Collectors and corresponding draft angles. |
ParentFeatureInternal | Returns or sets whether or not the latest timestamped parent feature of this feature should be made internal |
PartingReference | Returns the parting reference as SC Collector containing only faces or only one datum plane or only one point. |
PatchSolutionFlag | Returns or sets the patch solution flag |
PatchSurfaceFilename | Returns or sets the patch surface filename |
StationaryEntity | Returns or sets the stationary entity for draft. |
StationaryPartingReference | Returns the stationary parting reference as SC Collector containing only faces or only one datum plane or only one point Note that DraftBuilder. |
StationaryReference | Returns the stationary reference as SC Collector containing only faces or only one datum plane or only one point |
SurroundingPatchSurfaceFilename | Returns or sets the surrounding patch surface filename |
SymmetricAngle | Returns or sets whether draft angles on both sides of the parting reference are symmetric |
Tag | Returns the Tag for this object. |
TwoDimensionFaceSetsData | Returns the list of draft faces SC Collectors and corresponding draft angles above and below the parting reference. |
TypeOfDraft | Returns or sets the Draft type |
VariableAngleData | Returns the Data object for Variable Angle Draft |
Methods¶
Method | Description |
---|---|
Commit | Commits any edits that have been applied to the builder. |
CommitFeature | Commits the feature parameters and creates the feature @return |
Destroy | Deletes the builder, and cleans up any objects created by the builder. |
GetCommittedObjects | For builders that create more than one object, this method returns the objects that are created by commit. |
GetFeature | Returns the feature currently being edited by this builder. |
GetObject | Returns the object currently being edited by this builder. |
HideInternalParentFeatureAfterEdit | Re-suppress an internal parent feature (a slave feature) after it has been edited. |
SetParentFeatureInternal | Set the parent features which would be internal or slaves to the feature being created or commited |
SetVariableAngleOption | Sets the Variable Angle option |
ShowInternalParentFeatureForEdit | Unsuppress an internal parent feature (a slave feature) so it can be edited. |
ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results. |
UnsetParentFeatureInternal | Set the internal parent feature of the feature being edited to external |
Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Enumerations¶
DraftBuilderDraftReferencesMethods Enumeration | Describes the different Draft Methods in Draft References |
DraftBuilderMethod Enumeration | Describes the Draft type as true draft or isocline draft. |
DraftBuilderType Enumeration | Describes the different Draft types |
Property Detail¶
AngleTolerance¶
-
DraftBuilder.
AngleTolerance
¶ Returns or sets the angle tolerance in [rad/deg]
-------------------------------------
Getter Method
Signature
AngleTolerance()
Returns: Return type: float New in version NX4.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
-------------------------------------
Setter Method
Signature
AngleTolerance(angleTolerance)
Parameters: angleTolerance (float) – New in version NX4.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
Direction¶
-
DraftBuilder.
Direction
¶ Returns or sets the smart direction for draft
-------------------------------------
Getter Method
Signature
Direction()
Returns: Return type: NXOpen.Direction
New in version NX4.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
-------------------------------------
Setter Method
Signature
Direction(direction)
Parameters: direction ( NXOpen.Direction
) –New in version NX4.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
DistanceTolerance¶
-
DraftBuilder.
DistanceTolerance
¶ Returns or sets the distance tolerance in [in/mm]
-------------------------------------
Getter Method
Signature
DistanceTolerance()
Returns: Return type: float New in version NX4.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
-------------------------------------
Setter Method
Signature
DistanceTolerance(distanceTolerance)
Parameters: distanceTolerance (float) – New in version NX4.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
DraftAllInstances¶
-
DraftBuilder.
DraftAllInstances
¶ Returns or sets the option “Draft all instances” [true/false]
-------------------------------------
Getter Method
Signature
DraftAllInstances()
Returns: Return type: bool New in version NX4.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
-------------------------------------
Setter Method
Signature
DraftAllInstances(draftAllInstances)
Parameters: draftAllInstances (bool) – New in version NX4.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
DraftBothSides¶
-
DraftBuilder.
DraftBothSides
¶ Returns or sets whether to draft on both sides of the reference
-------------------------------------
Getter Method
Signature
DraftBothSides()
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
DraftBothSides(draftBothSides)
Parameters: draftBothSides (bool) – New in version NX8.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
DraftIsoclineOrTruedraft¶
-
DraftBuilder.
DraftIsoclineOrTruedraft
¶ Returns or sets the Draft method
-------------------------------------
Getter Method
Signature
DraftIsoclineOrTruedraft()
Returns: Return type: NXOpen.Features.DraftBuilderMethod
New in version NX4.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
-------------------------------------
Setter Method
Signature
DraftIsoclineOrTruedraft(draftMethod)
Parameters: draftMethod ( NXOpen.Features.DraftBuilderMethod
) –New in version NX4.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
DraftReferencesMethod¶
-
DraftBuilder.
DraftReferencesMethod
¶ Returns or sets the draft references method
-------------------------------------
Getter Method
Signature
DraftReferencesMethod()
Returns: Return type: NXOpen.Features.DraftBuilderDraftReferencesMethods
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
DraftReferencesMethod(draftReferencesMethod)
Parameters: draftReferencesMethod ( NXOpen.Features.DraftBuilderDraftReferencesMethods
) –New in version NX8.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
EdgeSetAngleExpressionList¶
-
DraftBuilder.
EdgeSetAngleExpressionList
¶ Returns the list of draft edges SC Collectors and corresponding draft angles.
-------------------------------------
Getter Method
Signature
EdgeSetAngleExpressionList()
Returns: Return type: NXOpen.ExpressionCollectorSetList
New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
FaceSetAngleExpressionList¶
-
DraftBuilder.
FaceSetAngleExpressionList
¶ Returns the list of draft faces SC Collectors and corresponding draft angles.
If the Draft is From Plane or Surface, use
Features.DraftBuilder.TwoDimensionFaceSetsData()
instead.-------------------------------------
Getter Method
Signature
FaceSetAngleExpressionList()
Returns: Return type: NXOpen.ExpressionCollectorSetList
New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
PartingReference¶
-
DraftBuilder.
PartingReference
¶ Returns the parting reference as SC Collector containing only faces or only one datum plane or only one point.
Note that DraftBuilder.StationaryPartingReference and DraftBuilder.PartingReference refer to the same collector.
-------------------------------------
Getter Method
Signature
PartingReference()
Returns: Return type: NXOpen.ScCollector
New in version NX9.0.0.
License requirements: None.
StationaryEntity¶
-
DraftBuilder.
StationaryEntity
¶ Returns or sets the stationary entity for draft.
-------------------------------------
Getter Method
Signature
StationaryEntity()
Returns: Return type: NXOpen.NXObject
New in version NX4.0.0.
Deprecated since version NX8.5.0: Use
Features.DraftBuilder.StationaryReference()
instead. Note that this API cannot be used together with the new API.License requirements: solid_modeling (“SOLIDS MODELING”)
-------------------------------------
Setter Method
Signature
StationaryEntity(stationaryEntity)
Parameters: stationaryEntity ( NXOpen.NXObject
) –New in version NX4.0.0.
Deprecated since version NX8.5.0: Use
Features.DraftBuilder.StationaryReference()
instead. Note that this API cannot be used together with the new API.License requirements: solid_modeling (“SOLIDS MODELING”)
StationaryPartingReference¶
-
DraftBuilder.
StationaryPartingReference
¶ Returns the stationary parting reference as SC Collector containing only faces or only one datum plane or only one point Note that DraftBuilder.
StationaryPartingReference and DraftBuilder.PartingReference refer to the same collector.
-------------------------------------
Getter Method
Signature
StationaryPartingReference()
Returns: Return type: NXOpen.ScCollector
New in version NX8.5.0.
License requirements: None.
StationaryReference¶
-
DraftBuilder.
StationaryReference
¶ Returns the stationary reference as SC Collector containing only faces or only one datum plane or only one point
-------------------------------------
Getter Method
Signature
StationaryReference()
Returns: Return type: NXOpen.ScCollector
New in version NX8.5.0.
License requirements: None.
SymmetricAngle¶
-
DraftBuilder.
SymmetricAngle
¶ Returns or sets whether draft angles on both sides of the parting reference are symmetric
-------------------------------------
Getter Method
Signature
SymmetricAngle()
Returns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
SymmetricAngle(symmetricAngle)
Parameters: symmetricAngle (bool) – New in version NX8.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
TwoDimensionFaceSetsData¶
-
DraftBuilder.
TwoDimensionFaceSetsData
¶ Returns the list of draft faces SC Collectors and corresponding draft angles above and below the parting reference.
-------------------------------------
Getter Method
Signature
TwoDimensionFaceSetsData()
Returns: Return type: NXOpen.GeometricUtilities.TwoExpressionsCollectorSetList
New in version NX8.5.0.
License requirements: None.
TypeOfDraft¶
-
DraftBuilder.
TypeOfDraft
¶ Returns or sets the Draft type
-------------------------------------
Getter Method
Signature
TypeOfDraft()
Returns: Return type: NXOpen.Features.DraftBuilderType
New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
-------------------------------------
Setter Method
Signature
TypeOfDraft(type)
Parameters: type ( NXOpen.Features.DraftBuilderType
) –New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
VariableAngleData¶
-
DraftBuilder.
VariableAngleData
¶ Returns the Data object for Variable Angle Draft
-------------------------------------
Getter Method
Signature
VariableAngleData()
Returns: Return type: NXOpen.GeometricUtilities.DraftVariableAngleData
New in version NX4.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
Method Detail¶
SetVariableAngleOption¶
-
DraftBuilder.
SetVariableAngleOption
¶ Sets the Variable Angle option
Signature
SetVariableAngleOption()
New in version NX4.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
Validate¶
-
DraftBuilder.
Validate
¶ Validate whether the inputs to the component are sufficient for commit to be called.
If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.
Signature
Validate()
Returns: Was self validation successful Return type: bool New in version NX3.0.1.
License requirements: None.