NEW CS: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
|param1=<cs number>|param1_desc={{cs number}} | |param1=<cs number>|param1_desc={{cs number}} | ||
|param2=<method>|param2_desc=3P (3 points), XY (XY plane), XZ (XZ plane) or YZ (YZ plane) | |||
|param3=<name>|param3_desc=CS name | |||
|param4=<x1>|param4_desc=X value of point 1 | |||
|param5=<x1>|param5_desc=Y value of point 1 | |||
|param6=<x1>|param6_desc=Z value of point 1 | |||
}} | |||
Only 1 point is required for XY, XZ and YZ. For 3P, you must provide 6 more values for the XYZ positions of the second and third points. | |||
===Example=== | ===Example=== | ||
:NEW_CS 3 | :NEW_CS XY, 3, "NewXY", 3, 6, -1.5 | ||
<br> | |||
:This will create a new CS, parallel to the XY plane, with its origin at X 3, Y 6, Z -1.5 | |||
:For an example macro see [[Cs_List]] | :For an example macro see [[Cs_List]] | ||
[[Category:Coordinate_Systems]] | [[Category:Coordinate_Systems]] |
Revision as of 19:11, 12 January 2011
Command
- NEW_CS <method> <name>
- Create a new coordinate system. There are 4 methods that you can use to create a CS.
- NEW_CS 3P <name> <x1> <z1> <z1> <x2> <z2> <z2> <x3> <z3> <z3>
- NEW_CS XY <name> <x1> <z1> <z1>
- NEW_CS YZ <name> <x1> <z1> <z1>
- NEW_CS XZ <name> <x1> <z1> <z1>
Parameters
- <cs number>
- CS number.
- <method>
- 3P (3 points), XY (XY plane), XZ (XZ plane) or YZ (YZ plane)
- <name>
- CS name
- <x1>
- X value of point 1
- <x1>
- Y value of point 1
- <x1>
- Z value of point 1
Only 1 point is required for XY, XZ and YZ. For 3P, you must provide 6 more values for the XYZ positions of the second and third points.
Example
- NEW_CS XY, 3, "NewXY", 3, 6, -1.5
- This will create a new CS, parallel to the XY plane, with its origin at X 3, Y 6, Z -1.5
- For an example macro see Cs_List