# GET SHAPE DATA

From Macros Wiki

### Command

- SET_SHAPE_DATA <list of values>

- Get data relating to a shape in the current list of geometry of profiler shapes.

The number of variables that are set by this command vary according to the type of data

### Parameters

- <data type>
- Data type, one of the following

OPEN, CLOSED, DIR_CW, DIR_CCW, SHAPE, HOLE, INNER, OUTER

- <value>
- 1=The shape matches the data type, 0=does not match

Addition data types: AREA, set 1 variable to the area of the shape LENGTH, set 1 variable to the perimeter length around the shape RADIUS, set 1 variable to the radius of the shape (only available fo shapes that are of type HOLE) CENTER, set 2 or 3 variables to the XY or XYZ center (mid-point) of the shape. EXTENTS, set 4 or 6 vaibales to the Xmin,Ymin,Xmax,Ymax or Xmin,Ymin,Zmin,Xmax,Ymax,Zmax of the shape

### Example

- GET_PROFILER_DATA 2, AREA, rval1
- GET_PROFILER_DATA 2, LENGTH, rval2

These commands will set rval1 to the area of shape number 2 and rval2 to the length

- GET_PROFILER_DATA 3, CENTER, xc, yc
- GET_PROFILER_DATA 3, CENTER, xc, yc, zc
- GET_PROFILER_DATA 3, EXTENTS, x1, y1, x2, y2
- GET_PROFILER_DATA 3, EXTENTS, x1, y1, z1, x2, y2, z2