When users invoke the Search icon to construct a query, they will be presented with the Cutting Tool Search dialog, as shown
in the following figure. Within the dialog, users can specify the query parameters, values and group the query constraints
with logical operators. When the user completes the query and executes the Find command, Creo Parametric will call the Creo TOOLKIT application with the data from this dialog.
The functions described in this section enable you to convert the Creo Parametric queries into a format that can be used with the external database.
Creo Parametric tool database queries are arranged in a tree format, as shown in the following figure. Leaf nodes contain expressions, for
example, units and type.
Functions Introduced:
ProMfgdbQuerynodeIsLeaf()
The functions ProMfgdbQuerynodeLeftChildGet() and ProMfgdbQuerynodeRightChildGet() return either the left or right branch of a query node, respectively.
ProMfgdbQuerynodeLogicOperGet()ProMfgdbQuerynodeIsLeaf()
ProMfgdbQuerynodeExprGet()
ProMfgdbQueryTargetGet()
After the query functions return expressions from a leaf node, your Creo TOOLKIT application can gather information contained in the expressions. The following functions return attributes and operators
contained in the returned expressions of a leaf node.
The function ProMfgdbExprNameGet() returns the name of the attribute contained in the specified expression. The function ProMfgdbExprCategoryGet() returns the category of the attribute contained in the specified expression. The functions ProMfgdbExprValueGet() and ProMfgdbExprValueTypeGet() return the value and value type contained in the specified expression, respectively. The function ProMfgdbExprCompopGet() returns the comparison operator (=, <, >, and so on) contained in the specified expression.