public interface ExpressionGroupCollection extends TaggedObjectCollection
BasePart
TaggedObjectCollection.Iterator
Modifier and Type | Method and Description |
---|---|
ExpressionGroup |
active()
Returns the active expression group
License requirements: None. |
boolean |
checkName(String name)
Returns whether or not expression group name is valid.
|
ExpressionGroup |
create(String name)
Creates an expression group
License requirements: None. |
void |
delete(ExpressionGroup[] expressionGroup)
Deletes an array of one or more expression groups.
|
void |
exportExpressionGroupsToFile(ExpressionGroup[] expressionGroups,
String fileName,
ExpressionCollection.SortType sortType)
Exports the expressions in an expression group to a text file, or, if 'file_name' is null,
list the expressions in the listing window.
|
ExpressionGroup |
findObject(String journalIdentifier)
Finds the
ExpressionGroup with the given identifier as recorded in a journal. |
ExpressionGroup[] |
getAllExpressionGroupsInPart()
Returns an array of all expression groups in a part .
|
ExpressionGroup |
getDefault()
Return the default expression group
License requirements: None. |
ExpressionGroup |
getGroupOfExpression(Expression expression)
Returns expression group "owner" of an expression.
|
void |
rename(ExpressionGroup expressionGroup,
String newName)
Changes the name of the expression group.
|
void |
setActive(ExpressionGroup expressionGroup)
Sets the active expression group
License requirements: None. |
void |
setAllGroupsVisible()
Make all expression groups visible
License requirements: None. |
_find_next, iterator
ExpressionGroup create(String name) throws NXException, RemoteException
name
- the name for the expression group.NXException
RemoteException
void rename(ExpressionGroup expressionGroup, String newName) throws NXException, RemoteException
expressionGroup
- expression group to be renamednewName
- new name of the expression groupNXException
RemoteException
ExpressionGroup findObject(String journalIdentifier) throws NXException, RemoteException
ExpressionGroup
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 foundNXException
RemoteException
void delete(ExpressionGroup[] expressionGroup) throws NXException, RemoteException
expressionGroup
- array of expression groups to deleteNXException
RemoteException
ExpressionGroup getGroupOfExpression(Expression expression) throws NXException, RemoteException
expression
- the expression to queryNXException
RemoteException
void setAllGroupsVisible() throws NXException, RemoteException
NXException
RemoteException
void setActive(ExpressionGroup expressionGroup) throws NXException, RemoteException
expressionGroup
- the expression group to make activeNXException
RemoteException
ExpressionGroup active() throws NXException, RemoteException
NXException
RemoteException
ExpressionGroup getDefault() throws NXException, RemoteException
NXException
RemoteException
ExpressionGroup[] getAllExpressionGroupsInPart() throws NXException, RemoteException
NXException
RemoteException
boolean checkName(String name) throws NXException, RemoteException
name
- the name of the expression group to check.NXException
RemoteException
void exportExpressionGroupsToFile(ExpressionGroup[] expressionGroups, String fileName, ExpressionCollection.SortType sortType) throws NXException, RemoteException
expressionGroups
- fileName
- File name specification to export expressions into.sortType
- How to sort the exported expressionsNXException
RemoteException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.