The following command is used, to search for a certain reference and store its information in a variable.
SEARCH_MDL_REF Model Filter Name Variable
Model = "Model name" | THIS | THIS_# | ASSEMBLY
--> Model name = can be defined through USER_SELECT by entering the chosen variable
--> # = Component ID (Only in assemblies)
Filter = SURFACE | EDGE | PLANE | AXIS | POINT | CSYS | QUILT
NAME = "Feature name" (Name of the feature, e.g. DTM1)
Example:
SEARCH_MDL_REF PLACEMENT_PLANE POINT A_REFPNT CONNECTOR_PNT
Searches in the model defined through PLACEMENT_PLANE for a point called A_REFPNT and stores its result in the variable CONNECTOR_PNT.
Searches for a dimension or parameter and saves its value for later use.
SEARCH_MDL_PARAM Model Name Variable
Model = "Model name" | THIS | THIS_#
--> Model name = can be defined through USER_SELECT by entering the chosen variable
--> # = Component ID (Only in assemblies)
Name = parameter/dimension name
Example:
SEARCH_MDL_PARAM THIS_12 DIAMETER DIA
Searches in the component with ID12 of a assembly for the parameter or dimension DIAMETER and stores its value in the variable DIA.