LineTypeBuilder Class¶
-
class
NXOpen.DiagrammingLibraryAuthor.LineTypeBuilder¶ Bases:
NXOpen.TaggedObject,NXOpen.GeometricUtilities.IComponentBuilderRepresents a LineTypeBuilder.
New in version NX11.0.1.
Properties¶
| Property | Description |
|---|---|
| LineColor | Returns or sets the line color. |
| LineFont | Returns or sets the line font. |
| LineTypeName | Returns or sets the name of the line type. |
| LineTypePriority | Returns or sets the priority of the line type. |
| LineWidth | Returns or sets the line width. |
| ObjectId | Returns the object Id of the line type. |
| 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¶
LineColor¶
-
LineTypeBuilder.LineColor¶ Returns or sets the line color.
-------------------------------------Getter Method
Signature
LineColorReturns: Return type: Id New in version NX11.0.1.
License requirements: None.
-------------------------------------Setter Method
Signature
LineColorParameters: colorId (Id) – New in version NX11.0.1.
License requirements: None.
LineFont¶
-
LineTypeBuilder.LineFont¶ Returns or sets the line font.
-------------------------------------Getter Method
Signature
LineFontReturns: Return type: NXOpen.DisplayableObjectObjectFontNew in version NX11.0.1.
License requirements: None.
-------------------------------------Setter Method
Signature
LineFontParameters: font ( NXOpen.DisplayableObjectObjectFont) –New in version NX11.0.1.
License requirements: None.
LineTypeName¶
-
LineTypeBuilder.LineTypeName¶ Returns or sets the name of the line type.
It should be unique.
-------------------------------------Getter Method
Signature
LineTypeNameReturns: Return type: str New in version NX11.0.1.
License requirements: None.
-------------------------------------Setter Method
Signature
LineTypeNameParameters: name (str) – New in version NX11.0.1.
License requirements: None.
LineTypePriority¶
-
LineTypeBuilder.LineTypePriority¶ Returns or sets the priority of the line type.
It should be greater than or equal to 0.
-------------------------------------Getter Method
Signature
LineTypePriorityReturns: Return type: int New in version NX11.0.1.
License requirements: None.
-------------------------------------Setter Method
Signature
LineTypePriorityParameters: priority (int) – New in version NX11.0.1.
License requirements: None.
LineWidth¶
-
LineTypeBuilder.LineWidth¶ Returns or sets the line width.
-------------------------------------Getter Method
Signature
LineWidthReturns: Return type: NXOpen.DisplayableObjectObjectWidthNew in version NX11.0.1.
License requirements: None.
-------------------------------------Setter Method
Signature
LineWidthParameters: width ( NXOpen.DisplayableObjectObjectWidth) –New in version NX11.0.1.
License requirements: None.
Method Detail¶
Validate¶
-
LineTypeBuilder.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.