GET SELECTED GEO REF: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
New page: {{Command|syntax=GET_SELECTED_GEO_REF <feature num>, <geo ref> |description=*DESCRPTION* |param1=<feature num>|param1_desc={{feature num}} |param2=<geo ref>|param2_desc={{geo ref}} }} ==... |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Command|syntax=GET_SELECTED_GEO_REF <feature num>, <geo ref> | {{Command|syntax=GET_SELECTED_GEO_REF <feature num>, <geo ref> | ||
|description= | |description=:Get the geo ref number of a feature, the value of geo ref is stored in a defined variable. | ||
|param1=<feature num>|param1_desc={{feature num}} | |param1=<feature num>|param1_desc={{feature num}} | ||
| Line 7: | Line 7: | ||
===Example=== | ===Example=== | ||
: | :GET_SELECTED_GEO_REF 3, f1 | ||
:GET_SELECTED_GEO_REF 9, h1 | |||
[[Category:Geometry]] | [[Category:Geometry]] | ||
Revision as of 14:34, 23 July 2010
Command
- GET_SELECTED_GEO_REF <feature num>, <geo ref>
- Get the geo ref number of a feature, the value of geo ref is stored in a defined variable.
Parameters
- <feature num>
- The index to the feature. This will be 1 for the first feature, 2 for the second etc.
- If you have selected a shape, then 1 will be the first line/arc in the shape, 2 will be the second.
- If you have selected a number of points, lines and circles, then index 1 will give you the first
- feature that you selected, 2 will be the second (in the order that you selected them).
- <geo ref>
- The reference number of the geometry feature.
Example
- GET_SELECTED_GEO_REF 3, f1
- GET_SELECTED_GEO_REF 9, h1