EditClauseBuilder Class¶
-
class
NXOpen.AME.EditClauseBuilder¶ Bases:
NXOpen.BuilderNaming Rule Builder
To create a new instance of this class, use
NXOpen.AME.AMEManager.CreateEditClauseBuilder()Default values.
Property Value AllAspects 0 AspectOperator Under ClassificationOperator As ClauseOperator And ReuseLibraryOperator OfType New in version NX11.0.0.
Properties¶
| Property | Description |
|---|---|
| AllAspects | Returns or sets the all aspects option status whether ON or OFF |
| AspectOperator | Returns or sets the query operator for Aspect object |
| ClassificationOperator | Returns or sets the query operator for Classification object |
| ClauseOperator | Returns or sets the clause operator of query |
| ReuseLibraryOperator | Returns or sets the query operator for Reuse Library object |
| SelectAspect | Returns the selected aspect |
| SelectClassification | Returns the selected classification |
| SelectFromMemberSelect | Returns the engineering object definition |
| SelectLibraryObject | Returns the engineering object definition or product definition |
| SelectedQuery | Returns or sets the query object |
| SelectedQueryClause | Returns or sets the selected query clause |
| Tag | Returns the Tag for this object. |
| Type | Returns or sets the type of object to be used for edit clause NXOpen.AME.EditClauseBuilder.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. |
| SetProperty | Set the property |
| SetPropertyOperator | Set the property operator |
| SetPropertyValue | Set the property value |
| 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¶
| EditClauseBuilderOperator Enumeration | the query operator |
| EditClauseBuilderQueryClauseOperatorType Enumeration | the clause operator |
| EditClauseBuilderTypes Enumeration | the type of object to be used for edit clause |
Property Detail¶
AllAspects¶
-
EditClauseBuilder.AllAspects¶ Returns or sets the all aspects option status whether ON or OFF
-------------------------------------Getter Method
Signature
AllAspectsReturns: Return type: bool New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
AllAspectsParameters: toggleAllAspects (bool) – New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
AspectOperator¶
-
EditClauseBuilder.AspectOperator¶ Returns or sets the query operator for Aspect object
-------------------------------------Getter Method
Signature
AspectOperatorReturns: Return type: NXOpen.AME.EditClauseBuilderOperatorNew in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
AspectOperatorParameters: aspectOperator ( NXOpen.AME.EditClauseBuilderOperator) –New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
ClassificationOperator¶
-
EditClauseBuilder.ClassificationOperator¶ Returns or sets the query operator for Classification object
-------------------------------------Getter Method
Signature
ClassificationOperatorReturns: Return type: NXOpen.AME.EditClauseBuilderOperatorNew in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
ClassificationOperatorParameters: classificationOperator ( NXOpen.AME.EditClauseBuilderOperator) –New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
ClauseOperator¶
-
EditClauseBuilder.ClauseOperator¶ Returns or sets the clause operator of query
-------------------------------------Getter Method
Signature
ClauseOperatorReturns: Return type: NXOpen.AME.EditClauseBuilderQueryClauseOperatorTypeNew in version NX12.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
ClauseOperatorParameters: clauseOperator ( NXOpen.AME.EditClauseBuilderQueryClauseOperatorType) –New in version NX12.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
ReuseLibraryOperator¶
-
EditClauseBuilder.ReuseLibraryOperator¶ Returns or sets the query operator for Reuse Library object
-------------------------------------Getter Method
Signature
ReuseLibraryOperatorReturns: Return type: NXOpen.AME.EditClauseBuilderOperatorNew in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
ReuseLibraryOperatorParameters: reuseLibraryOperator ( NXOpen.AME.EditClauseBuilderOperator) –New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
SelectAspect¶
-
EditClauseBuilder.SelectAspect¶ Returns the selected aspect
-------------------------------------Getter Method
Signature
SelectAspectReturns: Return type: NXOpen.AME.SelectAMEBaseNodeNew in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
SelectClassification¶
-
EditClauseBuilder.SelectClassification¶ Returns the selected classification
-------------------------------------Getter Method
Signature
SelectClassificationReturns: Return type: NXOpen.AME.SelectClassificationBuilderNew in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
SelectFromMemberSelect¶
-
EditClauseBuilder.SelectFromMemberSelect¶ Returns the engineering object definition
-------------------------------------Getter Method
Signature
SelectFromMemberSelectReturns: Return type: NXOpen.AME.SelectionEngineeringObjectDefinitionBuilderNew in version NX11.0.0.
Deprecated since version NX12.0.0: Use
SelectLibraryObject()instead.License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
SelectLibraryObject¶
-
EditClauseBuilder.SelectLibraryObject¶ Returns the engineering object definition or product definition
-------------------------------------Getter Method
Signature
SelectLibraryObjectReturns: Return type: NXOpen.AME.SelectionBaseDefinitionBuilderNew in version NX12.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
SelectedQuery¶
-
EditClauseBuilder.SelectedQuery¶ Returns or sets the query object
-------------------------------------Getter Method
Signature
SelectedQueryReturns: Return type: NXOpen.AME.AMEQueryNew in version NX12.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
SelectedQueryParameters: selectedQuery ( NXOpen.AME.AMEQuery) –New in version NX12.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
SelectedQueryClause¶
-
EditClauseBuilder.SelectedQueryClause¶ Returns or sets the selected query clause
-------------------------------------Getter Method
Signature
SelectedQueryClauseReturns: Return type: NXOpen.AME.QueryClauseNew in version NX12.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
SelectedQueryClauseParameters: selectedClause ( NXOpen.AME.QueryClause) –New in version NX12.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
Type¶
-
EditClauseBuilder.Type¶ Returns or sets the type of object to be used for edit clause
NXOpen.AME.EditClauseBuilder.Type()-------------------------------------Getter Method
Signature
TypeReturns: Return type: NXOpen.AME.EditClauseBuilderTypesNew in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
-------------------------------------Setter Method
Signature
TypeParameters: type ( NXOpen.AME.EditClauseBuilderTypes) –New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
Method Detail¶
SetProperty¶
-
EditClauseBuilder.SetProperty¶ Set the property
Signature
SetProperty(index, propertyName)Parameters: - index (int) –
- propertyName (str) –
New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
SetPropertyOperator¶
-
EditClauseBuilder.SetPropertyOperator¶ Set the property operator
Signature
SetPropertyOperator(index, propertyOperator)Parameters: - index (int) –
- propertyOperator (str) –
New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
SetPropertyValue¶
-
EditClauseBuilder.SetPropertyValue¶ Set the property value
Signature
SetPropertyValue(index, propertyValue)Parameters: - index (int) –
- propertyValue (str) –
New in version NX11.0.0.
License requirements: ad_automation_design (“FULL AUTOMATION DESIGNER”)
Validate¶
-
EditClauseBuilder.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.