DraftBodyBuilder Class

class NXOpen.Features.DraftBodyBuilder

Bases: NXOpen.Features.FeatureBuilder

Represents a NXOpen.Features.DraftBody builder

To 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 DraftAngle

Returns:
Return type:NXOpen.Expression

New in version NX5.0.0.

License requirements: None.

DraftMethod

DraftBodyBuilder.DraftMethod

Returns or sets the draft method

-------------------------------------

Getter Method

Signature DraftMethod

Returns:
Return type:NXOpen.Features.DraftBodyBuilderMethod

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DraftMethod

Parameters: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 DrawDirection

Returns:
Return type:NXOpen.Direction

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DrawDirection

Parameters: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 EdgesToMoveToDraftedFace

Returns:
Return type:NXOpen.ScCollector

New in version NX5.0.0.

License requirements: None.

ExtremeFacePointOverridesStationary

DraftBodyBuilder.ExtremeFacePointOverridesStationary

Returns or sets the extreme face point overrides stationary

-------------------------------------

Getter Method

Signature ExtremeFacePointOverridesStationary

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ExtremeFacePointOverridesStationary

Parameters: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 FacesToDraft

Returns:
Return type:NXOpen.ScCollector

New in version NX5.0.0.

License requirements: None.

FacesToMoveToDraftedFace

DraftBodyBuilder.FacesToMoveToDraftedFace

Returns the faces to move to drafted face

-------------------------------------

Getter Method

Signature FacesToMoveToDraftedFace

Returns:
Return type:NXOpen.ScCollector

New in version NX5.0.0.

License requirements: None.

FilletRadius

DraftBodyBuilder.FilletRadius

Returns the fillet radius

-------------------------------------

Getter Method

Signature FilletRadius

Returns:
Return type:NXOpen.Expression

New in version NX9.0.0.

License requirements: None.

MatchScope

DraftBodyBuilder.MatchScope

Returns or sets the match scope

-------------------------------------

Getter Method

Signature MatchScope

Returns:
Return type:NXOpen.Features.DraftBodyBuilderMatchingScope

New in version NX9.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature MatchScope

Parameters: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 MatchType

Returns:
Return type:NXOpen.Features.DraftBodyBuilderMatchingType

New in version NX9.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature MatchType

Parameters: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 MatchingOption

Returns:
Return type:NXOpen.Features.DraftBodyBuilderMatchOption

New in version NX5.0.0.

Deprecated since version NX9.0.0: Use NXOpen.Features.DraftBodyBuilder.MatchScope() instead

License requirements: None.

-------------------------------------

Setter Method

Signature MatchingOption

Parameters:matchingOption (NXOpen.Features.DraftBodyBuilderMatchOption) –

New in version NX5.0.0.

Deprecated since version NX9.0.0: Use NXOpen.Features.DraftBodyBuilder.MatchScope() instead

License requirements: solid_modeling (“SOLIDS MODELING”)

PartingObject

DraftBodyBuilder.PartingObject

Returns the parting object

-------------------------------------

Getter Method

Signature PartingObject

Returns:
Return type:NXOpen.SelectDisplayableObject

New in version NX5.0.0.

License requirements: None.

RepairPartingEdge

DraftBodyBuilder.RepairPartingEdge

Returns or sets the repairing parting edge

-------------------------------------

Getter Method

Signature RepairPartingEdge

Returns:
Return type:NXOpen.Features.DraftBodyBuilderRepairingPartingEdgeOption

New in version NX9.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature RepairPartingEdge

Parameters: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 RepairRadius

Returns:
Return type:NXOpen.Expression

New in version NX5.0.0.

Deprecated since version NX9.0.0: Use NXOpen.Features.DraftBodyBuilder.FilletRadius() instead

License requirements: None.

RepairingOption

DraftBodyBuilder.RepairingOption

Returns or sets the repairing option

-------------------------------------

Getter Method

Signature RepairingOption

Returns:
Return type:NXOpen.Features.DraftBodyBuilderRepairOption

New in version NX5.0.0.

Deprecated since version NX9.0.0: Use NXOpen.Features.DraftBodyBuilder.RepairPartingEdge() instead

License requirements: None.

-------------------------------------

Setter Method

Signature RepairingOption

Parameters:repairingOption (NXOpen.Features.DraftBodyBuilderRepairOption) –

New in version NX5.0.0.

Deprecated since version NX9.0.0: Use NXOpen.Features.DraftBodyBuilder.RepairPartingEdge() instead

License requirements: solid_modeling (“SOLIDS MODELING”)

StationaryEdgesAboveParting

DraftBodyBuilder.StationaryEdgesAboveParting

Returns the stationary edges above parting

-------------------------------------

Getter Method

Signature StationaryEdgesAboveParting

Returns:
Return type:NXOpen.ScCollector

New in version NX5.0.0.

License requirements: None.

StationaryEdgesBelowParting

DraftBodyBuilder.StationaryEdgesBelowParting

Returns the stationary edges below parting

-------------------------------------

Getter Method

Signature StationaryEdgesBelowParting

Returns:
Return type:NXOpen.ScCollector

New in version NX5.0.0.

License requirements: None.

Tolerance

DraftBodyBuilder.Tolerance

Returns or sets the tolerance

-------------------------------------

Getter Method

Signature Tolerance

Returns:
Return type:float

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature Tolerance

Parameters: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 Type

Returns:
Return type:NXOpen.Features.DraftBodyBuilderTypes

New in version NX5.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature Type

Parameters: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 UnmatchedEdges

Returns:
Return type:NXOpen.ScCollector

New 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 UnmatchedFaces

Returns:
Return type:NXOpen.ScCollector

New in version NX5.0.0.

License requirements: None.

UseDraftedBodyAsPartingObject

DraftBodyBuilder.UseDraftedBodyAsPartingObject

Returns or sets the use drafted body as parting object

-------------------------------------

Getter Method

Signature UseDraftedBodyAsPartingObject

Returns:
Return type:bool

New in version NX11.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature UseDraftedBodyAsPartingObject

Parameters: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.