NX Open C++ Reference Guide
|
Represents a Routing Part library. More...
Classes | |
struct | Column |
Part table column type. More... | |
Public Types | |
enum | ColumnStatus { ColumnStatusNotHidden, ColumnStatusHidden } |
Hidden status of a column. More... | |
enum | ColumnType { ColumnTypeInteger, ColumnTypeReal, ColumnTypeString = 4 } |
Type of column values. More... | |
enum | NodeType { NodeTypeNormal, NodeTypeTable, NodeTypePart } |
Type of nodes in the part library. More... | |
enum | RootType { RootTypeTop, RootTypeStock, RootTypeWire, RootTypePart } |
Type of root nodes. More... | |
Public Member Functions | |
NXOpen::Routing::CharacteristicList * | CreateCriteria () |
Creates a new empty Routing::CharacteristicList object that can be used as input to Preferences::RoutingPartLibrary::MatchCriteria and Preferences::RoutingPartLibrary::MatchCriteriaWithFilter . | |
bool | FilterOnCurrentSpecifications (NXOpen::Routing::CharacteristicList *match, std::vector< NXString > &partClasses) |
Does a characteristic list match the current discipline and specifications? | |
std::vector< NXString > | GetChildrenNodes (const NXString &parent) |
Returns the children nodes of the input node. | |
std::vector< NXString > | GetChildrenNodes (const char *parent) |
Returns the children nodes of the input node. | |
NXString | GetFilteredRoot (NXOpen::Preferences::RoutingPartLibrary::RootType rootType) |
Returns the root node of the part library using the current active discipline. | |
NXOpen::Preferences::RoutingPartLibrary::NodeType | GetNodeType (const NXString &node) |
Returns the node type. | |
NXOpen::Preferences::RoutingPartLibrary::NodeType | GetNodeType (const char *node) |
Returns the node type. | |
NXOpen::Routing::CharacteristicList * | GetPartDefinition (const NXString &node) |
Returns the part information for a given NXOpen::Preferences::RoutingPartLibrary::NodeTypePart node. | |
NXOpen::Routing::CharacteristicList * | GetPartDefinition (const char *node) |
Returns the part information for a given NXOpen::Preferences::RoutingPartLibrary::NodeTypePart node. | |
NXString | GetRoot () |
Returns the root node of the part library. | |
std::vector < NXOpen::Preferences::RoutingPartLibrary::Column > | GetTableDefinition (const NXString &node) |
Returns the table information for a given NXOpen::Preferences::RoutingPartLibrary::NodeTypeTable node. | |
std::vector < NXOpen::Preferences::RoutingPartLibrary::Column > | GetTableDefinition (const char *node) |
Returns the table information for a given NXOpen::Preferences::RoutingPartLibrary::NodeTypeTable node. | |
std::vector < NXOpen::Routing::CharacteristicList * > | MatchCriteria (const NXString &startNode, NXOpen::Routing::CharacteristicList *criteria) |
Search for entries in the part library table nodes that match the given set of criteria. | |
std::vector < NXOpen::Routing::CharacteristicList * > | MatchCriteria (const char *startNode, NXOpen::Routing::CharacteristicList *criteria) |
Search for entries in the part library table nodes that match the given set of criteria. | |
std::vector < NXOpen::Routing::CharacteristicList * > | MatchCriteriaWithFilter (const NXString &startNode, NXOpen::Routing::CharacteristicList *criteria) |
Similar to Preferences::RoutingPartLibrary::MatchCriteria , however it also filters out any parts that don't match the critiera specified by the current specification. | |
std::vector < NXOpen::Routing::CharacteristicList * > | MatchCriteriaWithFilter (const char *startNode, NXOpen::Routing::CharacteristicList *criteria) |
Similar to Preferences::RoutingPartLibrary::MatchCriteria , however it also filters out any parts that don't match the critiera specified by the current specification. | |
tag_t | Tag () const |
Returns the tag of this object. | |
Represents a Routing Part library.
To obtain an instance of this class, refer to Preferences::RoutingPart
Created in NX4.0.0.
Type of nodes in the part library.
NXOpen::Routing::CharacteristicList* NXOpen::Preferences::RoutingPartLibrary::CreateCriteria | ( | ) |
Creates a new empty Routing::CharacteristicList object that can be used as input to Preferences::RoutingPartLibrary::MatchCriteria and Preferences::RoutingPartLibrary::MatchCriteriaWithFilter .
bool NXOpen::Preferences::RoutingPartLibrary::FilterOnCurrentSpecifications | ( | NXOpen::Routing::CharacteristicList * | match, |
std::vector< NXString > & | partClasses | ||
) |
Does a characteristic list match the current discipline and specifications?
match | The matching part's Characteristic List to check against the current discipline and specifications. |
partClasses | The part class hierarchy list that contains the matching part. The first item in the list is the top node name. The last item in the list is the lowest node that contains the matching part. NOTE: The full Unicode character set is not supported for this parameter. |
std::vector<NXString> NXOpen::Preferences::RoutingPartLibrary::GetChildrenNodes | ( | const NXString & | parent | ) |
Returns the children nodes of the input node.
parent | NOTE: The full Unicode character set is not supported for this parameter. |
std::vector<NXString> NXOpen::Preferences::RoutingPartLibrary::GetChildrenNodes | ( | const char * | parent | ) |
Returns the children nodes of the input node.
parent | NOTE: The full Unicode character set is not supported for this parameter. |
NXString NXOpen::Preferences::RoutingPartLibrary::GetFilteredRoot | ( | NXOpen::Preferences::RoutingPartLibrary::RootType | rootType | ) |
Returns the root node of the part library using the current active discipline.
Returns NULL if there is no root node.
rootType | Which root node to find. |
NXOpen::Preferences::RoutingPartLibrary::NodeType NXOpen::Preferences::RoutingPartLibrary::GetNodeType | ( | const NXString & | node | ) |
Returns the node type.
node | NOTE: The full Unicode character set is not supported for this parameter. |
NXOpen::Preferences::RoutingPartLibrary::NodeType NXOpen::Preferences::RoutingPartLibrary::GetNodeType | ( | const char * | node | ) |
Returns the node type.
node | NOTE: The full Unicode character set is not supported for this parameter. |
NXOpen::Routing::CharacteristicList* NXOpen::Preferences::RoutingPartLibrary::GetPartDefinition | ( | const NXString & | node | ) |
Returns the part information for a given NXOpen::Preferences::RoutingPartLibrary::NodeTypePart node.
node | Must be a NXOpen::Preferences::RoutingPartLibrary::NodeTypePart type node, any other node type causes an exception. NOTE: The full Unicode character set is not supported for this parameter. |
NXOpen::Routing::CharacteristicList* NXOpen::Preferences::RoutingPartLibrary::GetPartDefinition | ( | const char * | node | ) |
Returns the part information for a given NXOpen::Preferences::RoutingPartLibrary::NodeTypePart node.
node | Must be a NXOpen::Preferences::RoutingPartLibrary::NodeTypePart type node, any other node type causes an exception. NOTE: The full Unicode character set is not supported for this parameter. |
NXString NXOpen::Preferences::RoutingPartLibrary::GetRoot | ( | ) |
Returns the root node of the part library.
Returns NULL if there is no root node.
std::vector<NXOpen::Preferences::RoutingPartLibrary::Column> NXOpen::Preferences::RoutingPartLibrary::GetTableDefinition | ( | const NXString & | node | ) |
Returns the table information for a given NXOpen::Preferences::RoutingPartLibrary::NodeTypeTable node.
node | Must be a NXOpen::Preferences::RoutingPartLibrary::NodeTypeTable type node, any other node type causes an exception. NOTE: The full Unicode character set is not supported for this parameter. |
std::vector<NXOpen::Preferences::RoutingPartLibrary::Column> NXOpen::Preferences::RoutingPartLibrary::GetTableDefinition | ( | const char * | node | ) |
Returns the table information for a given NXOpen::Preferences::RoutingPartLibrary::NodeTypeTable node.
node | Must be a NXOpen::Preferences::RoutingPartLibrary::NodeTypeTable type node, any other node type causes an exception. NOTE: The full Unicode character set is not supported for this parameter. |
std::vector<NXOpen::Routing::CharacteristicList *> NXOpen::Preferences::RoutingPartLibrary::MatchCriteria | ( | const NXString & | startNode, |
NXOpen::Routing::CharacteristicList * | criteria | ||
) |
Search for entries in the part library table nodes that match the given set of criteria.
Returns an array of Routing::CharacteristicList objects that can be used for assigning stock or placing parts. Searches all nodes at or below the input node for matches.
Performs matches on the name/value pairs in the input critiera, to the column name column values in the part tables below the input node. Ignores names in the input critiera that don't have a corresonding column in the part for matching.
startNode | Must not be a NXOpen::Preferences::RoutingPartLibrary::NodeTypePart node. NOTE: The full Unicode character set is not supported for this parameter. |
criteria | criteria |
std::vector<NXOpen::Routing::CharacteristicList *> NXOpen::Preferences::RoutingPartLibrary::MatchCriteria | ( | const char * | startNode, |
NXOpen::Routing::CharacteristicList * | criteria | ||
) |
Search for entries in the part library table nodes that match the given set of criteria.
Returns an array of Routing::CharacteristicList objects that can be used for assigning stock or placing parts. Searches all nodes at or below the input node for matches.
Performs matches on the name/value pairs in the input critiera, to the column name column values in the part tables below the input node. Ignores names in the input critiera that don't have a corresonding column in the part for matching.
startNode | Must not be a NXOpen::Preferences::RoutingPartLibrary::NodeTypePart node. NOTE: The full Unicode character set is not supported for this parameter. |
criteria | criteria |
std::vector<NXOpen::Routing::CharacteristicList *> NXOpen::Preferences::RoutingPartLibrary::MatchCriteriaWithFilter | ( | const NXString & | startNode, |
NXOpen::Routing::CharacteristicList * | criteria | ||
) |
Similar to Preferences::RoutingPartLibrary::MatchCriteria , however it also filters out any parts that don't match the critiera specified by the current specification.
startNode | Must not be a NXOpen::Preferences::RoutingPartLibrary::NodeTypePart node. NOTE: The full Unicode character set is not supported for this parameter. |
criteria | criteria |
std::vector<NXOpen::Routing::CharacteristicList *> NXOpen::Preferences::RoutingPartLibrary::MatchCriteriaWithFilter | ( | const char * | startNode, |
NXOpen::Routing::CharacteristicList * | criteria | ||
) |
Similar to Preferences::RoutingPartLibrary::MatchCriteria , however it also filters out any parts that don't match the critiera specified by the current specification.
startNode | Must not be a NXOpen::Preferences::RoutingPartLibrary::NodeTypePart node. NOTE: The full Unicode character set is not supported for this parameter. |
criteria | criteria |
tag_t NXOpen::Preferences::RoutingPartLibrary::Tag | ( | ) | const |
Returns the tag of this object.