MoveToDrawingViewBuilder Class¶
-
class
NXOpen.Drafting.
MoveToDrawingViewBuilder
¶ Bases:
NXOpen.Builder
This builder allows the user to extract contents from a sheet and transfer them to a new Drawing view, also provide some other options for view creation
To create a new instance of this class, use
NXOpen.Drafting.DraftingApplicationManager.CreateMoveToDrawingViewBuilder()
Default values.
Property Value ViewScale.Denominator 1.0 ViewScale.Numerator 1.0 ViewScale.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 XCoordinate 0 YCoordinate 0 New in version NX8.5.0.
Properties¶
Property | Description |
---|---|
SelectObjects | Returns the select objects from the current sheet |
SelectPoint | Returns or sets the select point to calculate the new created drawing view’s reference point |
Tag | Returns the Tag for this object. |
TwoDOrientation | Returns the view orientation |
ViewScale | Returns the view scale |
ViewStyle | Returns the view style |
XCoordinate | Returns or sets the x coordinate to calculate the new created drawing view’s reference point |
YCoordinate | Returns or sets the y coordinate to calculate the new created drawing view’s reference point |
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¶
SelectObjects¶
-
MoveToDrawingViewBuilder.
SelectObjects
¶ Returns the select objects from the current sheet
-------------------------------------
Getter Method
Signature
SelectObjects
Returns: Return type: NXOpen.SelectTaggedObjectList
New in version NX8.5.0.
License requirements: None.
SelectPoint¶
-
MoveToDrawingViewBuilder.
SelectPoint
¶ Returns or sets the select point to calculate the new created drawing view’s reference point
-------------------------------------
Getter Method
Signature
SelectPoint
Returns: Return type: NXOpen.Point
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
SelectPoint
Parameters: selectPoint ( NXOpen.Point
) –New in version NX8.5.0.
License requirements: nx_layout (“NX Layout”)
TwoDOrientation¶
-
MoveToDrawingViewBuilder.
TwoDOrientation
¶ Returns the view orientation
-------------------------------------
Getter Method
Signature
TwoDOrientation
Returns: Return type: NXOpen.Drawings.View2dOrientBuilder
New in version NX8.5.0.
License requirements: None.
ViewScale¶
-
MoveToDrawingViewBuilder.
ViewScale
¶ Returns the view scale
-------------------------------------
Getter Method
Signature
ViewScale
Returns: Return type: NXOpen.Drawings.ViewScaleBuilder
New in version NX8.5.0.
License requirements: None.
ViewStyle¶
-
MoveToDrawingViewBuilder.
ViewStyle
¶ Returns the view style
-------------------------------------
Getter Method
Signature
ViewStyle
Returns: Return type: NXOpen.Drawings.ViewStyleBuilder
New in version NX8.5.0.
License requirements: None.
XCoordinate¶
-
MoveToDrawingViewBuilder.
XCoordinate
¶ Returns or sets the x coordinate to calculate the new created drawing view’s reference point
-------------------------------------
Getter Method
Signature
XCoordinate
Returns: Return type: float New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
XCoordinate
Parameters: xCoordinate (float) – New in version NX8.5.0.
License requirements: nx_layout (“NX Layout”)
YCoordinate¶
-
MoveToDrawingViewBuilder.
YCoordinate
¶ Returns or sets the y coordinate to calculate the new created drawing view’s reference point
-------------------------------------
Getter Method
Signature
YCoordinate
Returns: Return type: float New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
YCoordinate
Parameters: yCoordinate (float) – New in version NX8.5.0.
License requirements: nx_layout (“NX Layout”)
Method Detail¶
Validate¶
-
MoveToDrawingViewBuilder.
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.