NX Open C++ Reference Guide
Classes | Public Types | Public Member Functions | List of all members
NXOpen::RuleManager Class Reference

Provides methods for manipulating the Knowledge Fusion rules in a part. More...

Classes

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  Filter {
  FilterUser, FilterSystem, FilterBoth, FilterUserPlus,
  FilterUserLoaded, FilterSystemLoaded, FilterBothLoaded, FilterUserPlusLoaded
}
 The filter option for asking for classes. More...
 
enum  InitializationStatusType {
  InitializationStatusTypeSuccess, InitializationStatusTypeFailure, InitializationStatusTypeUnavailable, InitializationStatusTypeUnableToObtainLicense,
  InitializationStatusTypeCloseFailure
}
 Indicates the status from initializing RuleManager. More...
 
enum  LicenseType {
  LicenseTypeNoLicense, LicenseTypeAuthor, LicenseTypeExecute, LicenseTypePipeline,
  LicenseTypeKfFeature, LicenseTypeKfInterop, LicenseTypeKfNewGeom, LicenseTypeKfChecking
}
 Indicates the license type to be used. More...
 
enum  RuleType {
  RuleTypeBoolean, RuleTypeFrame, RuleTypeInteger, RuleTypeList,
  RuleTypeName, RuleTypeNumber, RuleTypePoint, RuleTypeString,
  RuleTypeVector, RuleTypeInstance, RuleTypeAny, RuleTypeHostPointer
}
 Indicates the data type of a rule. More...
 

Public Member Functions

bool AdoptObjects (const std::vector< NXOpen::NXObject * > &ugObjects)
 Adopt the specified ug objects. More...
 
void Copy (const NXString &oldNameChain, const NXString &oldLeafName, const NXString &newNameChain, const NXString &newLeafName)
 Copy a dynamic child or attribute rule. More...
 
void Copy (const char *oldNameChain, const char *oldLeafName, const char *newNameChain, const char *newLeafName)
 Copy a dynamic child or attribute rule. More...
 
void CreateChildRule (const NXString &ruleName, const NXString &className, const std::vector< NXOpen::RuleManager::ParameterRule > &parameters)
 Create a child rule and the root for this rule manager's part. More...
 
void CreateChildRule (const char *ruleName, const char *className, const std::vector< NXOpen::RuleManager::ParameterRule > &parameters)
 Create a child rule and the root for this rule manager's part. More...
 
void CreateDynamicRule (const NXString &referenceChain, const NXString &ruleName, NXOpen::RuleManager::RuleType ruleType, const NXString &ruleText)
 Create or modify a dynamic rule. More...
 
void CreateDynamicRule (const char *referenceChain, const char *ruleName, NXOpen::RuleManager::RuleType ruleType, const char *ruleText)
 Create or modify a dynamic rule. More...
 
void CreateDynamicRule (const NXString &referenceChain, const NXString &ruleName, const NXString &behaviors, const NXString &ruleUnits, const NXString &ruleText, const NXString &leadingComment)
 Create or modify a dynamic rule. More...
 
void CreateDynamicRule (const char *referenceChain, const char *ruleName, const char *behaviors, const char *ruleUnits, const char *ruleText, const char *leadingComment)
 Create or modify a dynamic rule. More...
 
void CreateDynamicRule (const NXString &referenceChain, const NXString &ruleName, const NXString &behaviors, const NXString &ruleText, const NXString &leadingComment)
 Create or modify a dynamic rule. More...
 
void CreateDynamicRule (const char *referenceChain, const char *ruleName, const char *behaviors, const char *ruleText, const char *leadingComment)
 Create or modify a dynamic rule. More...
 
bool CreateMode ()
 Returns the create mode flag. More...
 
bool DebugFlag ()
 Returns the debug update flag. More...
 
void DeleteChildRule (const NXString &ruleName)
 Delete a child rule from this rule manager. More...
 
void DeleteChildRule (const char *ruleName)
 Delete a child rule from this rule manager. More...
 
void DeleteDynamicRule (const NXString &referenceChain, const NXString &ruleName)
 Delete an existing dynamic rule. More...
 
void DeleteDynamicRule (const char *referenceChain, const char *ruleName)
 Delete an existing dynamic rule. More...
 
int DoKfUpdate (NXOpen::Session::UndoMarkId undoMark)
 Performs an KF update. More...
 
NXString EvaluateAnyAsString (const NXString &referenceChain)
 Evaluate a rule and return its value as a string. More...
 
NXString EvaluateAnyAsString (const char *referenceChain)
 Evaluate a rule and return its value as a string. More...
 
NXString EvaluateAsString (const NXString &referenceChain)
 Evaluate a rule and return its value as a string. More...
 
NXString EvaluateAsString (const char *referenceChain)
 Evaluate a rule and return its value as a string. More...
 
std::vector
< NXOpen::RuleManager::AdoptableTypes
GetAdoptableTypes ()
 The list of object types which can be adopted. More...
 
std::vector< NXStringGetAncestorClasses (const NXString &className)
 Get the ancestor classes for a given class. More...
 
std::vector< NXStringGetAncestorClasses (const char *className)
 Get the ancestor classes for a given class. More...
 
NXString GetClass (const NXString &referenceChain)
 Get the class of a dynamic rule. More...
 
NXString GetClass (const char *referenceChain)
 Get the class of a dynamic rule. More...
 
NXString GetClassDfaFile (const NXString &className)
 Get the name of the dfa file that contains the specified class. More...
 
NXString GetClassDfaFile (const char *className)
 Get the name of the dfa file that contains the specified class. More...
 
std::vector< NXStringGetClasses (NXOpen::RuleManager::Filter filter)
 Get class names that match the specified filter. More...
 
std::vector< NXStringGetClassesOfChildList (const NXString &referenceChain)
 Get the classes for the members of a child list rule. More...
 
std::vector< NXStringGetClassesOfChildList (const char *referenceChain)
 Get the classes for the members of a child list rule. More...
 
