NX Open C++ Reference Guide
|
Represents a collection of expressions. More...
Classes | |
class | iterator |
Iterator for accessing the contents of the collection. More... | |
Public Types | |
enum | ExportMode { ExportModeWorkPart, ExportModeAllInAssyTree, ExportModeAllParts } |
Indicates the mode for exporting expressions. More... | |
enum | ImportMode { ImportModeReplace, ImportModeDontReplace, ImportModeDeleteImports } |
Indicates the mode for importing expressions. More... | |
enum | SortType { SortTypeAlphaNum, SortTypeTimeStamp, SortTypeReverseTimeStamp } |
Indicates the mode for sorting expressions. More... | |
Public Member Functions | |
iterator | begin () |
Returns an iterator addressing the first element. | |
void | ChangeInterpartReferences (const NXString &oldPartName, const NXString &newPartName) |
Changes all of the references in the part "owning_part" from expressions in the part "old_part_name" to expressions in the part "new_part_name". | |
void | ChangeInterpartReferences (const char *oldPartName, const char *newPartName) |
Changes all of the references in the part "owning_part" from expressions in the part "old_part_name" to expressions in the part "new_part_name". | |
void | ChangeInterpartReferences (const NXString &oldPartName, const NXString &newPartName, bool doUpdate, bool doChecking) |
Changes all of the references in the part "owning_part" from expressions in the part "old_part_name" to expressions in the part "new_part_name". | |
void | ChangeInterpartReferences (const char *oldPartName, const char *newPartName, bool doUpdate, bool doChecking) |
Changes all of the references in the part "owning_part" from expressions in the part "old_part_name" to expressions in the part "new_part_name". | |
NXOpen::Expression * | Create (const NXString &string) |
Creates an expression. | |
NXOpen::Expression * | Create (const char *string) |
Creates an expression. | |
NXOpen::Expression * | CreateExpression (const NXString &expressionType, const NXString &string) |
Creates an expression of the specified type. | |
NXOpen::Expression * | CreateExpression (const char *expressionType, const char *string) |
Creates an expression of the specified type. | |
NXOpen::InterpartExpressionsBuilder * | CreateInterpartExpressionsBuilder () |
Creates interpart expressions. | |
NXOpen::SuppressByExpressionBuilder * | CreateSuppressByExpressionBuilder () |
Creates a SuppressByExpressionBuilder. | |
NXOpen::Expression * | CreateSystemExpression (const NXString &string) |
Creates a system expression. | |
NXOpen::Expression * | CreateSystemExpression (const char *string) |
Creates a system expression. | |
NXOpen::Expression * | CreateSystemExpression (const NXString &expressionType, const NXString &string) |
Creates a system expression of the specified type. | |
NXOpen::Expression * | CreateSystemExpression (const char *expressionType, const char *string) |
Creates a system expression of the specified type. | |
NXOpen::Expression * | CreateSystemExpressionFromReferenceString (const NXString &reference) |
Creates a system string expression from a reference string in Drafting Note format. | |
NXOpen::Expression * | CreateSystemExpressionFromReferenceString (const char *reference) |
Creates a system string expression from a reference string in Drafting Note format. | |
NXOpen::Expression * | CreateSystemExpressionWithUnits (const NXString &string, NXOpen::Unit *unitType) |
Creates a system expression with units. | |
NXOpen::Expression * | CreateSystemExpressionWithUnits (const char *string, NXOpen::Unit *unitType) |
Creates a system expression with units. | |
NXOpen::Expression * | CreateWithUnits (const NXString &string, NXOpen::Unit *unitType) |
Creates an expression with units. | |
NXOpen::Expression * | CreateWithUnits (const char *string, NXOpen::Unit *unitType) |
Creates an expression with units. | |
void | Delete (NXOpen::Expression *expression) |
Deletes an expression Created in NX4.0.0. | |
void | Edit (NXOpen::Expression *expression, const NXString &newRightHandSide) |
Edits an expression. | |
void | Edit (NXOpen::Expression *expression, const char *newRightHandSide) |
Edits an expression. | |
void | EditWithUnits (NXOpen::Expression *expression, NXOpen::Unit *unitType, const NXString &newRightHandSide) |
Edits an expression with units. | |
void | EditWithUnits (NXOpen::Expression *expression, NXOpen::Unit *unitType, const char *newRightHandSide) |
Edits an expression with units. | |
iterator | end () |
Returns an iterator addressing one past the last element. | |
void | ExportToFile (NXOpen::ExpressionCollection::ExportMode exportMode, const NXString &fileName, NXOpen::ExpressionCollection::SortType sortType) |
Exports the expressions to a text file, or, if 'file_name' is NULL, list the expressions in the listing window. | |
void | ExportToFile (NXOpen::ExpressionCollection::ExportMode exportMode, const char *fileName, NXOpen::ExpressionCollection::SortType sortType) |
Exports the expressions to a text file, or, if 'file_name' is NULL, list the expressions in the listing window. | |
NXOpen::Expression * | FindObject (const NXString &journalIdentifier) |
Finds the Expression with the given identifier as recorded in a journal. | |
NXOpen::Expression * | FindObject (const char *journalIdentifier) |
Finds the Expression with the given identifier as recorded in a journal. | |
NXOpen::Expression * | GetAttributeExpression (NXOpen::NXObject *object, const NXString &title, NXOpen::NXObject::AttributeType type, int index) |
Get the attribute expression of the specified attribute title/type. | |
NXOpen::Expression * | GetAttributeExpression (NXOpen::NXObject *object, const char *title, NXOpen::NXObject::AttributeType type, int index) |
Get the attribute expression of the specified attribute title/type. | |
std::vector< NXString > | GetInterpartReferences () |
Returns a list of parts that are referenced from expressions in the part "owning_part". | |
std::vector< NXOpen::Expression * > | GetVisibleExpressions () |
Returns an array of visible "Number" expressions in the part. | |
void | ImportFromFile (const NXString &fileName, NXOpen::ExpressionCollection::ImportMode importMode, bool *expModified, std::vector< NXString > &errorMessages) |
Imports expressions from a file. | |
void | ImportFromFile (const char *fileName, NXOpen::ExpressionCollection::ImportMode importMode, bool *expModified, std::vector< NXString > &errorMessages) |
Imports expressions from a file. | |
bool | RemoveInterpartReferences (const NXString &partName) |
Removes the interpart references from a part. | |
bool | RemoveInterpartReferences (const char *partName) |
Removes the interpart references from a part. | |
void | Rename (NXOpen::Expression *expression, const NXString &newName) |
Changes the name of the expression. | |
void | Rename (NXOpen::Expression *expression, const char *newName) |
Changes the name of the expression. | |
void | ReplaceAttributeExpression (NXOpen::Expression *expression, NXOpen::NXObject *object, const NXString &title, NXOpen::NXObject::AttributeType type, int index) |
Replace the attribute expression of the specified attribute title/type. | |
void | ReplaceAttributeExpression (NXOpen::Expression *expression, NXOpen::NXObject *object, const char *title, NXOpen::NXObject::AttributeType type, int index) |
Replace the attribute expression of the specified attribute title/type. | |
void | SystemRename (NXOpen::Expression *expression, const NXString &newName) |
Changes the name of the expression without marking system expressions as user expressions. | |
void | SystemRename (NXOpen::Expression *expression, const char *newName) |
Changes the name of the expression without marking system expressions as user expressions. | |
tag_t | Tag () const |
Returns the tag of this object. | |
Represents a collection of expressions.
To obtain an instance of this class, refer to BasePart
Created in NX3.0.0.
iterator NXOpen::ExpressionCollection::begin | ( | ) |
Returns an iterator addressing the first element.
void NXOpen::ExpressionCollection::ChangeInterpartReferences | ( | const NXString & | oldPartName, |
const NXString & | newPartName | ||
) |
Changes all of the references in the part "owning_part" from expressions in the part "old_part_name" to expressions in the part "new_part_name".
Created in NX4.0.0.
License requirements : None
oldPartName | Part name whose references are being replaced |
newPartName | New part name to reference |
void NXOpen::ExpressionCollection::ChangeInterpartReferences | ( | const char * | oldPartName, |
const char * | newPartName | ||
) |
Changes all of the references in the part "owning_part" from expressions in the part "old_part_name" to expressions in the part "new_part_name".
Created in NX4.0.0.
License requirements : None
oldPartName | Part name whose references are being replaced |
newPartName | New part name to reference |
void NXOpen::ExpressionCollection::ChangeInterpartReferences | ( | const NXString & | oldPartName, |
const NXString & | newPartName, | ||
bool | doUpdate, | ||
bool | doChecking | ||
) |
Changes all of the references in the part "owning_part" from expressions in the part "old_part_name" to expressions in the part "new_part_name".
Created in NX7.5.0.
License requirements : None
oldPartName | Part name whose references are being replaced |
newPartName | New part name to reference |
doUpdate | Do update if true |
doChecking | Do checking if true |
void NXOpen::ExpressionCollection::ChangeInterpartReferences | ( | const char * | oldPartName, |
const char * | newPartName, | ||
bool | doUpdate, | ||
bool | doChecking | ||
) |
Changes all of the references in the part "owning_part" from expressions in the part "old_part_name" to expressions in the part "new_part_name".
Created in NX7.5.0.
License requirements : None
oldPartName | Part name whose references are being replaced |
newPartName | New part name to reference |
doUpdate | Do update if true |
doChecking | Do checking if true |
NXOpen::Expression* NXOpen::ExpressionCollection::Create | ( | const NXString & | string | ) |
Creates an expression.
string | the equation for the expression. Must be in the format: name = right_hand_side. For example, "x = 1.2 * y + z". |
NXOpen::Expression* NXOpen::ExpressionCollection::Create | ( | const char * | string | ) |
Creates an expression.
string | the equation for the expression. Must be in the format: name = right_hand_side. For example, "x = 1.2 * y + z". |
NXOpen::Expression* NXOpen::ExpressionCollection::CreateExpression | ( | const NXString & | expressionType, |
const NXString & | string | ||
) |
Creates an expression of the specified type.
expressionType | The type of the expression, such as "Number", "String", "Boolean", "Integer", "Point" and "Vector" |
string | the equation for the expression. Must be in the format: name = right_hand_side. For example, "x = 1.2 * y + z". |
NXOpen::Expression* NXOpen::ExpressionCollection::CreateExpression | ( | const char * | expressionType, |
const char * | string | ||
) |
Creates an expression of the specified type.
expressionType | The type of the expression, such as "Number", "String", "Boolean", "Integer", "Point" and "Vector" |
string | the equation for the expression. Must be in the format: name = right_hand_side. For example, "x = 1.2 * y + z". |
NXOpen::InterpartExpressionsBuilder* NXOpen::ExpressionCollection::CreateInterpartExpressionsBuilder | ( | ) |
Creates interpart expressions.
NXOpen::SuppressByExpressionBuilder* NXOpen::ExpressionCollection::CreateSuppressByExpressionBuilder | ( | ) |
Creates a SuppressByExpressionBuilder.
NXOpen::Expression* NXOpen::ExpressionCollection::CreateSystemExpression | ( | const NXString & | string | ) |
Creates a system expression.
After creating a system expression, you should associate it with an object, such as a sketch dimension. System expressions are deleted when the object they are associated with is deleted.
string | the equation or right-hand-side for the expression. You can specify a name for the equation by providing a string in the format: name = right_hand_side. For example, "x = 1.2 * y + z". If you do not provide a name, a name will be assigned automatically. For example, if the string is "1.2 * y + z", a name will be assigned automatically. |
NXOpen::Expression* NXOpen::ExpressionCollection::CreateSystemExpression | ( | const char * | string | ) |
Creates a system expression.
After creating a system expression, you should associate it with an object, such as a sketch dimension. System expressions are deleted when the object they are associated with is deleted.
string | the equation or right-hand-side for the expression. You can specify a name for the equation by providing a string in the format: name = right_hand_side. For example, "x = 1.2 * y + z". If you do not provide a name, a name will be assigned automatically. For example, if the string is "1.2 * y + z", a name will be assigned automatically. |
NXOpen::Expression* NXOpen::ExpressionCollection::CreateSystemExpression | ( | const NXString & | expressionType, |
const NXString & | string | ||
) |
Creates a system expression of the specified type.
After creating a system expression, you should associate it with an object, such as a sketch dimension. System expressions are deleted when the object they are associated with is deleted.
expressionType | The type of the expression, such as "Number", "String", "Boolean", "Integer", "Point" and "Vector" |
string | the equation or right-hand-side for the expression. You can specify a name for the equation by providing a string in the format: name = right_hand_side. For example, "x = 1.2 * y + z". If you do not provide a name, a name will be assigned automatically. For example, if the string is "1.2 * y + z", a name will be assigned automatically. |
NXOpen::Expression* NXOpen::ExpressionCollection::CreateSystemExpression | ( | const char * | expressionType, |
const char * | string | ||
) |
Creates a system expression of the specified type.
After creating a system expression, you should associate it with an object, such as a sketch dimension. System expressions are deleted when the object they are associated with is deleted.
expressionType | The type of the expression, such as "Number", "String", "Boolean", "Integer", "Point" and "Vector" |
string | the equation or right-hand-side for the expression. You can specify a name for the equation by providing a string in the format: name = right_hand_side. For example, "x = 1.2 * y + z". If you do not provide a name, a name will be assigned automatically. For example, if the string is "1.2 * y + z", a name will be assigned automatically. |
NXOpen::Expression* NXOpen::ExpressionCollection::CreateSystemExpressionFromReferenceString | ( | const NXString & | reference | ) |
Creates a system string expression from a reference string in Drafting Note format.
Only expressions (X) and attributes (W) are supported.
Here is how the control character sequences need to be formatted: Expressions - Xm.n@exp_name Part Attributes - W@attr_title Object Attributes - W!obj_id@attr_title
reference | the reference string in Drafting Note format |
NXOpen::Expression* NXOpen::ExpressionCollection::CreateSystemExpressionFromReferenceString | ( | const char * | reference | ) |
Creates a system string expression from a reference string in Drafting Note format.
Only expressions (X) and attributes (W) are supported.
Here is how the control character sequences need to be formatted: Expressions - Xm.n@exp_name Part Attributes - W@attr_title Object Attributes - W!obj_id@attr_title
reference | the reference string in Drafting Note format |
NXOpen::Expression* NXOpen::ExpressionCollection::CreateSystemExpressionWithUnits | ( | const NXString & | string, |
NXOpen::Unit * | unitType | ||
) |
Creates a system expression with units.
After creating a system expression, you should associate it with an object, such as a sketch dimension. System expressions are deleted when the object they are associated with is deleted.
string | the equation or right-hand-side for the expression. You can specify a name for the equation by providing a string in the format: name = right_hand_side. For example, "x = 1.2 * y + z". If you do not provide a name, a name will be assigned automatically. For example, if the string is "1.2 * y + z", a name will be assigned automatically. |
unitType | units for the expression |
NXOpen::Expression* NXOpen::ExpressionCollection::CreateSystemExpressionWithUnits | ( | const char * | string, |
NXOpen::Unit * | unitType | ||
) |
Creates a system expression with units.
After creating a system expression, you should associate it with an object, such as a sketch dimension. System expressions are deleted when the object they are associated with is deleted.
string | the equation or right-hand-side for the expression. You can specify a name for the equation by providing a string in the format: name = right_hand_side. For example, "x = 1.2 * y + z". If you do not provide a name, a name will be assigned automatically. For example, if the string is "1.2 * y + z", a name will be assigned automatically. |
unitType | units for the expression |
NXOpen::Expression* NXOpen::ExpressionCollection::CreateWithUnits | ( | const NXString & | string, |
NXOpen::Unit * | unitType | ||
) |
Creates an expression with units.
string | the equation for the expression. Must be in the format: name = right_hand_side. For example, "x = 1.2 * y + z". |
unitType | units for the expression |
NXOpen::Expression* NXOpen::ExpressionCollection::CreateWithUnits | ( | const char * | string, |
NXOpen::Unit * | unitType | ||
) |
Creates an expression with units.
string | the equation for the expression. Must be in the format: name = right_hand_side. For example, "x = 1.2 * y + z". |
unitType | units for the expression |
void NXOpen::ExpressionCollection::Delete | ( | NXOpen::Expression * | expression | ) |
Deletes an expression
Created in NX4.0.0.
License requirements : None
expression | The expression to be deleted |
void NXOpen::ExpressionCollection::Edit | ( | NXOpen::Expression * | expression, |
const NXString & | newRightHandSide | ||
) |
Edits an expression.
Note, there is no difference between this method and editing the expression via Expression::SetRightHandSide if the ExpressionCollection is owned by the part that owns the expression.
Created in NX3.0.0.
License requirements : None
expression | The expression to be edited, Note: if this expression is not owned by the part that owns the ExpressionCollection, a new expression will be created in the part that owns the ExpressionCollection |
newRightHandSide | What you want to change the expression to |
void NXOpen::ExpressionCollection::Edit | ( | NXOpen::Expression * | expression, |
const char * | newRightHandSide | ||
) |
Edits an expression.
Note, there is no difference between this method and editing the expression via Expression::SetRightHandSide if the ExpressionCollection is owned by the part that owns the expression.
Created in NX3.0.0.
License requirements : None
expression | The expression to be edited, Note: if this expression is not owned by the part that owns the ExpressionCollection, a new expression will be created in the part that owns the ExpressionCollection |
newRightHandSide | What you want to change the expression to |
void NXOpen::ExpressionCollection::EditWithUnits | ( | NXOpen::Expression * | expression, |
NXOpen::Unit * | unitType, | ||
const NXString & | newRightHandSide | ||
) |
Edits an expression with units.
Changing the units on an existing expression is only allowed when the expression is not referenced yet.
Note, if you do not change the units, there is no difference between this method and editing the expression via Expression::SetRightHandSide if the ExpressionCollection is owned by the part that owns the expression.
Created in NX4.0.0.
License requirements : None
expression | The expression to be edited, Note: if this expression is not owned by the part that owns the ExpressionCollection, a new expression will be created in the part that owns the ExpressionCollection |
unitType | units for the expression |
newRightHandSide | What you want to change the expression to |
void NXOpen::ExpressionCollection::EditWithUnits | ( | NXOpen::Expression * | expression, |
NXOpen::Unit * | unitType, | ||
const char * | newRightHandSide | ||
) |
Edits an expression with units.
Changing the units on an existing expression is only allowed when the expression is not referenced yet.
Note, if you do not change the units, there is no difference between this method and editing the expression via Expression::SetRightHandSide if the ExpressionCollection is owned by the part that owns the expression.
Created in NX4.0.0.
License requirements : None
expression | The expression to be edited, Note: if this expression is not owned by the part that owns the ExpressionCollection, a new expression will be created in the part that owns the ExpressionCollection |
unitType | units for the expression |
newRightHandSide | What you want to change the expression to |
iterator NXOpen::ExpressionCollection::end | ( | ) |
Returns an iterator addressing one past the last element.
void NXOpen::ExpressionCollection::ExportToFile | ( | NXOpen::ExpressionCollection::ExportMode | exportMode, |
const NXString & | fileName, | ||
NXOpen::ExpressionCollection::SortType | sortType | ||
) |
Exports the expressions to a text file, or, if 'file_name' is NULL, list the expressions in the listing window.
Throws an exception if there is any error.
NOTE: if the file already exists, an exception is thrown and the file is not overwritten.
Created in NX4.0.0.
License requirements : None
exportMode | export mode |
fileName | File name specification to export expressions into. |
sortType | How to sort the exported expressions |
void NXOpen::ExpressionCollection::ExportToFile | ( | NXOpen::ExpressionCollection::ExportMode | exportMode, |
const char * | fileName, | ||
NXOpen::ExpressionCollection::SortType | sortType | ||
) |
Exports the expressions to a text file, or, if 'file_name' is NULL, list the expressions in the listing window.
Throws an exception if there is any error.
NOTE: if the file already exists, an exception is thrown and the file is not overwritten.
Created in NX4.0.0.
License requirements : None
exportMode | export mode |
fileName | File name specification to export expressions into. |
sortType | How to sort the exported expressions |
NXOpen::Expression* NXOpen::ExpressionCollection::FindObject | ( | const NXString & | journalIdentifier | ) |
Finds the Expression with the given identifier as recorded in a journal.
An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals.
An exception will be thrown if no object can be found with the given journal identifier.
journalIdentifier | Identifier to be found |
NXOpen::Expression* NXOpen::ExpressionCollection::FindObject | ( | const char * | journalIdentifier | ) |
Finds the Expression with the given identifier as recorded in a journal.
An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals.
An exception will be thrown if no object can be found with the given journal identifier.
journalIdentifier | Identifier to be found |
NXOpen::Expression* NXOpen::ExpressionCollection::GetAttributeExpression | ( | NXOpen::NXObject * | object, |
const NXString & | title, | ||
NXOpen::NXObject::AttributeType | type, | ||
int | index | ||
) |
Get the attribute expression of the specified attribute title/type.
object | The object of the attribute |
title | The title of the attribute |
type | The type of the attribute |
index | The array index if the attribute is an array (use -1 otherwise) |
NXOpen::Expression* NXOpen::ExpressionCollection::GetAttributeExpression | ( | NXOpen::NXObject * | object, |
const char * | title, | ||
NXOpen::NXObject::AttributeType | type, | ||
int | index | ||
) |
Get the attribute expression of the specified attribute title/type.
object | The object of the attribute |
title | The title of the attribute |
type | The type of the attribute |
index | The array index if the attribute is an array (use -1 otherwise) |
std::vector<NXString> NXOpen::ExpressionCollection::GetInterpartReferences | ( | ) |
Returns a list of parts that are referenced from expressions in the part "owning_part".
std::vector<NXOpen::Expression *> NXOpen::ExpressionCollection::GetVisibleExpressions | ( | ) |
Returns an array of visible "Number" expressions in the part.
void NXOpen::ExpressionCollection::ImportFromFile | ( | const NXString & | fileName, |
NXOpen::ExpressionCollection::ImportMode | importMode, | ||
bool * | expModified, | ||
std::vector< NXString > & | errorMessages | ||
) |
Imports expressions from a file.
Input a file specification. When calling this method, changes are not applied to the system until Update::DoUpdate is called.
Created in NX4.0.0.
License requirements : None
fileName | File name specification to import expressions from |
importMode | import mode |
expModified | TRUE if any expressions were affected by the import |
errorMessages | translated list of error messages |
void NXOpen::ExpressionCollection::ImportFromFile | ( | const char * | fileName, |
NXOpen::ExpressionCollection::ImportMode | importMode, | ||
bool * | expModified, | ||
std::vector< NXString > & | errorMessages | ||
) |
Imports expressions from a file.
Input a file specification. When calling this method, changes are not applied to the system until Update::DoUpdate is called.
Created in NX4.0.0.
License requirements : None
fileName | File name specification to import expressions from |
importMode | import mode |
expModified | TRUE if any expressions were affected by the import |
errorMessages | translated list of error messages |
bool NXOpen::ExpressionCollection::RemoveInterpartReferences | ( | const NXString & | partName | ) |
Removes the interpart references from a part.
If a part name is given, then it removes the references to that part. If part_name is NULL, it removes all references to all parts.
References on the RHS are replaced by a numerical value, References on the LHS are deleted. E.g.
<br> x = comp::len + z --\> x = 3 + z <br> <br> comp::height=5 --\> (deleted) <br>
The function returns TRUE is any references were removed, and FALSE otherwise.
partName | Part name to remove references for |
bool NXOpen::ExpressionCollection::RemoveInterpartReferences | ( | const char * | partName | ) |
Removes the interpart references from a part.
If a part name is given, then it removes the references to that part. If part_name is NULL, it removes all references to all parts.
References on the RHS are replaced by a numerical value, References on the LHS are deleted. E.g.
<br> x = comp::len + z --\> x = 3 + z <br> <br> comp::height=5 --\> (deleted) <br>
The function returns TRUE is any references were removed, and FALSE otherwise.
partName | Part name to remove references for |
void NXOpen::ExpressionCollection::Rename | ( | NXOpen::Expression * | expression, |
const NXString & | newName | ||
) |
Changes the name of the expression.
Created in NX4.0.0.
License requirements : None
expression | expression to be renamed |
newName | new name of the expression |
void NXOpen::ExpressionCollection::Rename | ( | NXOpen::Expression * | expression, |
const char * | newName | ||
) |
Changes the name of the expression.
Created in NX4.0.0.
License requirements : None
expression | expression to be renamed |
newName | new name of the expression |
void NXOpen::ExpressionCollection::ReplaceAttributeExpression | ( | NXOpen::Expression * | expression, |
NXOpen::NXObject * | object, | ||
const NXString & | title, | ||
NXOpen::NXObject::AttributeType | type, | ||
int | index | ||
) |
Replace the attribute expression of the specified attribute title/type.
Created in NX8.0.0.
License requirements : None
expression | the attribute expression |
object | The object of the attribute |
title | The title of the attribute |
type | The type of the attribute |
index | The array index if the attribute is an array (use -1 otherwise) |
void NXOpen::ExpressionCollection::ReplaceAttributeExpression | ( | NXOpen::Expression * | expression, |
NXOpen::NXObject * | object, | ||
const char * | title, | ||
NXOpen::NXObject::AttributeType | type, | ||
int | index | ||
) |
Replace the attribute expression of the specified attribute title/type.
Created in NX8.0.0.
License requirements : None
expression | the attribute expression |
object | The object of the attribute |
title | The title of the attribute |
type | The type of the attribute |
index | The array index if the attribute is an array (use -1 otherwise) |
void NXOpen::ExpressionCollection::SystemRename | ( | NXOpen::Expression * | expression, |
const NXString & | newName | ||
) |
Changes the name of the expression without marking system expressions as user expressions.
Created in NX6.0.0.
License requirements : None
expression | expression to be renamed |
newName | new name of the expression |
void NXOpen::ExpressionCollection::SystemRename | ( | NXOpen::Expression * | expression, |
const char * | newName | ||
) |
Changes the name of the expression without marking system expressions as user expressions.
Created in NX6.0.0.
License requirements : None
expression | expression to be renamed |
newName | new name of the expression |
tag_t NXOpen::ExpressionCollection::Tag | ( | ) | const |
Returns the tag of this object.