DraftBodyBuilder Class¶
-
class
NXOpen.Features.DraftBodyBuilder¶ Bases:
NXOpen.Features.FeatureBuilderRepresents a
NXOpen.Features.DraftBodybuilderTo create a new instance of this class, use
NXOpen.Features.FeatureCollection.CreateDraftBodyBuilder()Default values.
Property Value DraftAngle.Value 10.0 DraftMethod Isocline ExtremeFacePointOverridesStationary False FilletRadius.Value 2.5 (millimeters part), 0.1 (inches part) MatchScope All MatchType None RepairPartingEdge None RepairRadius.Value (deprecated) 2.5 (millimeters part), 0.1 (inches part) RepairingOption (deprecated) None Type Edges UseDraftedBodyAsPartingObject False New in version NX5.0.0.
Properties¶
| Property | Description |
|---|---|
| DraftAngle | Returns the draft angle |
| DraftMethod | Returns or sets the draft method |
| DrawDirection | Returns or sets the draw direction |
| EdgesToMoveToDraftedFace | Returns the edges to move to drafted face |
| ExtremeFacePointOverridesStationary | Returns or sets the extreme face point overrides stationary |
| FacesToDraft | Returns the faces to draft |
| FacesToMoveToDraftedFace | Returns the faces to move to drafted face |
| FilletRadius | Returns the fillet radius |
| MatchScope | Returns or sets the match scope |
| MatchType | Returns or sets the match type |
| MatchingOption | Returns or sets the matching option |
| ParentFeatureInternal | Returns or sets whether or not the latest timestamped parent feature of this feature should be made internal |
| PartingObject | Returns the parting object |
| PatchSolutionFlag | Returns or sets the patch solution flag |
| PatchSurfaceFilename | Returns or sets the patch surface filename |
| RepairPartingEdge | Returns or sets the repairing parting edge |
| RepairRadius | Returns the repair radius |
| RepairingOption | Returns or sets the repairing option |
| StationaryEdgesAboveParting | Returns the stationary edges above parting |
| StationaryEdgesBelowParting | Returns the stationary edges below parting |
| SurroundingPatchSurfaceFilename | Returns or sets the surrounding patch surface filename |
| Tag | Returns the Tag for this object. |
| Tolerance | Returns or sets the tolerance |
| Type | Returns or sets the draft body type |
| UnmatchedEdges | Returns the edges that will not be matched when matching option is AllButSelected |
| UnmatchedFaces | Returns the faces that will not be matched when matching option is AllButSelected |
| UseDraftedBodyAsPartingObject | Returns or sets the use drafted body as parting object |
Methods¶
| Method | Description |
|---|---|
| Commit | Commits any edits that have been applied to the builder. |
| CommitFeature | Commits the feature parameters and creates the feature |
| 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 |
| 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¶
| DraftBodyBuilderMatchOption Enumeration | Describes the different match options. |
| DraftBodyBuilderMatchingScope Enumeration | Describes the different match scopes. |
| DraftBodyBuilderMatchingType Enumeration | Describes the different match types |
| DraftBodyBuilderMethod Enumeration | Describes the Draft Body method as true draft or isocline draft. |
| DraftBodyBuilderRepairOption Enumeration | Describes the different repair options. |
| DraftBodyBuilderRepairingPartingEdgeOption Enumeration | Describes the different repair parting edges options. |
| DraftBodyBuilderTypes Enumeration | Describes the different Draft Body types |
Property Detail¶
DraftAngle¶
-
DraftBodyBuilder.DraftAngle¶ Returns the draft angle
-------------------------------------Getter Method
Signature
DraftAngleReturns: Return type: NXOpen.ExpressionNew in version NX5.0.0.
License requirements: None.
DraftMethod¶
-
DraftBodyBuilder.DraftMethod¶ Returns or sets the draft method
-------------------------------------Getter Method
Signature
DraftMethodReturns: Return type: NXOpen.Features.DraftBodyBuilderMethodNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DraftMethodParameters: draftMethod ( NXOpen.Features.DraftBodyBuilderMethod) –New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
DrawDirection¶
-
DraftBodyBuilder.DrawDirection¶ Returns or sets the draw direction
-------------------------------------Getter Method
Signature
DrawDirectionReturns: Return type: NXOpen.DirectionNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DrawDirectionParameters: drawDirection ( NXOpen.Direction) –New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
EdgesToMoveToDraftedFace¶
-
DraftBodyBuilder.EdgesToMoveToDraftedFace¶ Returns the edges to move to drafted face
-------------------------------------Getter Method
Signature
EdgesToMoveToDraftedFaceReturns: Return type: NXOpen.ScCollectorNew in version NX5.0.0.
License requirements: None.
ExtremeFacePointOverridesStationary¶
-
DraftBodyBuilder.ExtremeFacePointOverridesStationary¶ Returns or sets the extreme face point overrides stationary
-------------------------------------Getter Method
Signature
ExtremeFacePointOverridesStationaryReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ExtremeFacePointOverridesStationaryParameters: extremeFacePointOverridesStationary (bool) – New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
FacesToDraft¶
-
DraftBodyBuilder.FacesToDraft¶ Returns the faces to draft
-------------------------------------Getter Method
Signature
FacesToDraftReturns: Return type: NXOpen.ScCollectorNew in version NX5.0.0.
License requirements: None.
FacesToMoveToDraftedFace¶
-
DraftBodyBuilder.FacesToMoveToDraftedFace¶ Returns the faces to move to drafted face
-------------------------------------Getter Method
Signature
FacesToMoveToDraftedFaceReturns: Return type: NXOpen.ScCollectorNew in version NX5.0.0.
License requirements: None.
FilletRadius¶
-
DraftBodyBuilder.FilletRadius¶ Returns the fillet radius
-------------------------------------Getter Method
Signature
FilletRadiusReturns: Return type: NXOpen.ExpressionNew in version NX9.0.0.
License requirements: None.
MatchScope¶
-
DraftBodyBuilder.MatchScope¶ Returns or sets the match scope
-------------------------------------Getter Method
Signature
MatchScopeReturns: Return type: NXOpen.Features.DraftBodyBuilderMatchingScopeNew in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
MatchScopeParameters: matchingScope ( NXOpen.Features.DraftBodyBuilderMatchingScope) –New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
MatchType¶
-
DraftBodyBuilder.MatchType¶ Returns or sets the match type
-------------------------------------Getter Method
Signature
MatchTypeReturns: Return type: NXOpen.Features.DraftBodyBuilderMatchingTypeNew in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
MatchTypeParameters: matchType ( NXOpen.Features.DraftBodyBuilderMatchingType) –New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
MatchingOption¶
-
DraftBodyBuilder.MatchingOption¶ Returns or sets the matching option
-------------------------------------Getter Method
Signature
MatchingOptionReturns: Return type: NXOpen.Features.DraftBodyBuilderMatchOptionNew in version NX5.0.0.
Deprecated since version NX9.0.0: Use
NXOpen.Features.DraftBodyBuilder.MatchScope()insteadLicense requirements: None.
-------------------------------------Setter Method
Signature
MatchingOptionParameters: matchingOption ( NXOpen.Features.DraftBodyBuilderMatchOption) –New in version NX5.0.0.
Deprecated since version NX9.0.0: Use
NXOpen.Features.DraftBodyBuilder.MatchScope()insteadLicense requirements: solid_modeling (“SOLIDS MODELING”)
PartingObject¶
-
DraftBodyBuilder.PartingObject¶ Returns the parting object
-------------------------------------Getter Method
Signature
PartingObjectReturns: Return type: NXOpen.SelectDisplayableObjectNew in version NX5.0.0.
License requirements: None.
RepairPartingEdge¶
-
DraftBodyBuilder.RepairPartingEdge¶ Returns or sets the repairing parting edge
-------------------------------------Getter Method
Signature
RepairPartingEdgeReturns: Return type: NXOpen.Features.DraftBodyBuilderRepairingPartingEdgeOptionNew in version NX9.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
RepairPartingEdgeParameters: repairingPartingEdges ( NXOpen.Features.DraftBodyBuilderRepairingPartingEdgeOption) –New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
RepairRadius¶
-
DraftBodyBuilder.RepairRadius¶ Returns the repair radius
-------------------------------------Getter Method
Signature
RepairRadiusReturns: Return type: NXOpen.ExpressionNew in version NX5.0.0.
Deprecated since version NX9.0.0: Use
NXOpen.Features.DraftBodyBuilder.FilletRadius()insteadLicense requirements: None.
RepairingOption¶
-
DraftBodyBuilder.RepairingOption¶ Returns or sets the repairing option
-------------------------------------Getter Method
Signature
RepairingOptionReturns: Return type: NXOpen.Features.DraftBodyBuilderRepairOptionNew in version NX5.0.0.
Deprecated since version NX9.0.0: Use
NXOpen.Features.DraftBodyBuilder.RepairPartingEdge()insteadLicense requirements: None.
-------------------------------------Setter Method
Signature
RepairingOptionParameters: repairingOption ( NXOpen.Features.DraftBodyBuilderRepairOption) –New in version NX5.0.0.
Deprecated since version NX9.0.0: Use
NXOpen.Features.DraftBodyBuilder.RepairPartingEdge()insteadLicense requirements: solid_modeling (“SOLIDS MODELING”)
StationaryEdgesAboveParting¶
-
DraftBodyBuilder.StationaryEdgesAboveParting¶ Returns the stationary edges above parting
-------------------------------------Getter Method
Signature
StationaryEdgesAbovePartingReturns: Return type: NXOpen.ScCollectorNew in version NX5.0.0.
License requirements: None.
StationaryEdgesBelowParting¶
-
DraftBodyBuilder.StationaryEdgesBelowParting¶ Returns the stationary edges below parting
-------------------------------------Getter Method
Signature
StationaryEdgesBelowPartingReturns: Return type: NXOpen.ScCollectorNew in version NX5.0.0.
License requirements: None.
Tolerance¶
-
DraftBodyBuilder.Tolerance¶ Returns or sets the tolerance
-------------------------------------Getter Method
Signature
ToleranceReturns: Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ToleranceParameters: tolerance (float) – New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
Type¶
-
DraftBodyBuilder.Type¶ Returns or sets the draft body type
-------------------------------------Getter Method
Signature
TypeReturns: Return type: NXOpen.Features.DraftBodyBuilderTypesNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TypeParameters: type ( NXOpen.Features.DraftBodyBuilderTypes) –New in version NX5.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
UnmatchedEdges¶
-
DraftBodyBuilder.UnmatchedEdges¶ Returns the edges that will not be matched when matching option is AllButSelected
-------------------------------------Getter Method
Signature
UnmatchedEdgesReturns: Return type: NXOpen.ScCollectorNew in version NX5.0.0.
License requirements: None.
UnmatchedFaces¶
-
DraftBodyBuilder.UnmatchedFaces¶ Returns the faces that will not be matched when matching option is AllButSelected
-------------------------------------Getter Method
Signature
UnmatchedFacesReturns: Return type: NXOpen.ScCollectorNew in version NX5.0.0.
License requirements: None.
UseDraftedBodyAsPartingObject¶
-
DraftBodyBuilder.UseDraftedBodyAsPartingObject¶ Returns or sets the use drafted body as parting object
-------------------------------------Getter Method
Signature
UseDraftedBodyAsPartingObjectReturns: Return type: bool New in version NX11.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
UseDraftedBodyAsPartingObjectParameters: useDraftedBodyAsPartingObject (bool) – New in version NX11.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
Method Detail¶
Validate¶
-
DraftBodyBuilder.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.