AddReusableFeatureBuilder Class

class NXOpen.Tooling.AddReusableFeatureBuilder

Bases: NXOpen.Builder

Represents a NXOpen.Tooling.AddReusableFeatureBuilder

To create a new instance of this class, use NXOpen.Tooling.AddReusableFeatureCollection.CreateBuilder()

Default values.

Property Value
LayerOption Work
SpecifiedLayer 1

New in version NX7.5.0.

Properties

Property Description
LayerOption Returns or sets the layer option
SpecifiedLayer Returns or sets the specified layer
Tag Returns the Tag for this object.

Methods

Method Description
Commit Commits any edits that have been applied to the builder.
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.
GetCopyPasteBuilder Returns the copy paste builder
GetObject Returns the object currently being edited by this builder.
GetUserExpressions Gets the user expressions value
SetUserExpressions Sets the user expressions value
ShowResults Updates the model to reflect the result of an edit to the model for all builders that support showing results.
Validate Validate whether the inputs to the component are sufficient for commit to be called.

Enumerations

AddReusableFeatureBuilderLayerOptionType Enumeration Represents the layer option type

Property Detail

LayerOption

AddReusableFeatureBuilder.LayerOption

Returns or sets the layer option

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

Getter Method

Signature LayerOption

Returns:
Return type:NXOpen.Tooling.AddReusableFeatureBuilderLayerOptionType

New in version NX7.5.0.

License requirements: None.

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

Setter Method

Signature LayerOption

Parameters:layerOption (NXOpen.Tooling.AddReusableFeatureBuilderLayerOptionType) –

New in version NX7.5.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

SpecifiedLayer

AddReusableFeatureBuilder.SpecifiedLayer

Returns or sets the specified layer

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

Getter Method

Signature SpecifiedLayer

Returns:
Return type:int

New in version NX7.5.0.

License requirements: None.

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

Setter Method

Signature SpecifiedLayer

Parameters:specifiedLayer (int) –

New in version NX7.5.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

Method Detail

GetCopyPasteBuilder

AddReusableFeatureBuilder.GetCopyPasteBuilder

Returns the copy paste builder

Signature GetCopyPasteBuilder()

Returns:
Return type:NXOpen.Features.CopyPasteBuilder

New in version NX7.5.0.

License requirements: None.

GetUserExpressions

AddReusableFeatureBuilder.GetUserExpressions

Gets the user expressions value

Signature GetUserExpressions()

Returns:a tuple
Return type:A tuple consisting of (userExpressionsName, userExpressionsValue) userExpressionsName is a list of str. User expressions Name userExpressionsValue is a list of str. User expressions Value

New in version NX7.5.0.

License requirements: None.

SetUserExpressions

AddReusableFeatureBuilder.SetUserExpressions

Sets the user expressions value

Signature SetUserExpressions(userExpressionsName, userExpressionsValue)

Parameters:
  • userExpressionsName (list of str) – User expressions Name
  • userExpressionsValue (list of str) – User expressions Value

New in version NX7.5.0.

License requirements: None.

Validate

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