CreateProductBuilder Class

class NXOpen.AME.CreateProductBuilder

Bases: NXOpen.Builder

Create and classify product

To create a new instance of this class, use NXOpen.AME.AMEManager.CreateProductBuilder()

New in version NX11.0.0.

Properties

Property Description
SelectClassificationFromTree Returns the select classification from tree builder.
SelectionEngObjectDefinition Returns the engineering object definition
Tag Returns the Tag for this object.

Methods

Method Description
Commit Commits any edits that have been applied to the builder.
CreateTypeAttribute Creates a new type attribute object
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.
GetObject Returns the object currently being edited by this builder.
SetObjectNameOnTypeAttr Sets the Object Name on Type Attribute Object.
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.

Property Detail

SelectClassificationFromTree

CreateProductBuilder.SelectClassificationFromTree

Returns the select classification from tree builder.

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

Getter Method

Signature SelectClassificationFromTree

Returns:
Return type:NXOpen.AME.SelectClassificationFromTreeBuilder

New in version NX11.0.0.

Deprecated since version NX12.0.0: The newly created product is placed under the product library node which corresponds to the Type Library path of the selected Device Type. If the selected type has no counterpart in the Product structure, system automatically places those directly under Device Product Library node.

License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)

SelectionEngObjectDefinition

CreateProductBuilder.SelectionEngObjectDefinition

Returns the engineering object definition

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

Getter Method

Signature SelectionEngObjectDefinition

Returns:
Return type:NXOpen.AME.SelectionEngineeringObjectDefinitionBuilder

New in version NX11.0.0.

License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)

Method Detail

CreateTypeAttribute

CreateProductBuilder.CreateTypeAttribute

Creates a new type attribute object

Signature CreateTypeAttribute()

Returns:
Return type:NXOpen.NXObject

New in version NX11.0.0.

License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)

SetObjectNameOnTypeAttr

CreateProductBuilder.SetObjectNameOnTypeAttr

Sets the Object Name on Type Attribute Object.

Signature SetObjectNameOnTypeAttr()

New in version NX12.0.0.

License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)

Validate

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