??? re: Is it possible to make a single macro with multi com
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
??? re: Is it possible to make a single macro with multi com
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Drafting
Author Message
OLD-CADaver
Guest





Posted: Tue Mar 08, 2005 8:26 pm    Post subject: Re: ??? re: Is it possible to make a single macro with multi Reply with quote

<<Go with OLD-CADaver his wil toggle back & forth with one button. >>

So will Jason's.

Back to top
OLD-CADaver
Guest





Posted: Tue Mar 08, 2005 8:31 pm    Post subject: Re: ??? re: Is it possible to make a single macro with multi Reply with quote

For a neat lisp function that "demonstrates the 16 BOOLEAN functions of AutoLisp's BOOLE" Look for BIT.ZIP on the CADRESOURCE site:
http://www.cadresource.com/library/lispbc.html

Passed through Lafayette last weekend on my way to a wedding in Florida.
Back to top
Guest






Posted: Sun Mar 20, 2005 10:02 am    Post subject: Re: ??? re: Is it possible to make a single macro with multi Reply with quote

Have you tried looking at the toolbar code for the PROPERTIES and
DESIGN CENTER buttons? Both display a simple toggle option that opens
the dialog box (floating or docked) and then closes it again.

If not, you can type lisp code directly into the button to get the
value of system variables and/or command states. A simple IF statement
in the button code is all that is required to do what you are asking.

Example: (if (= (getvar "DISPSILH") 1)
(setvar "DISPSILH" 0)
(setvar "DISPSILH" 1)
);endif
If the current value of the variable is ON (true) the variable value
will be turned off otherwise it will be turned on.

Please note that this is for turning on/off functions. It CAN also be
used to invoke alternate commands or invoke commands under certain
conditions.

Hope some of this helps.


madcadd wrote:
Quote:
Hi Dean,

See my post above with the jpg. What I am looking for is the ability
to put two commands on the same button TOGGLING from one to the other.

ie; DISPSILH 0, the DISPSILH 1.
Quote:

Do you know if this can be achieved? Thanx for your help.


Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Drafting All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB