ColorExpressionsBuilder Class

class NXOpen.Tooling.ColorExpressionsBuilder

Bases: NXOpen.Builder

Represents a NXOpen.Tooling.ColorExpressionsBuilder builder.

To create a new instance of this class, use NXOpen.Tooling.MoldwizardManager.CreateColorExpressionsBuilder()

New in version NX12.0.0.

Properties

Property Description
ColorName Returns or sets the color name
ColorPicker Returns or sets the color picker
SelectFaces Returns the solid faces selected by user
Tag Returns the Tag for this object.

Methods

Method Description
BlockCurrentUDO Block current udo
Commit Commits any edits that have been applied to the builder.
DeleteCurrentUDO Delete current udo
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.
SetCurrentUDO Select current udo
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

ColorName

ColorExpressionsBuilder.ColorName

Returns or sets the color name

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

Getter Method

Signature ColorName

Returns:
Return type:str

New in version NX12.0.0.

License requirements: None.

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

Setter Method

Signature ColorName

Parameters:colorName (str) –

New in version NX12.0.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

ColorPicker

ColorExpressionsBuilder.ColorPicker

Returns or sets the color picker

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

Getter Method

Signature ColorPicker

Returns:
Return type:Id

New in version NX12.0.0.

License requirements: None.

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

Setter Method

Signature ColorPicker

Parameters:colorPicker (Id) –

New in version NX12.0.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

SelectFaces

ColorExpressionsBuilder.SelectFaces

Returns the solid faces selected by user

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

Getter Method

Signature SelectFaces

Returns:
Return type:NXOpen.ScCollector

New in version NX12.0.0.

License requirements: None.

Method Detail

BlockCurrentUDO

ColorExpressionsBuilder.BlockCurrentUDO

Block current udo

Signature BlockCurrentUDO(blocked)

Parameters:blocked (bool) –

New in version NX12.0.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

DeleteCurrentUDO

ColorExpressionsBuilder.DeleteCurrentUDO

Delete current udo

Signature DeleteCurrentUDO()

New in version NX12.0.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

SetCurrentUDO

ColorExpressionsBuilder.SetCurrentUDO

Select current udo

Signature SetCurrentUDO(udo)

Parameters:udo (NXOpen.UserDefinedObjects.UserDefinedObject) – The udo object

New in version NX12.0.0.

License requirements: ug_mold_design (“UG MOLD”) OR prog_die_wizard (“UG/Progressive Die Wizard”)

Validate

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