MapleBuilder Class¶
-
class
NXOpen.Features.
MapleBuilder
¶ Bases:
NXOpen.Features.FeatureBuilder
Represents a
NXOpen.Features.Maple
builderTo create a new instance of this class, use
NXOpen.Features.FeatureCollection.CreateMapleBuilder()
Default values.
Property Value AssociativityEnumType None AssociativityToggle 0 SettingsToggle 0 New in version NX7.5.0.
Properties¶
Property | Description |
---|---|
AssociativityEnumType | Returns or sets the associativity enum type |
AssociativityToggle | Returns or sets the associativity toggle |
FileBrowser | Returns or sets the file name returned by the Browser |
Inputs | Returns or sets the number of input expressions |
ParentFeatureInternal | Returns or sets whether or not the latest timestamped parent feature of this feature should be made internal |
PatchSolutionFlag | Returns or sets the patch solution flag |
PatchSurfaceFilename | Returns or sets the patch surface filename |
SettingsToggle | Returns or sets the settings toggle |
SurroundingPatchSurfaceFilename | Returns or sets the surrounding patch surface filename |
Tag | Returns the Tag for this object. |
Methods¶
Method | Description |
---|---|
Commit | Commits any edits that have been applied to the builder. |
CommitFeature | Commits the feature parameters and creates the feature @return |
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. |
GetExpressions | The array of expressions @return array of expressions |
GetFeature | Returns the feature currently being edited by this builder. |
GetMaplenames | The array of maple names @return array of names |
GetObject | Returns the object currently being edited by this builder. |
HideInternalParentFeatureAfterEdit | Re-suppress an internal parent feature (a slave feature) after it has been edited. |
SetExpressions | Set the expressions in the Maple Builder |
SetMaplenames | Set the maple names corresponding to expressions in the Maple Builder |
SetParentFeatureInternal | Set the parent features which would be internal or slaves to the feature being created or commited |
ShowInternalParentFeatureForEdit | Unsuppress an internal parent feature (a slave feature) so it can be edited. |
ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results. |
UnsetParentFeatureInternal | Set the internal parent feature of the feature being edited to external |
Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Enumerations¶
MapleBuilderAssociativityEnum Enumeration | the Associativity |
Property Detail¶
AssociativityEnumType¶
-
MapleBuilder.
AssociativityEnumType
¶ Returns or sets the associativity enum type
-------------------------------------
Getter Method
Signature
AssociativityEnumType()
Returns: Return type: NXOpen.Features.MapleBuilderAssociativityEnum
New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
AssociativityEnumType(associativityEnumType)
Parameters: associativityEnumType ( NXOpen.Features.MapleBuilderAssociativityEnum
) –New in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
AssociativityToggle¶
-
MapleBuilder.
AssociativityToggle
¶ Returns or sets the associativity toggle
-------------------------------------
Getter Method
Signature
AssociativityToggle()
Returns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
AssociativityToggle(associativityToggle)
Parameters: associativityToggle (bool) – New in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
FileBrowser¶
-
MapleBuilder.
FileBrowser
¶ Returns or sets the file name returned by the Browser
-------------------------------------
Getter Method
Signature
FileBrowser()
Returns: Return type: str New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
FileBrowser(filename)
Parameters: filename (str) – New in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
Inputs¶
-
MapleBuilder.
Inputs
¶ Returns or sets the number of input expressions
-------------------------------------
Getter Method
Signature
Inputs()
Returns: Return type: int New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Inputs(numInputExpressions)
Parameters: numInputExpressions (int) – New in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
SettingsToggle¶
-
MapleBuilder.
SettingsToggle
¶ Returns or sets the settings toggle
-------------------------------------
Getter Method
Signature
SettingsToggle()
Returns: Return type: bool New in version NX7.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
SettingsToggle(settingsToggle)
Parameters: settingsToggle (bool) – New in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
Method Detail¶
GetExpressions¶
-
MapleBuilder.
GetExpressions
¶ The array of expressions
Signature
GetExpressions()
Returns: array of expressions Return type: list of NXOpen.Expression
New in version NX7.5.0.
License requirements: None.
GetMaplenames¶
-
MapleBuilder.
GetMaplenames
¶ The array of maple names
Signature
GetMaplenames()
Returns: array of names Return type: list of str New in version NX7.5.0.
License requirements: None.
SetExpressions¶
-
MapleBuilder.
SetExpressions
¶ Set the expressions in the Maple Builder
Signature
SetExpressions(expressions)
Parameters: expressions (list of NXOpen.Expression
) – array of expressionsNew in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
SetMaplenames¶
-
MapleBuilder.
SetMaplenames
¶ Set the maple names corresponding to expressions in the Maple Builder
Signature
SetMaplenames(names)
Parameters: names (list of str) – array of names New in version NX7.5.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
Validate¶
-
MapleBuilder.
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.