NXColor Class — NXOpen Python API Reference 12.0.0 documentation

# NXColor Class

class `NXOpen.``NXColor`

  Bases: `object`

  Represents a standard NX color.

  The RGB values and name for a particular NXColor object depend on the part. Hence, if you look up an NXColor object in one part and use it in another part, the object may have different RGB values in the other part.

  New in version NX5.0.0.

# Properties

Property | Description
--- | ---
Label | Returns the label in the display part

# Methods

Method | Description
--- | ---
GetRgb | Gets the RGB values in the display part

# Structs

NXColorRgb_Struct Struct | RGB values

# Property Detail

## Label

`NXColor.``Label`

  Returns the label in the display part

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

  Getter Method

  Signature `Label`

  Returns: |
  Return type: | str

  New in version NX5.0.0.

  License requirements: None.

# Method Detail

## GetRgb

`NXColor.``GetRgb`

  Gets the RGB values in the display part

  Signature `GetRgb()`

  Returns: |
  Return type: | `NXOpen.NXColorRgb_Struct`

  New in version NX5.0.0.

  License requirements: None.