ColorWidth Class¶
-
class
NXOpen.ColorWidth¶ Bases:
NXOpen.TaggedObjectRepresents a
NXOpen.ColorWidthused byNXOpen.WidthDefinitionto 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
WidthReturns: Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
WidthParameters: 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
WidthSourceReturns: Return type: int New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
WidthSourceParameters: widthSource (int) – New in version NX5.0.0.
License requirements: None.