NXOpen .NET Reference
12.0.0
|
Provides methods for manipulating the Knowledge Fusion rules in a part. More...
Classes | |
struct | _DebugInstance |
Used to return debug update information for instances. | |
struct | _DebugRule |
Used to return debug update information for rules. | |
struct | _FunctionArgumentsInformation |
Used to return information about the arguments for a function. | |
struct | _FunctionInformation |
Used to return information about a function. | |
struct | _ParameterRule |
Used to specify parameter values for child rule creation or modification. | |
struct | AdoptableTypes |
Used to return adoptable object types. More... | |
struct | DebugInstance |
Used to return debug update information for instances. More... | |
struct | DebugRule |
Used to return debug update information for rules. More... | |
struct | FunctionArgumentsInformation |
Used to return information about the arguments for a function. More... | |
struct | FunctionInformation |
Used to return information about a function. More... | |
struct | ParameterRule |
Used to specify parameter values for child rule creation or modification. More... | |
Public Types | |
enum | RuleType { Boolean, Frame, Integer, List, Name, Number, Point, String, Vector, Instance, Any, HostPointer } |
Indicates the data type of a rule. More... | |
enum | LicenseType { NoLicense, Author, Execute, Pipeline, KfFeature, KfInterop, KfNewGeom, KfChecking } |
Indicates the license type to be used. More... | |
enum | InitializationStatusType { Success, Failure, Unavailable, UnableToObtainLicense, CloseFailure } |
Indicates the status from initializing RuleManager. More... | |
enum | Filter { User, System, Both, UserPlus, UserLoaded, SystemLoaded, BothLoaded, UserPlusLoaded } |
The filter option for asking for classes. More... | |
Public Member Functions | |
unsafe NXOpen.RuleManager.InitializationStatusType | Initialize (NXOpen.RuleManager.LicenseType licenseToTake, out int intentStatus) |
Initialize the RuleManager. More... | |
unsafe void | CreateDynamicRule (string referenceChain, string ruleName, NXOpen.RuleManager.RuleType ruleType, string ruleText) |
Create or modify a dynamic rule. More... | |
unsafe void | CreateDynamicRule (string referenceChain, string ruleName, string behaviors, string ruleUnits, string ruleText, string leadingComment) |
Create or modify a dynamic rule. More... | |
unsafe void | CreateDynamicRule (string referenceChain, string ruleName, string behaviors, string ruleText, string leadingComment) |
Create or modify a dynamic rule. More... | |
unsafe int | DoKfUpdate (NXOpen.Session.UndoMarkId undoMark) |
Performs an KF update. More... | |
unsafe void | DeleteDynamicRule (string referenceChain, string ruleName) |
Delete an existing dynamic rule. More... | |
unsafe void | CreateChildRule (string ruleName, string className, NXOpen.RuleManager.ParameterRule[] parameters) |
Create a child rule and the root for this rule manager's part. More... | |
unsafe void | DeleteChildRule (string ruleName) |
Delete a child rule from this rule manager. More... | |
unsafe void | RemoveRuleOnly (string referenceChain) |
Remove a dynamic child or attribute rule, but leave the geometry. More... | |
unsafe bool | IsUserClass (string className) |
Determine whether a class is a user class. More... | |
unsafe string[] | GetRulesOfClass (string className) |
Get the names of all the rules defined in a class. More... | |
unsafe string[] | GetDynamicRules (string childRuleName) |
Get the names of all dynamic rules defined on a child rule (or Root:). More... | |
unsafe string[] | GetSpecifiedParameters (string referenceChain) |
Get the parameters that have been specified on a dynamic child rule. More... | |
unsafe string | GetParameterFormula (string referenceChain, string parameterName) |
Get the formula for a parameter that has been specified on a dynamic child rule. More... | |
unsafe void | Rename (string referenceChain, string newName) |
Rename a dynamic child or attribute rule. More... | |
unsafe void | Copy (string oldNameChain, string oldLeafName, string newNameChain, string newLeafName) |
Copy a dynamic child or attribute rule. More... | |
unsafe string | GetClass (string referenceChain) |
Get the class of a dynamic rule. More... | |
unsafe string[] | GetClassesOfChildList (string referenceChain) |
Get the classes for the members of a child list rule. More... | |
unsafe string[] | GetDependents (string referenceChain) |
Get the rules that depend on the specified dynamic rule. More... | |
unsafe string[] | GetDependencies (string referenceChain) |
Get the rules that the specified dynamic rule depends on. More... | |
unsafe NXOpen.RuleManager.RuleType | GetRuleType (string className, string ruleName) |
Get the type of a rule within a class. More... | |
unsafe NXOpen.RuleManager.RuleType | GetRuleType (string referenceChain) |
Get the data type of a dynamic rule. More... | |
unsafe NXOpen.RuleManager.RuleType | GetParameterType (string referenceChain) |
Get the type of a parameter in a dynamic child rule. More... | |
unsafe bool | IsChildRule (string className, string ruleName) |
Returns whether a rule in a class is a child rule. More... | |
unsafe bool | IsChildRule (string referenceChain) |
Returns whether a dynamic rule is a child rule. More... | |
unsafe bool | IsChildList (string className, string ruleName) |
Returns whether a rule within a class is a child list rule. More... | |
unsafe bool | IsChildList (string referenceChain) |
Returns whether a dynamic rule is a child list. More... | |
unsafe bool | IsUncached (string className, string ruleName) |
Returns whether a rule within a class is uncached. More... | |
unsafe bool | IsUncached (string referenceChain) |
Returns whether a dynamic rule is uncached. More... | |
unsafe bool | IsHidden (string className, string ruleName) |
Returns whether a rule within a class is hidden. More... | |
unsafe bool | IsHidden (string referenceChain) |
Returns whether a dynamic rule is hidden. More... | |
unsafe bool | IsLocal (string className, string ruleName) |
Returns whether a rule within a class is local to that class. More... | |
unsafe bool | IsParameter (string className, string ruleName) |
Returns whether a rule within a class is a parameter of that class. More... | |
unsafe bool | IsCanonical (string className, string ruleName) |
Returns whether a rule within a class is canonical. More... | |
unsafe bool | IsModifiable (string className, string ruleName) |
Returns whether a rule within a class is modifiable. More... | |
unsafe bool | IsModifiable (string referenceChain) |
Returns whether a dynamic rule is modifiable. More... | |
unsafe bool | IsMethod (string className, string ruleName) |
Returns whether a rule within a class is a method. More... | |
unsafe bool | IsMethod (string referenceChain) |
Returns whether a dynamic rule is a method. More... | |
unsafe bool | IsComputed (string referenceChain) |
Returns whether a dynamic rule's value has been computed yet. More... | |
unsafe void | RebuildTrees () |
Rebuilds the KF Navigator tree and any Part Inspector trees that are being shown. More... | |
unsafe bool | IsRuleInClass (string className, string ruleName) |
Returns whether the rule is defined in the specified class. More... | |
unsafe string | GetDefaultFormula (string className, string ruleName) |
Returns the default formula for a rule within a class . More... | |
unsafe Object | Evaluate (string referenceChain) |
Evaluate a rule and return its value. More... | |
unsafe string | EvaluateAsString (string referenceChain) |
Evaluate a rule and return its value as a string. More... | |
unsafe string | EvaluateAnyAsString (string referenceChain) |
Evaluate a rule and return its value as a string. More... | |
unsafe string | GetNameChain (NXOpen.NXObject ugObject) |
Returns the name chain More... | |
unsafe void | RegenerateAll () |
Regenerate all rules. More... | |
unsafe void | SyntaxCheck (string fileName) |
Run the syntax check on a dfa file. More... | |
unsafe string[] | GetAncestorClasses (string className) |
Get the ancestor classes for a given class. More... | |
unsafe void | Reload (bool refreshUserClassDir) |
Reload all classes and functions. More... | |
unsafe void | ReloadSingleClass (string className) |
Reload a single class. More... | |
unsafe void | ReloadClassesAndFunctions (string[] classes, string[] functions) |
Reload specified classes and functions. More... | |
unsafe string[] | GetRuleTypes () |
Get strings that describe the rule types. More... | |
unsafe string[] | GetClasses (NXOpen.RuleManager.Filter filter) |
Get class names that match the specified filter. More... | |
unsafe string[] | GetFunctions (NXOpen.RuleManager.Filter filter, bool doSort) |
Get functions that match the specified filter. More... | |
unsafe void | RemoveAllRules () |
Remove all rules in the part. More... | |
unsafe string | ReadDfaFile (string fileName) |
Read a dfa file and return its contents as a string. More... | |
unsafe void | WriteDfaFile (string fileName, string fileString, bool replace) |
Write a string out to a dfa file. More... | |
unsafe string | GetClassDfaFile (string className) |
Get the name of the dfa file that contains the specified class. More... | |
unsafe string[] | GetLastError () |
Get messages for the most recent error. More... | |
unsafe string | GetReferenceText (NXOpen.NXObject ugObject) |
Get the text to use when referencing the specified ug object in a rule. More... | |
unsafe string | GetObjectText (NXOpen.NXObject ugObject) |
Get the text to use when referencing the specified ug object in a rule. More... | |
unsafe bool | AdoptObjects (NXOpen.NXObject[] ugObjects) |
Adopt the specified ug objects. More... | |
unsafe NXOpen.RuleManager.AdoptableTypes[] | GetAdoptableTypes () |
The list of object types which can be adopted. More... | |
unsafe string | GetRulesForObjects (NXOpen.NXObject[] ugObjects) |
Adoption text for the specified ug objects. More... | |
unsafe NXOpen.RuleManager.FunctionInformation | GetFunctionInformation (string functionName, string instanceOrClassName, bool isInstance, bool briefOnly) |
Get information about a function. More... | |
unsafe NXOpen.RuleManager.FunctionArgumentsInformation[] | GetFunctionArgumentsInformation (string functionName, string instanceOrClassName, bool isInstance, bool briefOnly) |
Get information about the arguments for a function. More... | |
unsafe string | GetFunctionFile (string functionName) |
Get the file that contains the definitions for a function. More... | |
unsafe bool | IsUserFunction (string functionName) |
Determine whether a function is one defined by the user. More... | |
unsafe bool | IsExpressionRule (string ruleName) |
Determine whether a root level dynamic rule is mapped to an NX expression. More... | |
unsafe string | GetDynamicRuleText (string referenceChain) |
Returns the rule text for a dynamic rule . More... | |
unsafe void | GetDebugInstances (out NXOpen.RuleManager.DebugInstance[] instances, out NXOpen.RuleManager.DebugRule[] rules) |
Get the debug update instances. More... | |
unsafe int | GetErrorStart () |
Get the parse error start location. More... | |
unsafe int | GetErrorEnd () |
Get the parse error end location. More... | |
unsafe NXOpen.NXObject | GetObjectOfInstance (string nameChain) |
Get object of instance More... | |
Properties | |
Tag | Tag [get] |
Returns the tag of this object. More... | |
unsafe bool | CreateMode [get] |
Returns the create mode flag. More... | |
unsafe bool | DebugFlag [get, set] |
Returns or sets the debug update flag. More... | |
Provides methods for manipulating the Knowledge Fusion rules in a part.
To obtain an instance of this class, refer to NXOpen.BasePart
Created in NX3.0.0
The filter option for asking for classes.
unsafe bool NXOpen.RuleManager.AdoptObjects | ( | NXOpen.NXObject[] | ugObjects | ) |
Adopt the specified ug objects.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
ugObjects | objects to adopt |
unsafe void NXOpen.RuleManager.Copy | ( | string | oldNameChain, |
string | oldLeafName, | ||
string | newNameChain, | ||
string | newLeafName | ||
) |
Copy a dynamic child or attribute rule.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
oldNameChain | Name chain for rule to copy |
oldLeafName | Leaf name of rule to copy |
newNameChain | Name chain for copied rule |
newLeafName | Leaf name for copied rule |
unsafe void NXOpen.RuleManager.CreateChildRule | ( | string | ruleName, |
string | className, | ||
NXOpen.RuleManager.ParameterRule[] | parameters | ||
) |
Create a child rule and the root for this rule manager's part.
Created in NX3.0.0
License requirements: gateway ("UG GATEWAY")
ruleName | Name of child rule to create |
className | Class to instantiate as this child |
parameters | Input parameters for this class |
unsafe void NXOpen.RuleManager.CreateDynamicRule | ( | string | referenceChain, |
string | ruleName, | ||
NXOpen.RuleManager.RuleType | ruleType, | ||
string | ruleText | ||
) |
Create or modify a dynamic rule.
Created in NX3.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for instance in which to create the dynamic rule |
ruleName | Name of rule to create |
ruleType | Data type for the new rule |
ruleText | Value for the new rule as a string |
unsafe void NXOpen.RuleManager.CreateDynamicRule | ( | string | referenceChain, |
string | ruleName, | ||
string | behaviors, | ||
string | ruleUnits, | ||
string | ruleText, | ||
string | leadingComment | ||
) |
Create or modify a dynamic rule.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for instance in which to create the dynamic rule |
ruleName | Name of rule to create |
behaviors | Behaviors for the new rule, for example, "Number Modifiable" |
ruleUnits | Unit for the new rule, for example, "mm" |
ruleText | Value for the new rule as a string |
leadingComment | Leading comment of the form "#+ #-" for rule. This can be NULL |
unsafe void NXOpen.RuleManager.CreateDynamicRule | ( | string | referenceChain, |
string | ruleName, | ||
string | behaviors, | ||
string | ruleText, | ||
string | leadingComment | ||
) |
Create or modify a dynamic rule.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for instance in which to create the dynamic rule |
ruleName | Name of rule to create |
behaviors | Behaviors for the new rule, for example, "Number Modifiable" |
ruleText | Value for the new rule as a string |
leadingComment | Leading comment of the form "#+ #-" for rule. This can be NULL |
unsafe void NXOpen.RuleManager.DeleteChildRule | ( | string | ruleName | ) |
Delete a child rule from this rule manager.
Created in NX3.0.0
License requirements: gateway ("UG GATEWAY")
ruleName | Name of child to delete |
unsafe void NXOpen.RuleManager.DeleteDynamicRule | ( | string | referenceChain, |
string | ruleName | ||
) |
Delete an existing dynamic rule.
Created in NX3.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for instance from which to delete the dynamic rule |
ruleName | Name of rule to delete |
unsafe int NXOpen.RuleManager.DoKfUpdate | ( | NXOpen.Session.UndoMarkId | undoMark | ) |
Performs an KF update.
This ensures that all KF objects will be properly updated when created through dynamic rules.
Note: This method does the same thing as, Update.DoUpdate except that it does some addition updating to make sure CAE objects are complete.
Created in NX4.0.0
License requirements: None.
undoMark | If any update error occurs, the system will roll back to this undo mark. |
unsafe Object NXOpen.RuleManager.Evaluate | ( | string | referenceChain | ) |
Evaluate a rule and return its value.
Created in NX3.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for the rule to evaluate |
unsafe string NXOpen.RuleManager.EvaluateAnyAsString | ( | string | referenceChain | ) |
Evaluate a rule and return its value as a string.
Created in NX5.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for the rule to evaluate |
unsafe string NXOpen.RuleManager.EvaluateAsString | ( | string | referenceChain | ) |
Evaluate a rule and return its value as a string.
Created in NX3.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for the rule to evaluate |
unsafe NXOpen.RuleManager.AdoptableTypes [] NXOpen.RuleManager.GetAdoptableTypes | ( | ) |
The list of object types which can be adopted.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
unsafe string [] NXOpen.RuleManager.GetAncestorClasses | ( | string | className | ) |
Get the ancestor classes for a given class.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
className | class name for which to get component classes |
unsafe string NXOpen.RuleManager.GetClass | ( | string | referenceChain | ) |
Get the class of a dynamic rule.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule |
unsafe string NXOpen.RuleManager.GetClassDfaFile | ( | string | className | ) |
Get the name of the dfa file that contains the specified class.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
className | Class name |
unsafe string [] NXOpen.RuleManager.GetClasses | ( | NXOpen.RuleManager.Filter | filter | ) |
Get class names that match the specified filter.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
filter | filter for classes |
unsafe string [] NXOpen.RuleManager.GetClassesOfChildList | ( | string | referenceChain | ) |
Get the classes for the members of a child list rule.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule |
unsafe void NXOpen.RuleManager.GetDebugInstances | ( | out NXOpen.RuleManager.DebugInstance[] | instances, |
out NXOpen.RuleManager.DebugRule[] | rules | ||
) |
Get the debug update instances.
Created in NX5.0.0
License requirements: gateway ("UG GATEWAY")
instances | Array of instances |
rules | Array of rules |
unsafe string NXOpen.RuleManager.GetDefaultFormula | ( | string | className, |
string | ruleName | ||
) |
Returns the default formula for a rule within a class .
Created in NX3.0.0
License requirements: gateway ("UG GATEWAY")
className | Class name |
ruleName | Rule name within the class |
unsafe string [] NXOpen.RuleManager.GetDependencies | ( | string | referenceChain | ) |
Get the rules that the specified dynamic rule depends on.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule |
unsafe string [] NXOpen.RuleManager.GetDependents | ( | string | referenceChain | ) |
Get the rules that depend on the specified dynamic rule.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule |
unsafe string [] NXOpen.RuleManager.GetDynamicRules | ( | string | childRuleName | ) |
Get the names of all dynamic rules defined on a child rule (or Root:).
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
childRuleName | reference chain of child rule |
unsafe string NXOpen.RuleManager.GetDynamicRuleText | ( | string | referenceChain | ) |
Returns the rule text for a dynamic rule .
Created in NX5.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | name chain for a dynamic rule |
unsafe int NXOpen.RuleManager.GetErrorEnd | ( | ) |
Get the parse error end location.
Created in NX5.0.0
License requirements: gateway ("UG GATEWAY")
unsafe int NXOpen.RuleManager.GetErrorStart | ( | ) |
Get the parse error start location.
Created in NX5.0.0
License requirements: gateway ("UG GATEWAY")
unsafe NXOpen.RuleManager.FunctionArgumentsInformation [] NXOpen.RuleManager.GetFunctionArgumentsInformation | ( | string | functionName, |
string | instanceOrClassName, | ||
bool | isInstance, | ||
bool | briefOnly | ||
) |
Get information about the arguments for a function.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
functionName | Function name |
instanceOrClassName | Instance or class name (used only for a method) |
isInstance | TRUE if instance name passed, FALSE otherwise |
briefOnly | TRUE if returning brief information only |
unsafe string NXOpen.RuleManager.GetFunctionFile | ( | string | functionName | ) |
Get the file that contains the definitions for a function.
Created in NX5.0.0
License requirements: gateway ("UG GATEWAY")
functionName | Function name |
unsafe NXOpen.RuleManager.FunctionInformation NXOpen.RuleManager.GetFunctionInformation | ( | string | functionName, |
string | instanceOrClassName, | ||
bool | isInstance, | ||
bool | briefOnly | ||
) |
Get information about a function.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
functionName | Function name |
instanceOrClassName | Instance or class name (used only for a method otherwise null or Nothing |
isInstance | TRUE if instance name passed, FALSE otherwise |
briefOnly | TRUE if returning brief information only |
unsafe string [] NXOpen.RuleManager.GetFunctions | ( | NXOpen.RuleManager.Filter | filter, |
bool | doSort | ||
) |
Get functions that match the specified filter.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
filter | filter for functions |
doSort | TRUE to get the functions sorted alphabetically |
unsafe string [] NXOpen.RuleManager.GetLastError | ( | ) |
Get messages for the most recent error.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
unsafe string NXOpen.RuleManager.GetNameChain | ( | NXOpen.NXObject | ugObject | ) |
Returns the name chain
Created in NX5.0.0
License requirements: gateway ("UG GATEWAY")
ugObject | object to find name chain |
unsafe NXOpen.NXObject NXOpen.RuleManager.GetObjectOfInstance | ( | string | nameChain | ) |
Get object of instance
Created in NX9.0.0
License requirements: gateway ("UG GATEWAY")
nameChain | Name chain of instance |
unsafe string NXOpen.RuleManager.GetObjectText | ( | NXOpen.NXObject | ugObject | ) |
Get the text to use when referencing the specified ug object in a rule.
Created in NX8.5.0
License requirements: gateway ("UG GATEWAY")
ugObject | object to find object text for |
unsafe string NXOpen.RuleManager.GetParameterFormula | ( | string | referenceChain, |
string | parameterName | ||
) |
Get the formula for a parameter that has been specified on a dynamic child rule.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule |
parameterName | Parameter name |
unsafe NXOpen.RuleManager.RuleType NXOpen.RuleManager.GetParameterType | ( | string | referenceChain | ) |
Get the type of a parameter in a dynamic child rule.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule |
unsafe string NXOpen.RuleManager.GetReferenceText | ( | NXOpen.NXObject | ugObject | ) |
Get the text to use when referencing the specified ug object in a rule.
Note that the rule text may reference the container object rather than the given object. For example, the rule text may reference the owning CSYS feature rather than the given datum plane or datum axis. If the rule text of the given object is desired then call RuleManager.GetObjectText .
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
ugObject | object to find reference text for |
unsafe string NXOpen.RuleManager.GetRulesForObjects | ( | NXOpen.NXObject[] | ugObjects | ) |
Adoption text for the specified ug objects.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
ugObjects | objects to adopt |
unsafe string [] NXOpen.RuleManager.GetRulesOfClass | ( | string | className | ) |
Get the names of all the rules defined in a class.
Created in NX3.0.0
License requirements: gateway ("UG GATEWAY")
className | Class name |
unsafe NXOpen.RuleManager.RuleType NXOpen.RuleManager.GetRuleType | ( | string | className, |
string | ruleName | ||
) |
Get the type of a rule within a class.
Created in NX3.0.0
License requirements: gateway ("UG GATEWAY")
className | Class name |
ruleName | Rule name within the class |
unsafe NXOpen.RuleManager.RuleType NXOpen.RuleManager.GetRuleType | ( | string | referenceChain | ) |
Get the data type of a dynamic rule.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule |
unsafe string [] NXOpen.RuleManager.GetRuleTypes | ( | ) |
Get strings that describe the rule types.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
unsafe string [] NXOpen.RuleManager.GetSpecifiedParameters | ( | string | referenceChain | ) |
Get the parameters that have been specified on a dynamic child rule.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule |
unsafe NXOpen.RuleManager.InitializationStatusType NXOpen.RuleManager.Initialize | ( | NXOpen.RuleManager.LicenseType | licenseToTake, |
out int | intentStatus | ||
) |
Initialize the RuleManager.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
licenseToTake | Which license to take |
intentStatus | Status from initializing subsystem |
unsafe bool NXOpen.RuleManager.IsCanonical | ( | string | className, |
string | ruleName | ||
) |
Returns whether a rule within a class is canonical.
Created in NX3.0.0
License requirements: gateway ("UG GATEWAY")
className | Class name |
ruleName | Rule name within the class |
unsafe bool NXOpen.RuleManager.IsChildList | ( | string | className, |
string | ruleName | ||
) |
Returns whether a rule within a class is a child list rule.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
className | Class name |
ruleName | Rule name within the class |
unsafe bool NXOpen.RuleManager.IsChildList | ( | string | referenceChain | ) |
Returns whether a dynamic rule is a child list.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule |
unsafe bool NXOpen.RuleManager.IsChildRule | ( | string | className, |
string | ruleName | ||
) |
Returns whether a rule in a class is a child rule.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
className | Class name |
ruleName | Rule name within the class |
unsafe bool NXOpen.RuleManager.IsChildRule | ( | string | referenceChain | ) |
Returns whether a dynamic rule is a child rule.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule |
unsafe bool NXOpen.RuleManager.IsComputed | ( | string | referenceChain | ) |
Returns whether a dynamic rule's value has been computed yet.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule |
unsafe bool NXOpen.RuleManager.IsExpressionRule | ( | string | ruleName | ) |
Determine whether a root level dynamic rule is mapped to an NX expression.
Created in NX5.0.0
License requirements: gateway ("UG GATEWAY")
ruleName | Dynamic rule name |
unsafe bool NXOpen.RuleManager.IsHidden | ( | string | className, |
string | ruleName | ||
) |
Returns whether a rule within a class is hidden.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
className | Class name |
ruleName | Rule name within the class |
unsafe bool NXOpen.RuleManager.IsHidden | ( | string | referenceChain | ) |
Returns whether a dynamic rule is hidden.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule |
unsafe bool NXOpen.RuleManager.IsLocal | ( | string | className, |
string | ruleName | ||
) |
Returns whether a rule within a class is local to that class.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
className | Class name |
ruleName | Rule name within the class |
unsafe bool NXOpen.RuleManager.IsMethod | ( | string | className, |
string | ruleName | ||
) |
Returns whether a rule within a class is a method.
Created in NX3.0.0
License requirements: gateway ("UG GATEWAY")
className | Class name |
ruleName | Rule name within the class |
unsafe bool NXOpen.RuleManager.IsMethod | ( | string | referenceChain | ) |
Returns whether a dynamic rule is a method.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule |
unsafe bool NXOpen.RuleManager.IsModifiable | ( | string | className, |
string | ruleName | ||
) |
Returns whether a rule within a class is modifiable.
Created in NX3.0.0
License requirements: gateway ("UG GATEWAY")
className | Class name |
ruleName | Rule name within the class |
unsafe bool NXOpen.RuleManager.IsModifiable | ( | string | referenceChain | ) |
Returns whether a dynamic rule is modifiable.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule |
unsafe bool NXOpen.RuleManager.IsParameter | ( | string | className, |
string | ruleName | ||
) |
Returns whether a rule within a class is a parameter of that class.
Created in NX3.0.0
License requirements: gateway ("UG GATEWAY")
className | Class name |
ruleName | Rule name within the class |
unsafe bool NXOpen.RuleManager.IsRuleInClass | ( | string | className, |
string | ruleName | ||
) |
Returns whether the rule is defined in the specified class.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
className | Class name |
ruleName | Rule name within the class |
unsafe bool NXOpen.RuleManager.IsUncached | ( | string | className, |
string | ruleName | ||
) |
Returns whether a rule within a class is uncached.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
className | Class name |
ruleName | Rule name within the class |
unsafe bool NXOpen.RuleManager.IsUncached | ( | string | referenceChain | ) |
Returns whether a dynamic rule is uncached.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule |
unsafe bool NXOpen.RuleManager.IsUserClass | ( | string | className | ) |
Determine whether a class is a user class.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
className | Class name |
unsafe bool NXOpen.RuleManager.IsUserFunction | ( | string | functionName | ) |
Determine whether a function is one defined by the user.
Created in NX5.0.0
License requirements: gateway ("UG GATEWAY")
functionName | Function name |
unsafe string NXOpen.RuleManager.ReadDfaFile | ( | string | fileName | ) |
Read a dfa file and return its contents as a string.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
fileName | File name to read |
unsafe void NXOpen.RuleManager.RebuildTrees | ( | ) |
Rebuilds the KF Navigator tree and any Part Inspector trees that are being shown.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
unsafe void NXOpen.RuleManager.RegenerateAll | ( | ) |
Regenerate all rules.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
unsafe void NXOpen.RuleManager.Reload | ( | bool | refreshUserClassDir | ) |
Reload all classes and functions.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
refreshUserClassDir | flag for whether to refresh search dirs after load |
unsafe void NXOpen.RuleManager.ReloadClassesAndFunctions | ( | string[] | classes, |
string[] | functions | ||
) |
Reload specified classes and functions.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
classes | names of classes to reload |
functions | names of functions to reload |
unsafe void NXOpen.RuleManager.ReloadSingleClass | ( | string | className | ) |
Reload a single class.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
className | class name to reload |
unsafe void NXOpen.RuleManager.RemoveAllRules | ( | ) |
Remove all rules in the part.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
unsafe void NXOpen.RuleManager.RemoveRuleOnly | ( | string | referenceChain | ) |
Remove a dynamic child or attribute rule, but leave the geometry.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule to remove |
unsafe void NXOpen.RuleManager.Rename | ( | string | referenceChain, |
string | newName | ||
) |
Rename a dynamic child or attribute rule.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
referenceChain | Reference chain for rule to rename |
newName | New leaf name |
unsafe void NXOpen.RuleManager.SyntaxCheck | ( | string | fileName | ) |
Run the syntax check on a dfa file.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
fileName | dfa file to check |
unsafe void NXOpen.RuleManager.WriteDfaFile | ( | string | fileName, |
string | fileString, | ||
bool | replace | ||
) |
Write a string out to a dfa file.
Created in NX4.0.0
License requirements: gateway ("UG GATEWAY")
fileName | File name to write |
fileString | String to write to file |
replace | if TRUE, replace the file if it exists |
|
get |
Returns the create mode flag.
Created in NX5.0.0
License requirements: None.
|
getset |
Returns or sets the debug update flag.
Created in NX5.0.0
License requirements to get this property: None.
License requirements to set this property: gateway ("UG GATEWAY")
|
get |
Returns the tag of this object.