Your original equations have mismatched parentheses.

 

#LY1=ABS(((.189+.185)/2)+((.110+.106)/2)))  

#LY1=ABS(((.189+.185)/2)+ABS((.110+.106)/2)))  

 

I counted 5 open and 6 close. Try this:

 

#LY1=ABS( (.189+.185) /2 + (.110+.106) /2 )  




================================================== 
 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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Michael Senack
Sent: Thursday, March 04, 2004 8:30 AM
To: [EMAIL PROTECTED]
Subject: [mfg-smartcam] Variable help



Hi all,

 

In my macro I'm getting an "2601: Macro error in ..... cannot assign #LY1"
error 

 

if I have my variable #LY1 (Line Y-coordinate One)  defined as...

 

#LY1=ABS(((.189+.185)/2)+((.110+.106)/2)))  

 

OR as...

 

#LY1=ABS(((.189+.185)/2)+ABS((.110+.106)/2)))  

 

BUT if I define #LY1 as...

 

#LY1=ABS((.189+.185)/2)+ABS((.110+.106)/2)

 

it works!

 

Is this because SC cannot nest more then two sets of brackets?

 

Or is there a better way to define #LY1?

 

Regards,

Michael Senack

 

 

======================================================================
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