CONTOUR: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
===Example=== | ===Example=== | ||
:x1 = 0 | |||
:x2 = x1 + w1 - w2 | |||
:x3 = x1 + w1 | |||
:y1 = 0 | |||
:y2 = y1 + h1 - h2 | |||
:y3 = y1 + h1 | |||
:CONTOUR [ | :CONTOUR [ | ||
: | :START x1, y1 | ||
: | :LINE x2, y2 | ||
:LINE x3, y3 | |||
:LINE x1, y1 | |||
:] | |||
<br> | |||
:CONTOUR [ | |||
:START 0, 0 | |||
:LINE 3, 4 | |||
:LINE 2, 1 | |||
:LINE 0, 0 | |||
:] | :] | ||
Revision as of 22:47, 2 August 2010
Command
- Create a contour in the GibbsCam window, must be in the format:
- CONTOUR [
- START x, y
- ]
- with other commands between the brackets such as LINE
- This also creates a variable called contouref.
Parameters
- No Parameters
Example
- x1 = 0
- x2 = x1 + w1 - w2
- x3 = x1 + w1
- y1 = 0
- y2 = y1 + h1 - h2
- y3 = y1 + h1
- CONTOUR [
- START x1, y1
- LINE x2, y2
- LINE x3, y3
- LINE x1, y1
- ]
- CONTOUR [
- START 0, 0
- LINE 3, 4
- LINE 2, 1
- LINE 0, 0
- ]
- For an example macro see Explode_Shape Bag_Solids Calc_Geo_Extents Create_Contour.mac Geo_Pattern Geo_Transform Solids Solid_Type Use_Saved_Process