Q. I have a macro that works fine if I manually remove the variables
   first. Can I put this logic in my macro?
 
A. There are 2 macro commands to remove variables. The first on will
   remove only the identified variable:

   VAR_REMOVE[VN="TLDIA"]

   The second one will clear all the variables:

   VAR_REMOVE_ALL[]

   Use caution when removing variables in conjunction with a active CTK
   panel. The panel will continue to falsely display the values after the
   variables have been removed.

Q. I added a panel to Awuser.pcb for this macro but when I use it, it
   rounds the variable down to one significant digit.  What am I doing
   wrong?

A. You are using an Integer token in the CTK for the level. You need to
   use a Level token or a decimal token. The Level token will allow you
   to use the mouse to snap to Z coordinates in the graphic area.
   One of the shortcomings of the Visual CTK is that you cannot easily
   verify the token type after it has been placed into a panel. The only
   method I have is to save the file in a pcs (panel configuration script)
   file and view it with a text editor.

   The contents of your custom panel is shown below:

   PANEL "Thread Macro" "c:\sm9\shared\sysmcl\thdmill.mcl" "Custom Thread
Mill Macro" -1 -1 5
   COORD2D "Thread Center" 15 1 #XCTR #YCTR
   INTEGER "Z Level" 49 1 #ZSTRT
   INTEGER "Thread Mill Diameter" 19 3 #TLDIA
   INTEGER "Thread Major Diameter" 19 4 #DIA
   INTEGER "Thread Pitch" 38 3 #PITCH



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




-----Original Message-----
From: SB Sean Betty (336) [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 2:25 PM
To: 'SmartCAM List Server (E-mail)'
Subject: [mfg-smartcam] Visual CTK and Macro


~All,
 
I have several questions related to macros and Visual CTK.
 
1. I have a macro that works fine if I manually remove the variables first.
Can I put this logic in my macro?
 
2. I added a panel to Awuser.pcb for this macro but when I use it, it rounds
the variable down to one significant digit.  What am I doing wrong?
 
I have included a copy of both.
 
Thanks in advance,
 
Sean Betty
Technical Manager
 
======================================================================
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