Difference between revisions of "GET CIRCLE DATA"

From Macros Wiki
Jump to: navigation, search
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|syntax=GET_CIRCLE_DATA <geo ref>, <cs>, <rad>, <xc>, <yc>, [<zc>]
+
[[Geometry:Selecting_Geometry|{{Up}}]]
|description=:Get data about a circle, the values of the radius x, y and z center are stored in a defined variable.
+
 
 +
{{Command|syntax=[[image:get_circle_data.png|right|GET_CIRCLE_DATA]]GET_CIRCLE_DATA <geo ref>, <cs>, <rad>, <xc>, <yc>, [<zc>]
 +
|description=:Get the center and radius values from a circle geometry feature.
  
 
|param1=<geo ref>|param1_desc={{geo ref}}
 
|param1=<geo ref>|param1_desc={{geo ref}}
|param2=<cs>|param2_desc={{cs}}
+
|param2=<cs>|param2_desc={{get geo cs}}
|param3=<rad>|param3_desc={{getradius}}
+
|param3=<rad>|param3_desc={{get circle radius}}
|param4=<xc>|param4_desc={{getxc}}
+
|param4=<xc>|param4_desc={{get circle xc}}
|param5=<yc>|param5_desc={{getyc}}
+
|param5=<yc>|param5_desc={{get circle yc}}
|param6=[<zc>]|param6_desc={{getzc}}
+
|param6=[<zc>]|param6_desc={{get circle zc}}
 
}}
 
}}
  
 
===Example===
 
===Example===
:GET_CIRCLE_DATA 33, 0, s1, d1, h1, a4
+
:GET_CIRCLE_DATA 22, 1, r1, x1, y1, z1
 
+
:For an example in a real macro see [[Check_Circle_Data]] [[Print_Geo_Data_To_File]]
 
[[Category:Geometry]]
 
[[Category:Geometry]]

Latest revision as of 09:33, 12 August 2010

Up

Command

GET_CIRCLE_DATA
GET_CIRCLE_DATA <geo ref>, <cs>, <rad>, <xc>, <yc>, [<zc>]


Get the center and radius values from a circle geometry feature.

Parameters

<geo ref>
The reference number of the geometry feature.
<cs>
Set to zero to return the values in the CS associated with the geometry feature.
Set to 1 to return values in the world CS.
<rad>
The name of a numeric variable to set to the circle radius
<xc>
The name of a numeric variable to set to the X position of the circle center
<yc>
The name of a numeric variable to set to the Y position of the circle center
[<zc>]
The name of a numeric variable to set to the Z position of the circle center

Example

GET_CIRCLE_DATA 22, 1, r1, x1, y1, z1
For an example in a real macro see Check_Circle_Data Print_Geo_Data_To_File