NEW CS: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
Mikeo (talk | contribs)
No edit summary
Danielr (talk | contribs)
fix parameters
Line 9: Line 9:
:NEW_CS XZ <name> <x1> <z1> <z1>
:NEW_CS XZ <name> <x1> <z1> <z1>


|param1=<cs number>|param1_desc={{cs number}}
|param1=<method>|param1_desc=3P (3 points), XY (XY plane), XZ (XZ plane) or YZ (YZ plane)
|param2=<method>|param2_desc=3P (3 points), XY (XY plane), XZ (XZ plane) or YZ (YZ plane)
|param2=<name>|param2_desc=CS name
|param3=<name>|param3_desc=CS name
|param3=<x1>|param3_desc=X value of point 1
|param4=<x1>|param4_desc=X value of point 1
|param4=<x1>|param4_desc=Y value of point 1
|param5=<x1>|param5_desc=Y value of point 1
|param5=<x1>|param5_desc=Z value of point 1
|param6=<x1>|param6_desc=Z value of point 1
}}
}}


Line 20: Line 19:


===Example===
===Example===
:NEW_CS XY, 3, "NewXY", 3, 6, -1.5
:NEW_CS XY, "NewXY", 3, 6, -1.5
<br>
<br>
:This will create a new CS, parallel to the XY plane, with its origin at X 3, Y 6, Z -1.5
:This will create a new CS, parallel to the XY plane, with its origin at X 3, Y 6, Z -1.5

Revision as of 23:30, 17 January 2012

Up

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

<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, "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