DrawingViewBuilder Class

class NXOpen.Drawings.DrawingViewBuilder

Bases: NXOpen.Builder

This builder allows the user to create a Drawing View

To create a new instance of this class, use NXOpen.Drawings.DraftingViewCollection.CreateDrawingViewBuilder()

Default values.

Property Value
MultipleViewPlacement.OptionType Center
MultipleViewPlacement.ViewPlacementCenter.AlignmentMethod Infer
MultipleViewPlacement.ViewPlacementCenter.AlignmentOption ToView
Scale.Denominator 1.0
Scale.Numerator 1.0
Scale.ScaleType Ratio
ViewStyle.ViewStyleGeneral.AngleSetting.Angle.Value 0
ViewStyle.ViewStyleGeneral.AngleSetting.Associative 0
ViewStyle.ViewStyleGeneral.AngleSetting.EvaluationPlane DrawingSheet
ViewStyle.ViewStyleOrientation.HingeLine.ReverseDirection false
ViewStyle.ViewStyleOrientation.HingeLine.VectorOption Inferred
ViewStyle.ViewStyleOrientation.Ovt.AssociativeOrientation 0

New in version NX6.0.0.

Properties

Property Description
CenterCoordinate Returns the center coordinate
MultipleViewPlacement Returns the multiple view placement
Scale Returns the view scale
Tag Returns the Tag for this object.
TwodOrientation Returns the view orientation in 2D
ViewBoundary Returns the view boundary.
ViewPlacement Returns the view placement.
ViewStyle Returns the view style

Methods

Method Description
Commit Commits any edits that have been applied to the builder.
Destroy Deletes the builder, and cleans up any objects created by the builder.
GetCommittedObjects For builders that create more than one object, this method returns the objects that are created by commit.
GetObject Returns the object currently being edited by this builder.
ShowResults Updates the model to reflect the result of an edit to the model for all builders that support showing results.
Validate Validate whether the inputs to the component are sufficient for commit to be called.

Property Detail

CenterCoordinate

DrawingViewBuilder.CenterCoordinate

Returns the center coordinate

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

Getter Method

Signature CenterCoordinate

Returns:
Return type:NXOpen.Drawings.ViewCenterCoordinateBuilder

New in version NX6.0.0.

License requirements: None.

MultipleViewPlacement

DrawingViewBuilder.MultipleViewPlacement

Returns the multiple view placement

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

Getter Method

Signature MultipleViewPlacement

Returns:
Return type:NXOpen.Drawings.MultipleViewPlacementBuilder

New in version NX6.0.2.

License requirements: None.

Scale

DrawingViewBuilder.Scale

Returns the view scale

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

Getter Method

Signature Scale

Returns:
Return type:NXOpen.Drawings.ViewScaleBuilder

New in version NX6.0.0.

License requirements: None.

TwodOrientation

DrawingViewBuilder.TwodOrientation

Returns the view orientation in 2D

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

Getter Method

Signature TwodOrientation

Returns:
Return type:NXOpen.Drawings.View2dOrientBuilder

New in version NX6.0.0.

License requirements: None.

ViewBoundary

DrawingViewBuilder.ViewBoundary

Returns the view boundary.

It is replace by Drawings.DrawingViewBuilder.MultipleViewPlacement()

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

Getter Method

Signature ViewBoundary

Returns:
Return type:NXOpen.Drawings.ViewBoundaryBuilder

New in version NX6.0.0.

Deprecated since version NX6.0.2: Use Drawings.DrawingViewBuilder.MultipleViewPlacement()

License requirements: None.

ViewPlacement

DrawingViewBuilder.ViewPlacement

Returns the view placement.

It is replace by Drawings.DrawingViewBuilder.MultipleViewPlacement()

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

Getter Method

Signature ViewPlacement

Returns:
Return type:NXOpen.Drawings.ViewPlacementBuilder

New in version NX6.0.0.

Deprecated since version NX6.0.2: Use Drawings.DrawingViewBuilder.MultipleViewPlacement()

License requirements: None.

ViewStyle

DrawingViewBuilder.ViewStyle

Returns the view style

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

Getter Method

Signature ViewStyle

Returns:
Return type:NXOpen.Drawings.ViewStyleBuilder

New in version NX6.0.0.

License requirements: None.

Method Detail

Validate

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