Gary,

You need to explore the macro "snap" functions. These are listed starting on
page 81 of the SmartCAM Customization Guide.

The following example will extract the end X and Y coordinates of the first
element in an active group and assign them to variables.


#xpos=ENX(GRP(1))
#ypos=ENY(GRP(1))


================================================== 
 Fred Lauzus, CAM Programming Coordinator 
 High Steel Structures, Incorporated 
  mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.highsteel.com <http://www.highsteel.com/>  
================================================== 
  

-----Original Message-----
From: gary [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 7:16 AM
To: SmartCAM List Server
Subject: [mfg-smartcam] Macro question


How can I store the end point of an element in a variable inside a macro.
 
I.E.
 
Select element
Run macro
Get the end coordinates X & Y
Add 3 mm to the X end point
Get a line length from an input variable
Create a vertical line ending @ the new X position and the stored Y
position.
The end
 
Thank you for your input.
 
Regards,
Gary
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================

Reply via email to