ViewScaleBuilder Class

class NXOpen.Drawings.ViewScaleBuilder

Bases: NXOpen.TaggedObject, NXOpen.GeometricUtilities.IComponentBuilder

Represents the View Scale (Drawings.

ViewScaleBuilder)

New in version NX6.0.0.

Properties

Property Description
Denominator Returns or sets the scale denominator
Expression Returns or sets the scale expression
Numerator Returns or sets the scale numerator
ScaleType Returns or sets the scale 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.

Enumerations

ViewScaleBuilderType Enumeration The view scale type

Property Detail

Denominator

ViewScaleBuilder.Denominator

Returns or sets the scale denominator

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

Getter Method

Signature Denominator

Returns:returns the denominator for the view’s scale
Return type:float

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature Denominator

Parameters:denominator (float) – sets the denominator for the view’s scale

New in version NX6.0.0.

License requirements: drafting (“DRAFTING”)

Expression

ViewScaleBuilder.Expression

Returns or sets the scale expression

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

Getter Method

Signature Expression

Returns:returns the expression used to determine the view scale. It will only be used if type is set to Drawings.ViewScaleBuilderType.Expression.
Return type:NXOpen.Expression

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature Expression

Parameters:expression (NXOpen.Expression) – sets the expression used to determine the view scale. It will only be used if type is set to Drawings.ViewScaleBuilderType.Expression.

New in version NX6.0.0.

License requirements: drafting (“DRAFTING”)

Numerator

ViewScaleBuilder.Numerator

Returns or sets the scale numerator

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

Getter Method

Signature Numerator

Returns:returns the numerator for the view’s scale
Return type:float

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature Numerator

Parameters:numerator (float) – sets the numerator for the view’s scale

New in version NX6.0.0.

License requirements: drafting (“DRAFTING”)

ScaleType

ViewScaleBuilder.ScaleType

Returns or sets the scale type

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

Getter Method

Signature ScaleType

Returns:returns the scale type.
Return type:NXOpen.Drawings.ViewScaleBuilderType

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature ScaleType

Parameters:type (NXOpen.Drawings.ViewScaleBuilderType) – sets the scale type.

New in version NX6.0.0.

License requirements: drafting (“DRAFTING”)

Method Detail

Validate

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