Gary,
 
You can't store both coordinates in one variable, but you can store each in separate variables:
 
#x_end=ENX(your element)
#y_end=ENY(your element)
#x_end=#x_end+3
 
Look up the "LINE" command in the Macro Command Reference and substitute the variables where needed.
example: LINE[..., ENX=#x_end, ENY=#y_end]
 
Regards,
Chris
-----Original Message-----
From: gary [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 6: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

Reply via email to