void GetDebugInstances (std::vector< NXOpen::RuleManager::DebugInstance > &instances, std::vector< NXOpen::RuleManager::DebugRule > &rules)
 Get the debug update instances. More...
 
NXString GetDefaultFormula (const NXString &className, const NXString &ruleName)
 Returns the default formula for a rule within a class . More...
 
NXString GetDefaultFormula (const char *className, const char *ruleName)
 Returns the default formula for a rule within a class . More...
 
std::vector< NXStringGetDependencies (const NXString &referenceChain)
 Get the rules that the specified dynamic rule depends on. More...
 
std::vector< NXStringGetDependencies (const char *referenceChain)
 Get the rules that the specified dynamic rule depends on. More...
 
std::vector< NXStringGetDependents (const NXString &referenceChain)
 Get the rules that depend on the specified dynamic rule. More...
 
std::vector< NXStringGetDependents (const char *referenceChain)
 Get the rules that depend on the specified dynamic rule. More...
 
std::vector< NXStringGetDynamicRules (const NXString &childRuleName)
 Get the names of all dynamic rules defined on a child rule (or Root:). More...
 
std::vector< NXStringGetDynamicRules (const char *childRuleName)
 Get the names of all dynamic rules defined on a child rule (or Root:). More...
 
NXString GetDynamicRuleText (const NXString &referenceChain)
 Returns the rule text for a dynamic rule . More...
 
NXString GetDynamicRuleText (const char *referenceChain)
 Returns the rule text for a dynamic rule . More...
 
int GetErrorEnd ()
 Get the parse error end location. More...
 
int GetErrorStart ()
 Get the parse error start location. More...
 
std::vector
< NXOpen::RuleManager::FunctionArgumentsInformation
GetFunctionArgumentsInformation (const NXString &functionName, const NXString &instanceOrClassName, bool isInstance, bool briefOnly)
 Get information about the arguments for a function. More...
 
std::vector
< NXOpen::RuleManager::FunctionArgumentsInformation
GetFunctionArgumentsInformation (const char *functionName, const char *instanceOrClassName, bool isInstance, bool briefOnly)
 Get information about the arguments for a function. More...
 
NXString GetFunctionFile (const NXString &functionName)
 Get the file that contains the definitions for a function. More...
 
NXString GetFunctionFile (const char *functionName)
 Get the file that contains the definitions for a function. More...
 
NXOpen::RuleManager::FunctionInformation GetFunctionInformation (const NXString &functionName, const NXString &instanceOrClassName, bool isInstance, bool briefOnly)
 Get information about a function. More...
 
NXOpen::RuleManager::FunctionInformation GetFunctionInformation (const char *functionName, const char *instanceOrClassName, bool isInstance, bool briefOnly)
 Get information about a function. More...
 
std::vector< NXStringGetFunctions (NXOpen::RuleManager::Filter filter, bool doSort)
 Get functions that match the specified filter. More...
 
std::vector< NXStringGetLastError ()
 Get messages for the most recent error. More...
 
NXString GetNameChain (NXOpen::NXObject *ugObject)
 Returns the name chain. More...
 
NXOpen::NXObjectGetObjectOfInstance (const NXString &nameChain)
 Get object of instance. More...
 
NXOpen::NXObjectGetObjectOfInstance (const char *nameChain)
 Get object of instance. More...
 
NXString GetObjectText (NXOpen::NXObject *ugObject)
 Get the text to use when referencing the specified ug object in a rule. More...
 
NXString GetParameterFormula (const NXString &referenceChain, const NXString &parameterName)
 Get the formula for a parameter that has been specified on a dynamic child rule. More...
 
NXString GetParameterFormula (const char *referenceChain, const char *parameterName)
 Get the formula for a parameter that has been specified on a dynamic child rule. More...
 
NXOpen::RuleManager::RuleType GetParameterType (const NXString &referenceChain)
 Get the type of a parameter in a dynamic child rule. More...
 
NXOpen::RuleManager::RuleType GetParameterType (const char *referenceChain)
 Get the type of a parameter in a dynamic child rule. More...
 
NXString GetReferenceText (NXOpen::NXObject *ugObject)
 Get the text to use when referencing the specified ug object in a rule. More...
 
NXString GetRulesForObjects (const std::vector< NXOpen::NXObject * > &ugObjects)
 Adoption text for the specified ug objects. More...
 
std::vector< NXStringGetRulesOfClass (const NXString &className)
 Get the names of all the rules defined in a class. More...
 
std::vector< NXStringGetRulesOfClass (const char *className)
 Get the names of all the rules defined in a class. More...
 
NXOpen::RuleManager::RuleType GetRuleType (const NXString &className, const NXString &ruleName)
 Get the type of a rule within a class. More...
 
NXOpen::RuleManager::RuleType GetRuleType (const char *className, const char *ruleName)
 Get the type of a rule within a class. More...
 
NXOpen::RuleManager::RuleType GetRuleType (const NXString &referenceChain)
 Get the data type of a dynamic rule. More...
 
NXOpen::RuleManager::RuleType GetRuleType (const char *referenceChain)
 Get the data type of a dynamic rule. More...
 
std::vector< NXStringGetRuleTypes ()
 Get strings that describe the rule types. More...
 
std::vector< NXStringGetSpecifiedParameters (const NXString &referenceChain)
 Get the parameters that have been specified on a dynamic child rule. More...
 
std::vector< NXStringGetSpecifiedParameters (const char *referenceChain)
 Get the parameters that have been specified on a dynamic child rule. More...
 
NXOpen::RuleManager::InitializationStatusType Initialize (NXOpen::RuleManager::LicenseType licenseToTake, int *intentStatus)
 Initialize the RuleManager. More...
 
bool IsCanonical (const NXString &className, const NXString &ruleName)
 Returns whether a rule within a class is canonical. More...
 
bool IsCanonical (const char *className, const char *ruleName)
 Returns whether a rule within a class is canonical. More...
 
bool IsChildList (const NXString &className, const NXString &ruleName)
 Returns whether a rule within a class is a child list rule. More...
 
