DieAttributesBuilder Class — NXOpen Python API Reference 12.0.0 documentation

# DieAttributesBuilder Class

class `NXOpen.Die.``DieAttributesBuilder`

  Bases: `NXOpen.TaggedObject`, `NXOpen.GeometricUtilities.IComponentBuilder`

  Represents a `NXOpen.Die.DieAttributesBuilder`.

  The Die Attributes class is a helper to the main Die Design feature to gather the attribute title and value and face color to be applied. The attribute will be applied to a face or faces in the application of varying types, such as a base face.

  To create a new instance of this class, use `NXOpen.Die.DieCollection.CreateDieAttribute()`

  New in version NX6.0.0.

# Properties

Property | Description
--- | ---
AttributeColor | Returns or sets the color to be applied to the face, or faces, in the application
AttributeTitle | Returns or sets the title of the attribute to be applied
AttributeValue | Returns or sets the value given to the attribute
Tag | Returns the Tag for this object.

# Methods

Method | Description
--- | ---
Validate | Validate whether the inputs to the component are sufficient for commit to be called.

# Property Detail

## AttributeColor

`DieAttributesBuilder.``AttributeColor`

  Returns or sets the color to be applied to the face, or faces, in the application

  `-------------------------------------`

  Getter Method

  Signature `AttributeColor`

  Returns: |
  Return type: | Id

  New in version NX6.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `AttributeColor`

  Parameters: | attributeColor (Id) –

  New in version NX6.0.0.

  License requirements: None.

## AttributeTitle

`DieAttributesBuilder.``AttributeTitle`

  Returns or sets the title of the attribute to be applied

  `-------------------------------------`

  Getter Method

  Signature `AttributeTitle`

  Returns: |
  Return type: | str

  New in version NX6.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `AttributeTitle`

  Parameters: | attributeTitle (str) –

  New in version NX6.0.0.

  License requirements: None.

## AttributeValue

`DieAttributesBuilder.``AttributeValue`

  Returns or sets the value given to the attribute

  `-------------------------------------`

  Getter Method

  Signature `AttributeValue`

  Returns: |
  Return type: | str

  New in version NX6.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `AttributeValue`

  Parameters: | attributeValue (str) –

  New in version NX6.0.0.

  License requirements: None.

# Method Detail

## Validate

`DieAttributesBuilder.``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.