You could try using: VAR_REMOVE[VN="tool"]
This will clear a single specified variable but in this case I think you'll get the same result as #tool=1000000. Without looking at your macro I'll assume that after it terminates, the variable #tool is still present in your insert bar for the active step. If so, whenever you click on something SmartCAM tries to process this and generates an error. You may want to try and flush this out. You can do this in your macro by adding a command to ether change the active insert property to a known valid step number: WITH_STEP[ST=10] or change the active insert property the first step in the planner: WITH_STEP[ST=OPNLIST(1)] or change the active insert property to layer, any layer: ON_LAYER[]� Most of the time this will work. On some occasions however, for reasons yet unknown, the Insert Bar will not update it's display to match a macro command. This is one of the reasons some of us are seeking ways to turn it on and off via macro commands. ============================================= Fred Lauzus, CAM Programming Coordinator High Steel Structures, Incorporated mailto:[EMAIL PROTECTED] http://www.highsteel.com ============================================= -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 9:44 AM To: [EMAIL PROTECTED] Subject: [mfg-smartcam] Clearing variables Importance: High I am writing a macro that uses the variable #tool to represent a tool number used to generate some cutter path. At the end of the macro, I clear the variable the old way: #tool=1000000. I don't like to use VAR_REMOVE_ALL [ ] because it doesn't allow repeated use of a .pcb panel; you would have to re-type all of your input on the panel each time you use it. Anyway, with the variable "cleared" the old way, I get an "Invalid step number" error if I try to repeat the usage of the macro because the variable #tool now equals 1000000, which of course is not a valid tool number. I always thought that 1000000 represents a null value rather than an actual value in Smartcam. What gives? Chris Kocourek CNC Department Manager Flextronics Enclosures, Inc. ====================================================================== To find out more about this mailing list including how to unsubscribe, send the message "info mfg-smartcam" to [EMAIL PROTECTED] ====================================================================== ====================================================================== To find out more about this mailing list including how to unsubscribe, send the message "info mfg-smartcam" to [EMAIL PROTECTED] ======================================================================
