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 |
||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Command|syntax=GET_SELECTED_GEO_REF <feature num>, <geo ref> | [[Geometry:Selecting_Geometry|{{Up}}]] | ||
|description= | |||
{{Command|syntax=[[Image:get_selected_geo_ref.png|right|GET_SELECTED_GEO_REF]]GET_SELECTED_GEO_REF <feature num>, <geo ref> | |||
|description=:Get the geometry reference number of a feature. | |||
|param1=<feature num>|param1_desc={{feature num}} | |param1=<feature num>|param1_desc={{feature num}} | ||
|param2=<geo ref>|param2_desc={{ | |param2=<geo ref>|param2_desc={{getgeo ref}} | ||
}} | }} | ||
===Example=== | ===Example=== | ||
: | :GET_SELECTED_GEO_REF 3, r1 | ||
:GET_SELECTED_GEO_REF 9, h1 | |||
:For an example macro see [[Calc_Geo_Extents]] [[Debug_Sel_geo]] [[Print_Geo_Data_To_File]] | |||
[[Category:Geometry]] | [[Category:Geometry]] | ||
Latest revision as of 22:56, 2 August 2010
Command
- Get the geometry reference number of a feature.
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 name of a numeric variable to set to the geometry reference number
Example
- GET_SELECTED_GEO_REF 3, r1
- GET_SELECTED_GEO_REF 9, h1
- For an example macro see Calc_Geo_Extents Debug_Sel_geo Print_Geo_Data_To_File
