WeldLabelBuilder Class¶
-
class
NXOpen.Weld.WeldLabelBuilder¶ Bases:
NXOpen.BuilderCreate weld labels for multiple welds and BIW locators, this builder’s Commit can produce more than one object, the GetCommittedObjects can be used to get the objects and the order of GetCommittedObject’s output array is stable.
To create a new instance of this class, use
NXOpen.Weld.WeldManager.CreateWeldLabelBuilder()Default values.
Property Value IncludeLeader 1 Text.TextBlock.CustomSymbolScale 1.0 Text.TextBlock.SymbolAspectRatio 1.0 Text.TextBlock.SymbolHeight 25.4 (millimeters part), 1.0 (inches part) Text.TextBlock.SymbolLength 25.4 (millimeters part), 1.0 (inches part) Text.TextBlock.SymbolPreferences UseCurrent Text.TextBlock.SymbolScale 1.0 Text.TextBlock.SymbolSizeMethod ScaleAndAspectRatio New in version NX8.5.0.
Properties¶
| Property | Description |
|---|---|
| IncludeLeader | Returns or sets the leader option, indicates whether to create a leader |
| Leader | Returns the NXOpen.Annotations.LeaderBuilder for the annotation |
| Objects | Returns the objects that are used to create labels. |
| Origin | Returns the NXOpen.Annotations.OriginBuilder for the annotation |
| PlaneType | Returns or sets the plane type. |
| Style | Returns the NXOpen.Annotations.StyleBuilder for the annotation |
| Tag | Returns the Tag for this object. |
| Text | Returns the NXOpen.Annotations.TextWithEditControlsBuilder for the annotation |
| UserCsys | Returns or sets the user specified coordinate system. |
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¶
| WeldLabelBuilderOrientationPlaneType Enumeration | This represents the Orientation Plane Type. |
Property Detail¶
IncludeLeader¶
-
WeldLabelBuilder.IncludeLeader¶ Returns or sets the leader option, indicates whether to create a leader
-------------------------------------Getter Method
Signature
IncludeLeaderReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
IncludeLeaderParameters: leader (bool) – New in version NX8.5.0.
License requirements: ugweld (“UG WELD”) OR structure_weld (“STRUCTURE WELD”)
Leader¶
-
WeldLabelBuilder.Leader¶ Returns the
NXOpen.Annotations.LeaderBuilderfor the annotation-------------------------------------Getter Method
Signature
LeaderReturns: Return type: NXOpen.Annotations.LeaderBuilderNew in version NX8.5.0.
License requirements: None.
Objects¶
-
WeldLabelBuilder.Objects¶ Returns the objects that are used to create labels.
-------------------------------------Getter Method
Signature
ObjectsReturns: Return type: NXOpen.SelectNXObjectListNew in version NX8.5.0.
License requirements: None.
Origin¶
-
WeldLabelBuilder.Origin¶ Returns the
NXOpen.Annotations.OriginBuilderfor the annotation-------------------------------------Getter Method
Signature
OriginReturns: Return type: NXOpen.Annotations.OriginBuilderNew in version NX8.5.0.
License requirements: None.
PlaneType¶
-
WeldLabelBuilder.PlaneType¶ Returns or sets the plane type.
-------------------------------------Getter Method
Signature
PlaneTypeReturns: Return type: NXOpen.Weld.WeldLabelBuilderOrientationPlaneTypeNew in version NX8.5.2.
License requirements: None.
-------------------------------------Setter Method
Signature
PlaneTypeParameters: planeType ( NXOpen.Weld.WeldLabelBuilderOrientationPlaneType) –New in version NX8.5.2.
License requirements: ugweld (“UG WELD”) OR structure_weld (“STRUCTURE WELD”)
Style¶
-
WeldLabelBuilder.Style¶ Returns the
NXOpen.Annotations.StyleBuilderfor the annotation-------------------------------------Getter Method
Signature
StyleReturns: Return type: NXOpen.Annotations.StyleBuilderNew in version NX8.5.0.
License requirements: None.
Text¶
-
WeldLabelBuilder.Text¶ Returns the
NXOpen.Annotations.TextWithEditControlsBuilderfor the annotation-------------------------------------Getter Method
Signature
TextReturns: Return type: NXOpen.Annotations.TextWithEditControlsBuilderNew in version NX8.5.0.
License requirements: None.
UserCsys¶
-
WeldLabelBuilder.UserCsys¶ Returns or sets the user specified coordinate system.
-------------------------------------Getter Method
Signature
UserCsysReturns: Return type: NXOpen.CoordinateSystemNew in version NX8.5.2.
License requirements: None.
-------------------------------------Setter Method
Signature
UserCsysParameters: userCsys ( NXOpen.CoordinateSystem) –New in version NX8.5.2.
License requirements: ugweld (“UG WELD”) OR structure_weld (“STRUCTURE WELD”)
Method Detail¶
Validate¶
-
WeldLabelBuilder.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.