NamingRuleBuilder Class¶
-
class
NXOpen.AME.NamingRuleBuilder¶ Bases:
NXOpen.BuilderNaming Rule Builder
To create a new instance of this class, use
NXOpen.AME.NamingRuleListBuilder.CreateRule()New in version NX11.0.0.
Properties¶
| Property | Description |
|---|---|
| ClassificationItem | Returns the classification item |
| EoName | Returns or sets the engineering object name |
| IndexDigitsInFunction | Returns or sets the index display digits in function aspect |
| IndexDigitsInLocation | Returns or sets the index display digits in location aspect |
| IndexDigitsInProduct | Returns or sets the index display digits in product aspect |
| IndexIncrementInFunction | Returns or sets the index increment in function aspect |
| IndexIncrementInLocation | Returns or sets the index increment in location aspect |
| IndexIncrementInProduct | Returns or sets the index increment in product aspect |
| NameInFunction | Returns or sets the name in function aspect |
| NameInLocation | Returns or sets the name in location aspect |
| NameInProduct | Returns or sets the name in product aspect |
| SelectedClassification | Returns or sets the Classification ID |
| StartIndexInFunction | Returns or sets the start index in function aspect |
| StartIndexInLocation | Returns or sets the start index in location aspect |
| StartIndexInProduct | Returns or sets the start index in product aspect |
| Tag | Returns the Tag for this object. |
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¶
ClassificationItem¶
-
NamingRuleBuilder.ClassificationItem¶ Returns the classification item
-------------------------------------Getter Method
Signature
ClassificationItemReturns: Return type: NXOpen.AME.SelectClassificationBuilderNew in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
EoName¶
-
NamingRuleBuilder.EoName¶ Returns or sets the engineering object name
-------------------------------------Getter Method
Signature
EoNameReturns: Return type: str New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
EoNameParameters: eoName (str) – New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
IndexDigitsInFunction¶
-
NamingRuleBuilder.IndexDigitsInFunction¶ Returns or sets the index display digits in function aspect
-------------------------------------Getter Method
Signature
IndexDigitsInFunctionReturns: Return type: int New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
IndexDigitsInFunctionParameters: indexIncrement (int) – New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
IndexDigitsInLocation¶
-
NamingRuleBuilder.IndexDigitsInLocation¶ Returns or sets the index display digits in location aspect
-------------------------------------Getter Method
Signature
IndexDigitsInLocationReturns: Return type: int New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
IndexDigitsInLocationParameters: indexIncrement (int) – New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
IndexDigitsInProduct¶
-
NamingRuleBuilder.IndexDigitsInProduct¶ Returns or sets the index display digits in product aspect
-------------------------------------Getter Method
Signature
IndexDigitsInProductReturns: Return type: int New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
IndexDigitsInProductParameters: indexIncrement (int) – New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
IndexIncrementInFunction¶
-
NamingRuleBuilder.IndexIncrementInFunction¶ Returns or sets the index increment in function aspect
-------------------------------------Getter Method
Signature
IndexIncrementInFunctionReturns: Return type: int New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
IndexIncrementInFunctionParameters: indexIncrement (int) – New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
IndexIncrementInLocation¶
-
NamingRuleBuilder.IndexIncrementInLocation¶ Returns or sets the index increment in location aspect
-------------------------------------Getter Method
Signature
IndexIncrementInLocationReturns: Return type: int New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
IndexIncrementInLocationParameters: indexIncrement (int) – New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
IndexIncrementInProduct¶
-
NamingRuleBuilder.IndexIncrementInProduct¶ Returns or sets the index increment in product aspect
-------------------------------------Getter Method
Signature
IndexIncrementInProductReturns: Return type: int New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
IndexIncrementInProductParameters: indexIncrement (int) – New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
NameInFunction¶
-
NamingRuleBuilder.NameInFunction¶ Returns or sets the name in function aspect
-------------------------------------Getter Method
Signature
NameInFunctionReturns: Return type: str New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
NameInFunctionParameters: nameInFunction (str) – New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
NameInLocation¶
-
NamingRuleBuilder.NameInLocation¶ Returns or sets the name in location aspect
-------------------------------------Getter Method
Signature
NameInLocationReturns: Return type: str New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
NameInLocationParameters: nameInLocation (str) – New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
NameInProduct¶
-
NamingRuleBuilder.NameInProduct¶ Returns or sets the name in product aspect
-------------------------------------Getter Method
Signature
NameInProductReturns: Return type: str New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
NameInProductParameters: nameInProduct (str) – New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
SelectedClassification¶
-
NamingRuleBuilder.SelectedClassification¶ Returns or sets the Classification ID
-------------------------------------Getter Method
Signature
SelectedClassificationReturns: Return type: str New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
SelectedClassificationParameters: classification (str) – New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
StartIndexInFunction¶
-
NamingRuleBuilder.StartIndexInFunction¶ Returns or sets the start index in function aspect
-------------------------------------Getter Method
Signature
StartIndexInFunctionReturns: Return type: int New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
StartIndexInFunctionParameters: startIndex (int) – New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
StartIndexInLocation¶
-
NamingRuleBuilder.StartIndexInLocation¶ Returns or sets the start index in location aspect
-------------------------------------Getter Method
Signature
StartIndexInLocationReturns: Return type: int New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
StartIndexInLocationParameters: startIndex (int) – New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
StartIndexInProduct¶
-
NamingRuleBuilder.StartIndexInProduct¶ Returns or sets the start index in product aspect
-------------------------------------Getter Method
Signature
StartIndexInProductReturns: Return type: int New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
StartIndexInProductParameters: startIndex (int) – New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
Method Detail¶
Validate¶
-
NamingRuleBuilder.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.