LineWidthBuilder Class

class NXOpen.LineWidthBuilder

Bases: NXOpen.TaggedObject, NXOpen.GeometricUtilities.IComponentBuilder

Represents a NXOpen.LineWidthBuilder

New in version NX8.5.0.

Properties

Property Description
Tag Returns the Tag for this object.
Width Returns or sets the width.
WidthOption Returns or sets the width option

Methods

Method Description
IsValidOption Determines if the specified width option is supported.
Validate Validate whether the inputs to the component are sufficient for commit to be called.

Property Detail

Width

LineWidthBuilder.Width

Returns or sets the width.

Used when the width option is set to LineWidthOption.Assigned.

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

Getter Method

Signature Width

Returns:
Return type:NXOpen.DisplayableObjectObjectWidth

New in version NX8.5.0.

License requirements: None.

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

Setter Method

Signature Width

Parameters:width (NXOpen.DisplayableObjectObjectWidth) –

New in version NX8.5.0.

License requirements: None.

WidthOption

LineWidthBuilder.WidthOption

Returns or sets the width option

Use NXOpen.LineWidthBuilder.IsValidOption() to check whether the width option is supported by the builder.

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

Getter Method

Signature WidthOption

Returns:
Return type:NXOpen.LineWidthOption

New in version NX8.5.0.

License requirements: None.

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

Setter Method

Signature WidthOption

Parameters:widthOption (NXOpen.LineWidthOption) –

New in version NX8.5.0.

License requirements: None.

Method Detail

IsValidOption

LineWidthBuilder.IsValidOption

Determines if the specified width option is supported.

Signature IsValidOption(widthOption)

Parameters:widthOption (NXOpen.LineWidthOption) –
Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

Validate

LineWidthBuilder.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.