bool IsChildList (const char *className, const char *ruleName)
 Returns whether a rule within a class is a child list rule. More...
 
bool IsChildList (const NXString &referenceChain)
 Returns whether a dynamic rule is a child list. More...
 
bool IsChildList (const char *referenceChain)
 Returns whether a dynamic rule is a child list. More...
 
bool IsChildRule (const NXString &className, const NXString &ruleName)
 Returns whether a rule in a class is a child rule. More...
 
bool IsChildRule (const char *className, const char *ruleName)
 Returns whether a rule in a class is a child rule. More...
 
bool IsChildRule (const NXString &referenceChain)
 Returns whether a dynamic rule is a child rule. More...
 
bool IsChildRule (const char *referenceChain)
 Returns whether a dynamic rule is a child rule. More...
 
bool IsComputed (const NXString &referenceChain)
 Returns whether a dynamic rule's value has been computed yet. More...
 
bool IsComputed (const char *referenceChain)
 Returns whether a dynamic rule's value has been computed yet. More...
 
bool IsExpressionRule (const NXString &ruleName)
 Determine whether a root level dynamic rule is mapped to an NX expression. More...
 
bool IsExpressionRule (const char *ruleName)
 Determine whether a root level dynamic rule is mapped to an NX expression. More...
 
bool IsHidden (const NXString &className, const NXString &ruleName)
 Returns whether a rule within a class is hidden. More...
 
bool IsHidden (const char *className, const char *ruleName)
 Returns whether a rule within a class is hidden. More...
 
bool IsHidden (const NXString &referenceChain)
 Returns whether a dynamic rule is hidden. More...
 
bool IsHidden (const char *referenceChain)
 Returns whether a dynamic rule is hidden. More...
 
bool IsLocal (const NXString &className, const NXString &ruleName)
 Returns whether a rule within a class is local to that class. More...
 
bool IsLocal (const char *className, const char *ruleName)
 Returns whether a rule within a class is local to that class. More...
 
bool IsMethod (const NXString &className, const NXString &ruleName)
 Returns whether a rule within a class is a method. More...
 
bool IsMethod (const char *className, const char *ruleName)
 Returns whether a rule within a class is a method. More...
 
bool IsMethod (const NXString &referenceChain)
 Returns whether a dynamic rule is a method. More...
 
bool IsMethod (const char *referenceChain)
 Returns whether a dynamic rule is a method. More...
 
bool IsModifiable (const NXString &className, const NXString &ruleName)
 Returns whether a rule within a class is modifiable. More...
 
bool IsModifiable (const char *className, const char *ruleName)
 Returns whether a rule within a class is modifiable. More...
 
bool IsModifiable (const NXString &referenceChain)
 Returns whether a dynamic rule is modifiable. More...
 
bool IsModifiable (const char *referenceChain)
 Returns whether a dynamic rule is modifiable. More...
 
bool IsParameter (const NXString &className, const NXString &ruleName)
 Returns whether a rule within a class is a parameter of that class. More...
 
bool IsParameter (const char *className, const char *ruleName)
 Returns whether a rule within a class is a parameter of that class. More...
 
bool IsRuleInClass (const NXString &className, const NXString &ruleName)
 Returns whether the rule is defined in the specified class. More...
 
bool IsRuleInClass (const char *className, const char *ruleName)
 Returns whether the rule is defined in the specified class. More...
 
bool IsUncached (const NXString &className, const NXString &ruleName)
 Returns whether a rule within a class is uncached. More...
 
bool IsUncached (const char *className, const char *ruleName)
 Returns whether a rule within a class is uncached. More...
 
bool IsUncached (const NXString &referenceChain)
 Returns whether a dynamic rule is uncached. More...
 
bool IsUncached (const char *referenceChain)
 Returns whether a dynamic rule is uncached. More...
 
bool IsUserClass (const NXString &className)
 Determine whether a class is a user class. More...
 
bool IsUserClass (const char *className)
 Determine whether a class is a user class. More...
 
bool IsUserFunction (const NXString &functionName)
 Determine whether a function is one defined by the user. More...
 
bool IsUserFunction (const char *functionName)
 Determine whether a function is one defined by the user. More...
 
NXString ReadDfaFile (const NXString &fileName)
 Read a dfa file and return its contents as a string. More...
 
NXString ReadDfaFile (const char *fileName)
 Read a dfa file and return its contents as a string. More...
 
void RebuildTrees ()
 Rebuilds the KF Navigator tree and any Part Inspector trees that are being shown. More...
 
void RegenerateAll ()
 Regenerate all rules. More...
 
void Reload (bool refreshUserClassDir)
 Reload all classes and functions. More...
 
void ReloadClassesAndFunctions (std::vector< NXString > &classes, std::vector< NXString > &functions)
 Reload specified classes and functions. More...
 
void ReloadSingleClass (const NXString &className)
 Reload a single class. More...
 
void ReloadSingleClass (const char *className)
 Reload a single class. More...
 
void RemoveAllRules ()
 Remove all rules in the part. More...
 
void RemoveRuleOnly (const NXString &referenceChain)
 Remove a dynamic child or attribute rule, but leave the geometry. More...
 
void RemoveRuleOnly (const char *referenceChain)
 Remove a dynamic child or attribute rule, but leave the geometry. More...
 
void Rename (const NXString &referenceChain, const NXString &newName)
 Rename a dynamic child or attribute rule. More...
 
void Rename (const char *referenceChain, const char *newName)
 Rename a dynamic child or attribute rule. More...
 
void SetDebugFlag (bool debugFlag)
 Sets the debug update flag. More...
 
void SyntaxCheck (const NXString &fileName)
 Run the syntax check on a dfa file. More...
 
void SyntaxCheck (const char *fileName)
 Run the syntax check on a dfa file. More...
 
tag_t Tag () const
 Returns the tag of this object. More...
 
void WriteDfaFile (const NXString &fileName, const NXString &fileString, bool replace)
 Write a string out to a dfa file. More...
 
void WriteDfaFile (const char *fileName, const char *fileString, bool replace)
 Write a string out to a dfa file. More...
 

