LineTypeBuilder Class

class NXOpen.DiagrammingLibraryAuthor.LineTypeBuilder

Bases: NXOpen.TaggedObject, NXOpen.GeometricUtilities.IComponentBuilder

Represents 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 LineColor

Returns:
Return type:Id

New in version NX11.0.1.

License requirements: None.

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

Setter Method

Signature LineColor

Parameters:colorId (Id) –

New in version NX11.0.1.

License requirements: None.

LineFont

LineTypeBuilder.LineFont

Returns or sets the line font.

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

Getter Method

Signature LineFont

Returns:
Return type:NXOpen.DisplayableObjectObjectFont

New in version NX11.0.1.

License requirements: None.

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

Setter Method

Signature LineFont

Parameters: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 LineTypeName

Returns:
Return type:str

New in version NX11.0.1.

License requirements: None.

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

Setter Method

Signature LineTypeName

Parameters: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 LineTypePriority

Returns:
Return type:int

New in version NX11.0.1.

License requirements: None.

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

Setter Method

Signature LineTypePriority

Parameters:priority (int) –

New in version NX11.0.1.

License requirements: None.

LineWidth

LineTypeBuilder.LineWidth

Returns or sets the line width.

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

Getter Method

Signature LineWidth

Returns:
Return type:NXOpen.DisplayableObjectObjectWidth

New in version NX11.0.1.

License requirements: None.

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

Setter Method

Signature LineWidth

Parameters:width (NXOpen.DisplayableObjectObjectWidth) –

New in version NX11.0.1.

License requirements: None.

ObjectId

LineTypeBuilder.ObjectId

Returns the object Id of the line type.

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

Getter Method

Signature ObjectId

Returns:
Return type:str

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.