DetailViewBuilder Class¶
-
class
NXOpen.Drawings.DetailViewBuilder¶ Bases:
NXOpen.BuilderRepresents a
NXOpen.Drawings.DetailView.This class is used to create and edit Detail Views
To create a new instance of this class, use
NXOpen.Drawings.DraftingViewCollection.CreateDetailViewBuilder()Default values.
Property Value Origin.AlignmentMethod Infer Origin.AlignmentOption ToView Scale.Denominator 1.0 Scale.Numerator 1.0 Scale.ScaleType Ratio SecondaryComponents.ObjectType PrimaryGeometry Style.ViewStyleGeneral.AngleSetting.Angle.Value 0 Style.ViewStyleGeneral.AngleSetting.Associative 0 Style.ViewStyleGeneral.AngleSetting.EvaluationPlane DrawingSheet Style.ViewStyleOrientation.HingeLine.ReverseDirection false Style.ViewStyleOrientation.HingeLine.VectorOption Inferred Style.ViewStyleOrientation.Ovt.AssociativeOrientation 0 New in version NX6.0.0.
Properties¶
| Property | Description |
|---|---|
| Associative | Returns or sets the associative toggle If view is associative and set associative to false, the view will be converted to independent detail view. |
| BoundaryPoint1 | Returns or sets the first boundary point. |
| BoundaryPoint2 | Returns or sets the second boundary point. |
| HiddenObjects | Returns the list of objects to not show in the view |
| LabelOnParent | Returns or sets the label on parent |
| NonSectionedObjects | Returns the list of objects to not section in the view |
| Origin | Returns the origin |
| Parent | Returns the parent view |
| Scale | Returns the scale |
| SecondaryComponents | Returns the list of secondary components in the view |
| Style | Returns the style |
| Tag | Returns the Tag for this object. |
| Type | Returns or sets the type |
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. |
Enumerations¶
| DetailViewBuilderLabelOnParentType Enumeration | the display type for the label on parent |
| DetailViewBuilderTypes Enumeration | the type of boundary |
Property Detail¶
Associative¶
-
DetailViewBuilder.Associative¶ Returns or sets the associative toggle If view is associative and set associative to false, the view will be converted to independent detail view.
Otherwise, this setting will have no effect
-------------------------------------Getter Method
Signature
AssociativeReturns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AssociativeParameters: associative (bool) – New in version NX7.5.0.
License requirements: None.
BoundaryPoint1¶
-
DetailViewBuilder.BoundaryPoint1¶ Returns or sets the first boundary point.
This is the center of the boundary for these types:
NXOpen.Drawings.DetailViewBuilderTypes.CircularandNXOpen.Drawings.DetailViewBuilderTypes.RectangleByCenterAndCorner. This boundary point will be None for the type:NXOpen.Drawings.DetailViewBuilderTypes.Custom-------------------------------------Getter Method
Signature
BoundaryPoint1Returns: Return type: NXOpen.PointNew in version NX6.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
BoundaryPoint1Parameters: boundaryPoint1 ( NXOpen.Point) –New in version NX6.0.0.
License requirements: drafting (“DRAFTING”)
BoundaryPoint2¶
-
DetailViewBuilder.BoundaryPoint2¶ Returns or sets the second boundary point.
This is the point on the circle for the
NXOpen.Drawings.DetailViewBuilderTypes.Circularand the corner point for theNXOpen.Drawings.DetailViewBuilderTypes.RectangleByCenterAndCorner. This boundary point will be None for the type:NXOpen.Drawings.DetailViewBuilderTypes.Custom-------------------------------------Getter Method
Signature
BoundaryPoint2Returns: Return type: NXOpen.PointNew in version NX6.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
BoundaryPoint2Parameters: boundaryPoint2 ( NXOpen.Point) –New in version NX6.0.0.
License requirements: drafting (“DRAFTING”)
LabelOnParent¶
-
DetailViewBuilder.LabelOnParent¶ Returns or sets the label on parent
-------------------------------------Getter Method
Signature
LabelOnParentReturns: Return type: NXOpen.Drawings.DetailViewBuilderLabelOnParentTypeNew in version NX6.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
LabelOnParentParameters: labelOnParent ( NXOpen.Drawings.DetailViewBuilderLabelOnParentType) –New in version NX6.0.0.
License requirements: drafting (“DRAFTING”)
NonSectionedObjects¶
-
DetailViewBuilder.NonSectionedObjects¶ Returns the list of objects to not section in the view
-------------------------------------Getter Method
Signature
NonSectionedObjectsReturns: Return type: NXOpen.Drawings.HiddenObjectsBuilderNew in version NX6.0.0.
License requirements: None.
Origin¶
-
DetailViewBuilder.Origin¶ Returns the origin
-------------------------------------Getter Method
Signature
OriginReturns: Return type: NXOpen.Drawings.ViewPlacementBuilderNew in version NX6.0.0.
License requirements: None.
Parent¶
-
DetailViewBuilder.Parent¶ Returns the parent view
-------------------------------------Getter Method
Signature
ParentReturns: Return type: NXOpen.Drawings.ParentViewBuilderNew in version NX6.0.0.
License requirements: None.
Scale¶
-
DetailViewBuilder.Scale¶ Returns the scale
-------------------------------------Getter Method
Signature
ScaleReturns: Return type: NXOpen.Drawings.ViewScaleBuilderNew in version NX6.0.0.
License requirements: None.
SecondaryComponents¶
-
DetailViewBuilder.SecondaryComponents¶ Returns the list of secondary components in the view
-------------------------------------Getter Method
Signature
SecondaryComponentsReturns: Return type: NXOpen.Drawings.DraftingComponentSelectionBuilderNew in version NX11.0.0.
License requirements: None.
Style¶
-
DetailViewBuilder.Style¶ Returns the style
-------------------------------------Getter Method
Signature
StyleReturns: Return type: NXOpen.Drawings.ViewStyleBuilderNew in version NX6.0.0.
License requirements: None.
Type¶
-
DetailViewBuilder.Type¶ Returns or sets the type
-------------------------------------Getter Method
Signature
TypeReturns: Return type: NXOpen.Drawings.DetailViewBuilderTypesNew in version NX6.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TypeParameters: type ( NXOpen.Drawings.DetailViewBuilderTypes) –New in version NX6.0.0.
License requirements: drafting (“DRAFTING”)
Method Detail¶
Validate¶
-
DetailViewBuilder.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.