GET SHAPE PATH: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
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..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Command|syntax=GET_SHAPE_PATH <shape number <path number> | {{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 | |description=: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. | ||
|param1=<shape number>|param1_desc=Shape number | |param1=<shape number>|param1_desc=Shape number | ||
|param2=<path number>|param2_desc=Path number (between 1 and the number of paths defined using | |param2=<path number>|param2_desc=Path number (between 1 and the number of paths defined using [[DEFINE_PATH_LIST]] | ||
}} | }} |
Latest revision as of 20:11, 27 September 2012
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