Difference between revisions of "GET WG DATA"
From Macros Wiki
(Created page with "{{Up}} {{Command|syntax=GET_TOOL_DATA <tool number>, <parameter>, <variable> |description=:Get tool data. |param1=<tool number>|param1_desc={{tool number}}...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[: | + | [[:Category:Work_Groups|{{Up}}]] |
− | {{Command|syntax= | + | {{Command|syntax=GET_WG_DATA <wg number>, <parameter>, <variable> |
− | |description=:Get | + | |description=:Get WorkGroup data. |
− | |param1=<tool number>|param1_desc={{ | + | |param1=<tool number>|param1_desc={{wg number}} |
− | |param2=<parameter>|param2_desc={{ | + | |param2=<parameter>|param2_desc={{wg parameter}} |
|param3=<variable>|param3_desc={{get data var}} | |param3=<variable>|param3_desc={{get data var}} | ||
}} | }} | ||
===Example=== | ===Example=== | ||
− | : | + | :GET_WG_DATA 3, TYPE, iType |
− | : | + | :GET_WG_DATA 3, WRAPPED, iWrapped |
+ | <br> | ||
+ | :Note - use the macro variables WG_TYPE_PART_GEO and WG_TYPE_PART_STOCK for the WorkGroup type<br> | ||
+ | :and WG_AXIS_X, WG_AXIS_Y, WG_AXIS_Z for the axis of revolution / extrusion. | ||
− | [[Category: | + | [[Category:Work_Groups]] |
Latest revision as of 18:31, 24 January 2011
Command
- GET_WG_DATA <wg number>, <parameter>, <variable>
- Get WorkGroup data.
Parameters
- <tool number>
- Workgroup number.
- <parameter>
- Wg Parameter
- <variable>
- A number or string variable.
- The type of variable must match the data type of the parameter.
- If the data you are getting is a text string, then you must specify a string variable. Otherwise use a number variable.
Example
- GET_WG_DATA 3, TYPE, iType
- GET_WG_DATA 3, WRAPPED, iWrapped
- Note - use the macro variables WG_TYPE_PART_GEO and WG_TYPE_PART_STOCK for the WorkGroup type
- and WG_AXIS_X, WG_AXIS_Y, WG_AXIS_Z for the axis of revolution / extrusion.