Miscellaneous methods

1. Measurements

With this command you can define the distance between two references. The type can me PLANE, FACE, AXIS or POINT, as well as a diameter.

MEASURE_DISTANCE Reference1 Reference2 Variable

MEASURE_DIAMETER Reference Variable

 

2. Search parameter

Searches for parameters or dimensions in a model and forwards them to a variable.

SEARCH_MDL_PARAM Selektion Name Variable

Selektion = "Through selection declared part"

Name = "Parameter name"

 

Example:

SEARCH_MDL_PARAM SELEKTIONSTEIL DIAMETER DIA

Searches in the selected part for the parameter DIAMETER and saves its value in the variable DIA.

 

3. Search references

The following command can be used to for a known reference in a certain model.

SEARCH_MDL_REF Selektion Filter Name Variable

Selektion = "Through selection declared part"

Filter = SURFACE | EDGE | PLANE | AXIS | POINT | CSYS | QUILT

Name = "Reference name" (Name of desired reference)