GET SHAPE PATH

From Macros Wiki
Revision as of 20:07, 27 September 2012 by Mikeo (talk | contribs) (Created page with "{{Command|syntax=GET_SHAPE_PATH <shape number <path number> |description=:Copy the path that represents the given shape into one of the list of paths defined using the {DEFINE...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Command

GET_SHAPE_PATH <shape number <path number>


Copy the path that represents the given shape into one of the list of paths defined using the {DEFINE_PATH_LIST} command. Once copied to this list, you can use the {GET_PATH_NUM_FEAT}, {GET_PATH_FEAT_TYPE} and similar commands to read data for each part of the shape.

Parameters

<shape number>
Shape number
<path number>
Path number (between 1 and the number of paths defined using {DEFINE_PATH_LIST}

Example

DEFINE_PATH_LIST 2
GET_SHAPE_PATH 1, 1
GET_SHAPE_PATH 2, 2
GET_PATH_NUM_FEAT 1, num1
GET_PATH_NUM_FEAT 2, num1
DELETE_PATH_LIST

These commands will create a list of 2 paths, copy the outlines of shapes 1 and 2 to paths 1 and 2 and get the number of features in each of these shapes