TrimBodyBuilder Class

class NXOpen.Features.TrimBodyBuilder

Bases: NXOpen.Features.FeatureBuilder

Represents the trim body feature builder.

This class is to be used only for editing pre-NX7.5.0 trim body features. Use NXOpen.Features.TrimBody2Builder to create and edit trim body features. To create a new instance of this class, use NXOpen.Features.FeatureCollection.CreateTrimBodyBuilder()

New in version NX4.0.0.

Properties

Property Description
ParentFeatureInternal Returns or sets whether or not the latest timestamped parent feature of this feature should be made internal
PatchSolutionFlag Returns or sets the patch solution flag
PatchSurfaceFilename Returns or sets the patch surface filename
SurroundingPatchSurfaceFilename Returns or sets the surrounding patch surface filename
Tag Returns the Tag for this object.
Tool Returns or sets the tool of the trim body feature
TrimDirection Returns or sets the trim direction of the trim body feature

Methods

Method Description
AddTarget Adds a target body during create.
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.
GetTargets Returns the target bodies of the trim body operation.
HideInternalParentFeatureAfterEdit Re-suppress an internal parent feature (a slave feature) after it has been edited.
RemoveTarget Removes a target body is removed from trim body in create.
Reverse Reverse the trim direction of trim body feature
SetParentFeatureInternal Set the parent features which would be internal or slaves to the feature being created or commited
SetTargets Sets the targets for a trim body opearation.
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

TrimBodyBuilderDirectionType Enumeration Represents the trim direction

Property Detail

Tool

TrimBodyBuilder.Tool

Returns or sets the tool of the trim body feature

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

Getter Method

Signature Tool

Returns:
Return type:NXOpen.NXObject

New in version NX4.0.0.

License requirements: None.

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

Setter Method

Signature Tool

Parameters:tool (NXOpen.NXObject) – Set trim body tool

New in version NX4.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”)

TrimDirection

TrimBodyBuilder.TrimDirection

Returns or sets the trim direction of the trim body feature

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

Getter Method

Signature TrimDirection

Returns:
Return type:NXOpen.Features.TrimBodyBuilderDirectionType

New in version NX4.0.0.

License requirements: None.

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

Setter Method

Signature TrimDirection

Parameters:direction (NXOpen.Features.TrimBodyBuilderDirectionType) – Set trim direction

New in version NX4.0.0.

License requirements: None.

Method Detail

AddTarget

TrimBodyBuilder.AddTarget

Adds a target body during create.

A new target will be added to the * trim body operation. During edit, an exception will be thrown as * the target can not be modified during edit.

Signature AddTarget(target)

Parameters:target (NXOpen.Body) – Body to add

New in version NX4.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”)

GetTargets

TrimBodyBuilder.GetTargets

Returns the target bodies of the trim body operation.

Signature GetTargets()

Returns:Target bodies
Return type:list of NXOpen.Body

New in version NX4.0.0.

License requirements: None.

RemoveTarget

TrimBodyBuilder.RemoveTarget

Removes a target body is removed from trim body in create.

  • During edit, an exception will be thrown as
  • target body can not be changed during edit.

Signature RemoveTarget(target)

Parameters:target (NXOpen.Body) – Body to remove

New in version NX4.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”)

Reverse

TrimBodyBuilder.Reverse

Reverse the trim direction of trim body feature

Signature Reverse()

New in version NX4.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”)

SetTargets

TrimBodyBuilder.SetTargets

Sets the targets for a trim body opearation.

Any existing targets will * be erased. For create multiple target bodies can be set. * This method will throw an exception during edit operation as the bodies * can not be changed at that point.

Signature SetTargets(target)

Parameters:target (list of NXOpen.Body) – target bodies

New in version NX4.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”)

Validate

TrimBodyBuilder.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.