ColorWidth Class

class NXOpen.ColorWidth

Bases: NXOpen.TaggedObject

Represents a NXOpen.ColorWidth used by NXOpen.WidthDefinition to define a custom width for each color.

This class contains an index into the color array and a custom width value assigned to the indexed color.

New in version NX5.0.0.

Properties

Property Description
Tag Returns the Tag for this object.
Width Returns or sets the width associated with the color
WidthSource Returns or sets the width entry source.

Methods

Property Detail

Width

ColorWidth.Width

Returns or sets the width associated with the color

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

Getter Method

Signature Width

Returns:
Return type:float

New in version NX5.0.0.

License requirements: None.

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

Setter Method

Signature Width

Parameters:width (float) –

New in version NX5.0.0.

License requirements: None.

WidthSource

ColorWidth.WidthSource

Returns or sets the width entry source.

This will be -1 if this color is not a custom width, otherwise it will be a value greater than 0 to index into the color array.

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

Getter Method

Signature WidthSource

Returns:
Return type:int

New in version NX5.0.0.

License requirements: None.

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

Setter Method

Signature WidthSource

Parameters:widthSource (int) –

New in version NX5.0.0.

License requirements: None.