Detailed Description

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.

Member Enumeration Documentation

The filter option for asking for classes.

Enumerator
FilterUser 

User classes only.

FilterSystem 

System classes only.

FilterBoth 

Both user and system classes.

FilterUserPlus 

User and application classes.

FilterUserLoaded 

User classes that are loaded.

FilterSystemLoaded 

System classes that are loaded.

FilterBothLoaded 

System and user classes that are loaded.

FilterUserPlusLoaded 

User and application classes that are loaded.

Indicates the status from initializing RuleManager.

Enumerator
InitializationStatusTypeSuccess 

Initialization succeeded.

InitializationStatusTypeFailure 

Initialization failed.

InitializationStatusTypeUnavailable 

Intent not available.

InitializationStatusTypeUnableToObtainLicense 

Cannot obtain license.

InitializationStatusTypeCloseFailure 

Close failed.

Indicates the license type to be used.

Enumerator
LicenseTypeNoLicense 

no license

LicenseTypeAuthor 

author

LicenseTypeExecute 

execute

LicenseTypePipeline 

pipeline

LicenseTypeKfFeature 

kf feature

LicenseTypeKfInterop 

kf interop

LicenseTypeKfNewGeom 

kf new geom

LicenseTypeKfChecking 

kf checking

Indicates the data type of a rule.

Enumerator
RuleTypeBoolean 

boolean

RuleTypeFrame 

frame

RuleTypeInteger 

integer

RuleTypeList 

list

RuleTypeName 

name

RuleTypeNumber 

number

RuleTypePoint 

point

RuleTypeString 

string

RuleTypeVector 

vector

RuleTypeInstance 

instance

RuleTypeAny 

any

RuleTypeHostPointer 

host pointer

Member Function Documentation

bool NXOpen::RuleManager::AdoptObjects ( const std::vector< NXOpen::NXObject * > &  ugObjects)

Adopt the specified ug objects.

Returns
TRUE if update needs to be called
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
ugObjectsobjects to adopt
void NXOpen::RuleManager::Copy ( const NXString oldNameChain,
const NXString oldLeafName,
const NXString newNameChain,
const NXString newLeafName 
)

Copy a dynamic child or attribute rule.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
oldNameChainName chain for rule to copy
oldLeafNameLeaf name of rule to copy
newNameChainName chain for copied rule
newLeafNameLeaf name for copied rule
void NXOpen::RuleManager::Copy ( const char *  oldNameChain,
const char *  oldLeafName,
const char *  newNameChain,
const char *  newLeafName 
)

Copy a dynamic child or attribute rule.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
oldNameChainName chain for rule to copy
oldLeafNameLeaf name of rule to copy
newNameChainName chain for copied rule
newLeafNameLeaf name for copied rule
void NXOpen::RuleManager::CreateChildRule ( const NXString ruleName,
const NXString className,
const std::vector< 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")

Parameters
ruleNameName of child rule to create
classNameClass to instantiate as this child
parametersInput parameters for this class
void NXOpen::RuleManager::CreateChildRule ( const char *  ruleName,
const char *  className,
const std::vector< 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")

Parameters
ruleNameName of child rule to create
classNameClass to instantiate as this child
parametersInput parameters for this class
void NXOpen::RuleManager::CreateDynamicRule ( const NXString referenceChain,
const NXString ruleName,
NXOpen::RuleManager::RuleType  ruleType,
const NXString ruleText 
)

Create or modify a dynamic rule.


Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
referenceChainReference chain for instance in which to create the dynamic rule
ruleNameName of rule to create
ruleTypeData type for the new rule
ruleTextValue for the new rule as a string
void NXOpen::RuleManager::CreateDynamicRule ( const char *  referenceChain,
const char *  ruleName,
NXOpen::RuleManager::RuleType  ruleType,
const char *  ruleText 
)

Create or modify a dynamic rule.


Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
referenceChainReference chain for instance in which to create the dynamic rule
ruleNameName of rule to create
ruleTypeData type for the new rule
ruleTextValue for the new rule as a string
void NXOpen::RuleManager::CreateDynamicRule ( const NXString referenceChain,
const NXString ruleName,
const NXString behaviors,
const NXString ruleUnits,
const NXString ruleText,
const NXString leadingComment 
)

Create or modify a dynamic rule.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
referenceChainReference chain for instance in which to create the dynamic rule
ruleNameName of rule to create
behaviorsBehaviors for the new rule, for example, "Number Modifiable"
ruleUnitsUnit for the new rule, for example, "mm"
ruleTextValue for the new rule as a string
leadingCommentLeading comment for rule. This can be NULL
void NXOpen::RuleManager::CreateDynamicRule ( const char *  referenceChain,
const char *  ruleName,
const char *  behaviors,
const char *  ruleUnits,
const char *  ruleText,
const char *  leadingComment 
)

Create or modify a dynamic rule.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
referenceChainReference chain for instance in which to create the dynamic rule
ruleNameName of rule to create
behaviorsBehaviors for the new rule, for example, "Number Modifiable"
ruleUnitsUnit for the new rule, for example, "mm"
ruleTextValue for the new rule as a string
leadingCommentLeading comment for rule. This can be NULL
void NXOpen::RuleManager::CreateDynamicRule ( const NXString referenceChain,
const NXString ruleName,
const NXString behaviors,
const NXString ruleText,
const NXString leadingComment 
)

Create or modify a dynamic rule.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
referenceChainReference chain for instance in which to create the dynamic rule
ruleNameName of rule to create
behaviorsBehaviors for the new rule, for example, "Number Modifiable"
ruleTextValue for the new rule as a string
leadingCommentLeading comment for rule. This can be NULL
void NXOpen::RuleManager::CreateDynamicRule ( const char *  referenceChain,
const char *  ruleName,
const char *  behaviors,
const char *  ruleText,
const char *  leadingComment 
)

Create or modify a dynamic rule.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
referenceChainReference chain for instance in which to create the dynamic rule
ruleNameName of rule to create
behaviorsBehaviors for the new rule, for example, "Number Modifiable"
ruleTextValue for the new rule as a string
leadingCommentLeading comment for rule. This can be NULL
bool NXOpen::RuleManager::CreateMode ( )

Returns the create mode flag.


Created in NX5.0.0.

License requirements : None

bool NXOpen::RuleManager::DebugFlag ( )

Returns the debug update flag.


Created in NX5.0.0.

License requirements : None

void NXOpen::RuleManager::DeleteChildRule ( const NXString ruleName)

Delete a child rule from this rule manager.


Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
ruleNameName of child to delete
void NXOpen::RuleManager::DeleteChildRule ( const char *  ruleName)

Delete a child rule from this rule manager.


Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
ruleNameName of child to delete
void NXOpen::RuleManager::DeleteDynamicRule ( const NXString referenceChain,
const NXString ruleName 
)

Delete an existing dynamic rule.


Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
referenceChainReference chain for instance from which to delete the dynamic rule
ruleNameName of rule to delete
void NXOpen::RuleManager::DeleteDynamicRule ( const char *  referenceChain,
const char *  ruleName 
)

Delete an existing dynamic rule.


Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
referenceChainReference chain for instance from which to delete the dynamic rule
ruleNameName of rule to delete
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.

Returns
The number of errors in the update module's error list. If errors occurred during update they will be added to that error list. To obtain a list of these errors, use Update::ErrorList
Created in NX4.0.0.

License requirements : None
Parameters
undoMarkIf any update error occurs, the system will roll back to this undo mark.
NXString NXOpen::RuleManager::EvaluateAnyAsString ( const NXString referenceChain)

Evaluate a rule and return its value as a string.

Returns
Value of the rule formatted as a string
Created in NX5.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for the rule to evaluate
NXString NXOpen::RuleManager::EvaluateAnyAsString ( const char *  referenceChain)

Evaluate a rule and return its value as a string.

Returns
Value of the rule formatted as a string
Created in NX5.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for the rule to evaluate
NXString NXOpen::RuleManager::EvaluateAsString ( const NXString referenceChain)

Evaluate a rule and return its value as a string.

Returns
Value of the rule formatted as a string
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for the rule to evaluate
NXString NXOpen::RuleManager::EvaluateAsString ( const char *  referenceChain)

Evaluate a rule and return its value as a string.

Returns
Value of the rule formatted as a string
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for the rule to evaluate
std::vector<NXOpen::RuleManager::AdoptableTypes> NXOpen::RuleManager::GetAdoptableTypes ( )

The list of object types which can be adopted.

Returns
Object type data
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
std::vector<NXString> NXOpen::RuleManager::GetAncestorClasses ( const NXString className)

Get the ancestor classes for a given class.

Returns
names of ancestor classes
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameclass name for which to get component classes
std::vector<NXString> NXOpen::RuleManager::GetAncestorClasses ( const char *  className)

Get the ancestor classes for a given class.

Returns
names of ancestor classes
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameclass name for which to get component classes
NXString NXOpen::RuleManager::GetClass ( const NXString referenceChain)

Get the class of a dynamic rule.

Returns
Class of rule
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
NXString NXOpen::RuleManager::GetClass ( const char *  referenceChain)

Get the class of a dynamic rule.

Returns
Class of rule
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
NXString NXOpen::RuleManager::GetClassDfaFile ( const NXString className)

Get the name of the dfa file that contains the specified class.

Returns
File name that contains the class
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
NXString NXOpen::RuleManager::GetClassDfaFile ( const char *  className)

Get the name of the dfa file that contains the specified class.

Returns
File name that contains the class
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
std::vector<NXString> NXOpen::RuleManager::GetClasses ( NXOpen::RuleManager::Filter  filter)

Get class names that match the specified filter.

Returns
class names
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
filterfilter for classes
std::vector<NXString> NXOpen::RuleManager::GetClassesOfChildList ( const NXString referenceChain)

Get the classes for the members of a child list rule.

Returns
Classes for members of child list
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
std::vector<NXString> NXOpen::RuleManager::GetClassesOfChildList ( const char *  referenceChain)

Get the classes for the members of a child list rule.

Returns
Classes for members of child list
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
void NXOpen::RuleManager::GetDebugInstances ( std::vector< NXOpen::RuleManager::DebugInstance > &  instances,
std::vector< NXOpen::RuleManager::DebugRule > &  rules 
)

Get the debug update instances.


Created in NX5.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
instancesArray of instances
rulesArray of rules
NXString NXOpen::RuleManager::GetDefaultFormula ( const NXString className,
const NXString ruleName 
)

Returns the default formula for a rule within a class .

Returns
The default formula for the rule
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
NXString NXOpen::RuleManager::GetDefaultFormula ( const char *  className,
const char *  ruleName 
)

Returns the default formula for a rule within a class .

Returns
The default formula for the rule
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
std::vector<NXString> NXOpen::RuleManager::GetDependencies ( const NXString referenceChain)

Get the rules that the specified dynamic rule depends on.

Returns
Reference chains for rules depending on the specified rule
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
std::vector<NXString> NXOpen::RuleManager::GetDependencies ( const char *  referenceChain)

Get the rules that the specified dynamic rule depends on.

Returns
Reference chains for rules depending on the specified rule
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
std::vector<NXString> NXOpen::RuleManager::GetDependents ( const NXString referenceChain)

Get the rules that depend on the specified dynamic rule.

Returns
Reference chains for dependent rules
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
std::vector<NXString> NXOpen::RuleManager::GetDependents ( const char *  referenceChain)

Get the rules that depend on the specified dynamic rule.

Returns
Reference chains for dependent rules
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
std::vector<NXString> NXOpen::RuleManager::GetDynamicRules ( const NXString childRuleName)

Get the names of all dynamic rules defined on a child rule (or Root:).

Returns
Array of dynamic rule names in the child
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
childRuleNamereference chain of child rule
std::vector<NXString> NXOpen::RuleManager::GetDynamicRules ( const char *  childRuleName)

Get the names of all dynamic rules defined on a child rule (or Root:).

Returns
Array of dynamic rule names in the child
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
childRuleNamereference chain of child rule
NXString NXOpen::RuleManager::GetDynamicRuleText ( const NXString referenceChain)

Returns the rule text for a dynamic rule .

Returns
The text of the rule
Created in NX5.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainname chain for a dynamic rule
NXString NXOpen::RuleManager::GetDynamicRuleText ( const char *  referenceChain)

Returns the rule text for a dynamic rule .

Returns
The text of the rule
Created in NX5.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainname chain for a dynamic rule
int NXOpen::RuleManager::GetErrorEnd ( )

Get the parse error end location.

Returns
ending character pointer
Created in NX5.0.0.

License requirements : gateway ("UG GATEWAY")
int NXOpen::RuleManager::GetErrorStart ( )

Get the parse error start location.

Returns
starting character pointer
Created in NX5.0.0.

License requirements : gateway ("UG GATEWAY")
std::vector<NXOpen::RuleManager::FunctionArgumentsInformation> NXOpen::RuleManager::GetFunctionArgumentsInformation ( const NXString functionName,
const NXString instanceOrClassName,
bool  isInstance,
bool  briefOnly 
)

Get information about the arguments for a function.

Returns
Information about the function arguments
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
functionNameFunction name
instanceOrClassNameInstance or class name (used only for a method)
isInstanceTRUE if instance name passed, FALSE otherwise
briefOnlyTRUE if returning brief information only
std::vector<NXOpen::RuleManager::FunctionArgumentsInformation> NXOpen::RuleManager::GetFunctionArgumentsInformation ( const char *  functionName,
const char *  instanceOrClassName,
bool  isInstance,
bool  briefOnly 
)

Get information about the arguments for a function.

Returns
Information about the function arguments
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
functionNameFunction name
instanceOrClassNameInstance or class name (used only for a method)
isInstanceTRUE if instance name passed, FALSE otherwise
briefOnlyTRUE if returning brief information only
NXString NXOpen::RuleManager::GetFunctionFile ( const NXString functionName)

Get the file that contains the definitions for a function.

Returns
File where the function is defined
Created in NX5.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
functionNameFunction name
NXString NXOpen::RuleManager::GetFunctionFile ( const char *  functionName)

Get the file that contains the definitions for a function.

Returns
File where the function is defined
Created in NX5.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
functionNameFunction name
NXOpen::RuleManager::FunctionInformation NXOpen::RuleManager::GetFunctionInformation ( const NXString functionName,
const NXString instanceOrClassName,
bool  isInstance,
bool  briefOnly 
)

Get information about a function.

Returns
Information about the function
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
functionNameFunction name
instanceOrClassNameInstance or class name (used only for a method otherwise null or Nothing
isInstanceTRUE if instance name passed, FALSE otherwise
briefOnlyTRUE if returning brief information only
NXOpen::RuleManager::FunctionInformation NXOpen::RuleManager::GetFunctionInformation ( const char *  functionName,
const char *  instanceOrClassName,
bool  isInstance,
bool  briefOnly 
)

Get information about a function.

Returns
Information about the function
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
functionNameFunction name
instanceOrClassNameInstance or class name (used only for a method otherwise null or Nothing
isInstanceTRUE if instance name passed, FALSE otherwise
briefOnlyTRUE if returning brief information only
std::vector<NXString> NXOpen::RuleManager::GetFunctions ( NXOpen::RuleManager::Filter  filter,
bool  doSort 
)

Get functions that match the specified filter.

Returns
function names
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
filterfilter for functions
doSortTRUE to get the functions sorted alphabetically
std::vector<NXString> NXOpen::RuleManager::GetLastError ( )

Get messages for the most recent error.

Returns
lines for error messages
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
NXString NXOpen::RuleManager::GetNameChain ( NXOpen::NXObject ugObject)

Returns the name chain.

Returns
full name chain of the object
Created in NX5.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
ugObjectobject to find name chain
NXOpen::NXObject* NXOpen::RuleManager::GetObjectOfInstance ( const NXString nameChain)

Get object of instance.

Returns
object of instance
Created in NX9.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
nameChainName chain of instance
NXOpen::NXObject* NXOpen::RuleManager::GetObjectOfInstance ( const char *  nameChain)

Get object of instance.

Returns
object of instance
Created in NX9.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
nameChainName chain of instance
NXString NXOpen::RuleManager::GetObjectText ( NXOpen::NXObject ugObject)

Get the text to use when referencing the specified ug object in a rule.

Returns
Object text, either reference_chain or hostpointer text
Created in NX8.5.0.

License requirements : gateway ("UG GATEWAY")
Parameters
ugObjectobject to find object text for
NXString NXOpen::RuleManager::GetParameterFormula ( const NXString referenceChain,
const NXString parameterName 
)

Get the formula for a parameter that has been specified on a dynamic child rule.

Returns
Formula for the specified parameter
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
parameterNameParameter name
NXString NXOpen::RuleManager::GetParameterFormula ( const char *  referenceChain,
const char *  parameterName 
)

Get the formula for a parameter that has been specified on a dynamic child rule.

Returns
Formula for the specified parameter
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
parameterNameParameter name
NXOpen::RuleManager::RuleType NXOpen::RuleManager::GetParameterType ( const NXString referenceChain)

Get the type of a parameter in a dynamic child rule.

Returns
Data type required for this rule
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
NXOpen::RuleManager::RuleType NXOpen::RuleManager::GetParameterType ( const char *  referenceChain)

Get the type of a parameter in a dynamic child rule.

Returns
Data type required for this rule
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
NXString 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 .

Returns
Reference text, either reference_chain or hostpointer text
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
ugObjectobject to find reference text for
NXString NXOpen::RuleManager::GetRulesForObjects ( const std::vector< NXOpen::NXObject * > &  ugObjects)

Adoption text for the specified ug objects.

Returns
Output text for the objects
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
ugObjectsobjects to adopt
std::vector<NXString> NXOpen::RuleManager::GetRulesOfClass ( const NXString className)

Get the names of all the rules defined in a class.

Returns
Array of names of rules in the class
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
std::vector<NXString> NXOpen::RuleManager::GetRulesOfClass ( const char *  className)

Get the names of all the rules defined in a class.

Returns
Array of names of rules in the class
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
NXOpen::RuleManager::RuleType NXOpen::RuleManager::GetRuleType ( const NXString className,
const NXString ruleName 
)

Get the type of a rule within a class.

Returns
Data type required for this rule
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
NXOpen::RuleManager::RuleType NXOpen::RuleManager::GetRuleType ( const char *  className,
const char *  ruleName 
)

Get the type of a rule within a class.

Returns
Data type required for this rule
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
NXOpen::RuleManager::RuleType NXOpen::RuleManager::GetRuleType ( const NXString referenceChain)

Get the data type of a dynamic rule.

Returns
Data type of the rule
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
NXOpen::RuleManager::RuleType NXOpen::RuleManager::GetRuleType ( const char *  referenceChain)

Get the data type of a dynamic rule.

Returns
Data type of the rule
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
std::vector<NXString> NXOpen::RuleManager::GetRuleTypes ( )

Get strings that describe the rule types.

Returns
strings for rule types
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
std::vector<NXString> NXOpen::RuleManager::GetSpecifiedParameters ( const NXString referenceChain)

Get the parameters that have been specified on a dynamic child rule.

Returns
Array of names of parameters specified
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
std::vector<NXString> NXOpen::RuleManager::GetSpecifiedParameters ( const char *  referenceChain)

Get the parameters that have been specified on a dynamic child rule.

Returns
Array of names of parameters specified
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
NXOpen::RuleManager::InitializationStatusType NXOpen::RuleManager::Initialize ( NXOpen::RuleManager::LicenseType  licenseToTake,
int *  intentStatus 
)

Initialize the RuleManager.

Returns
Status from initializing RuleManager
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
licenseToTakeWhich license to take
intentStatusStatus from initializing subsystem
bool NXOpen::RuleManager::IsCanonical ( const NXString className,
const NXString ruleName 
)

Returns whether a rule within a class is canonical.

Returns
True if the rule is canonical
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsCanonical ( const char *  className,
const char *  ruleName 
)

Returns whether a rule within a class is canonical.

Returns
True if the rule is canonical
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsChildList ( const NXString className,
const NXString ruleName 
)

Returns whether a rule within a class is a child list rule.

Returns
True if the rule is a child list rule
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsChildList ( const char *  className,
const char *  ruleName 
)

Returns whether a rule within a class is a child list rule.

Returns
True if the rule is a child list rule
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsChildList ( const NXString referenceChain)

Returns whether a dynamic rule is a child list.

Returns
True if the rule is a child list
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
bool NXOpen::RuleManager::IsChildList ( const char *  referenceChain)

Returns whether a dynamic rule is a child list.

Returns
True if the rule is a child list
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
bool NXOpen::RuleManager::IsChildRule ( const NXString className,
const NXString ruleName 
)

Returns whether a rule in a class is a child rule.

Returns
True if the rule is a child rule
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsChildRule ( const char *  className,
const char *  ruleName 
)

Returns whether a rule in a class is a child rule.

Returns
True if the rule is a child rule
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsChildRule ( const NXString referenceChain)

Returns whether a dynamic rule is a child rule.

Returns
True if the rule is a child rule
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
bool NXOpen::RuleManager::IsChildRule ( const char *  referenceChain)

Returns whether a dynamic rule is a child rule.

Returns
True if the rule is a child rule
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
bool NXOpen::RuleManager::IsComputed ( const NXString referenceChain)

Returns whether a dynamic rule's value has been computed yet.

Returns
True if the rule's value has been computed
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
bool NXOpen::RuleManager::IsComputed ( const char *  referenceChain)

Returns whether a dynamic rule's value has been computed yet.

Returns
True if the rule's value has been computed
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
bool NXOpen::RuleManager::IsExpressionRule ( const NXString ruleName)

Determine whether a root level dynamic rule is mapped to an NX expression.

Returns
True if the rule is an NX expression
Created in NX5.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
ruleNameDynamic rule name
bool NXOpen::RuleManager::IsExpressionRule ( const char *  ruleName)

Determine whether a root level dynamic rule is mapped to an NX expression.

Returns
True if the rule is an NX expression
Created in NX5.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
ruleNameDynamic rule name
bool NXOpen::RuleManager::IsHidden ( const NXString className,
const NXString ruleName 
)

Returns whether a rule within a class is hidden.

Returns
True if the rule is hidden
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsHidden ( const char *  className,
const char *  ruleName 
)

Returns whether a rule within a class is hidden.

Returns
True if the rule is hidden
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsHidden ( const NXString referenceChain)

Returns whether a dynamic rule is hidden.

Returns
True if the rule is hidden
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
bool NXOpen::RuleManager::IsHidden ( const char *  referenceChain)

Returns whether a dynamic rule is hidden.

Returns
True if the rule is hidden
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
bool NXOpen::RuleManager::IsLocal ( const NXString className,
const NXString ruleName 
)

Returns whether a rule within a class is local to that class.

Returns
True if the rule is local to the class
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsLocal ( const char *  className,
const char *  ruleName 
)

Returns whether a rule within a class is local to that class.

Returns
True if the rule is local to the class
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsMethod ( const NXString className,
const NXString ruleName 
)

Returns whether a rule within a class is a method.

Returns
True if the rule is a method
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsMethod ( const char *  className,
const char *  ruleName 
)

Returns whether a rule within a class is a method.

Returns
True if the rule is a method
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsMethod ( const NXString referenceChain)

Returns whether a dynamic rule is a method.

Returns
True if the rule is a method
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
bool NXOpen::RuleManager::IsMethod ( const char *  referenceChain)

Returns whether a dynamic rule is a method.

Returns
True if the rule is a method
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
bool NXOpen::RuleManager::IsModifiable ( const NXString className,
const NXString ruleName 
)

Returns whether a rule within a class is modifiable.

Returns
True if the rule is modifiable
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsModifiable ( const char *  className,
const char *  ruleName 
)

Returns whether a rule within a class is modifiable.

Returns
True if the rule is modifiable
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsModifiable ( const NXString referenceChain)

Returns whether a dynamic rule is modifiable.

Returns
True if the rule is modifiable
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
bool NXOpen::RuleManager::IsModifiable ( const char *  referenceChain)

Returns whether a dynamic rule is modifiable.

Returns
True if the rule is modifiable
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
bool NXOpen::RuleManager::IsParameter ( const NXString className,
const NXString ruleName 
)

Returns whether a rule within a class is a parameter of that class.

Returns
True if the rule is a parameter of the class
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsParameter ( const char *  className,
const char *  ruleName 
)

Returns whether a rule within a class is a parameter of that class.

Returns
True if the rule is a parameter of the class
Created in NX3.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsRuleInClass ( const NXString className,
const NXString ruleName 
)

Returns whether the rule is defined in the specified class.

Returns
True if the rule is defined in the class
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsRuleInClass ( const char *  className,
const char *  ruleName 
)

Returns whether the rule is defined in the specified class.

Returns
True if the rule is defined in the class
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsUncached ( const NXString className,
const NXString ruleName 
)

Returns whether a rule within a class is uncached.

Returns
True if the rule is uncached
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsUncached ( const char *  className,
const char *  ruleName 
)

Returns whether a rule within a class is uncached.

Returns
True if the rule is uncached
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
ruleNameRule name within the class
bool NXOpen::RuleManager::IsUncached ( const NXString referenceChain)

Returns whether a dynamic rule is uncached.

Returns
True if the rule is uncached
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
bool NXOpen::RuleManager::IsUncached ( const char *  referenceChain)

Returns whether a dynamic rule is uncached.

Returns
True if the rule is uncached
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
referenceChainReference chain for rule
bool NXOpen::RuleManager::IsUserClass ( const NXString className)

Determine whether a class is a user class.

Returns
True if the class is a user class
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
bool NXOpen::RuleManager::IsUserClass ( const char *  className)

Determine whether a class is a user class.

Returns
True if the class is a user class
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
classNameClass name
bool NXOpen::RuleManager::IsUserFunction ( const NXString functionName)

Determine whether a function is one defined by the user.

Returns
True if the class is a user function
Created in NX5.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
functionNameFunction name
bool NXOpen::RuleManager::IsUserFunction ( const char *  functionName)

Determine whether a function is one defined by the user.

Returns
True if the class is a user function
Created in NX5.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
functionNameFunction name
NXString NXOpen::RuleManager::ReadDfaFile ( const NXString fileName)

Read a dfa file and return its contents as a string.

Returns
Contents of the file formatted as a string
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
fileNameFile name to read
NXString NXOpen::RuleManager::ReadDfaFile ( const char *  fileName)

Read a dfa file and return its contents as a string.

Returns
Contents of the file formatted as a string
Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")
Parameters
fileNameFile name to read
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")

void NXOpen::RuleManager::RegenerateAll ( )

Regenerate all rules.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

void NXOpen::RuleManager::Reload ( bool  refreshUserClassDir)

Reload all classes and functions.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
refreshUserClassDirflag for whether to refresh search dirs after load
void NXOpen::RuleManager::ReloadClassesAndFunctions ( std::vector< NXString > &  classes,
std::vector< NXString > &  functions 
)

Reload specified classes and functions.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
classesnames of classes to reload
functionsnames of functions to reload
void NXOpen::RuleManager::ReloadSingleClass ( const NXString className)

Reload a single class.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
classNameclass name to reload
void NXOpen::RuleManager::ReloadSingleClass ( const char *  className)

Reload a single class.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
classNameclass name to reload
void NXOpen::RuleManager::RemoveAllRules ( )

Remove all rules in the part.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

void NXOpen::RuleManager::RemoveRuleOnly ( const NXString referenceChain)

Remove a dynamic child or attribute rule, but leave the geometry.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
referenceChainReference chain for rule to remove
void NXOpen::RuleManager::RemoveRuleOnly ( const char *  referenceChain)

Remove a dynamic child or attribute rule, but leave the geometry.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
referenceChainReference chain for rule to remove
void NXOpen::RuleManager::Rename ( const NXString referenceChain,
const NXString newName 
)

Rename a dynamic child or attribute rule.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
referenceChainReference chain for rule to rename
newNameNew leaf name
void NXOpen::RuleManager::Rename ( const char *  referenceChain,
const char *  newName 
)

Rename a dynamic child or attribute rule.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
referenceChainReference chain for rule to rename
newNameNew leaf name
void NXOpen::RuleManager::SetDebugFlag ( bool  debugFlag)

Sets the debug update flag.


Created in NX5.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
debugFlagdebug flag
void NXOpen::RuleManager::SyntaxCheck ( const NXString fileName)

Run the syntax check on a dfa file.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
fileNamedfa file to check
NOTE: The full Unicode character set is not supported for this parameter.
void NXOpen::RuleManager::SyntaxCheck ( const char *  fileName)

Run the syntax check on a dfa file.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
fileNamedfa file to check
NOTE: The full Unicode character set is not supported for this parameter.
tag_t NXOpen::RuleManager::Tag ( ) const

Returns the tag of this object.

void NXOpen::RuleManager::WriteDfaFile ( const NXString fileName,
const NXString fileString,
bool  replace 
)

Write a string out to a dfa file.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
fileNameFile name to write
fileStringString to write to file
replaceif TRUE, replace the file if it exists
void NXOpen::RuleManager::WriteDfaFile ( const char *  fileName,
const char *  fileString,
bool  replace 
)

Write a string out to a dfa file.


Created in NX4.0.0.

License requirements : gateway ("UG GATEWAY")

Parameters
fileNameFile name to write
fileStringString to write to file
replaceif TRUE, replace the file if it exists

The documentation for this class was generated from the following file:
Copyright 2012 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.