Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Toggling a check mark in a menu via lisp

4 REPLIES 4
Reply
Message 1 of 5
Aviv_Eyal
378 Views, 4 Replies

Toggling a check mark in a menu via lisp

I am trying to add an on and off  checkmark via lisp to an item in a pull down menu.

a know it can be done with diesel but only on system variables.

in my case i can't use sysvars - only lisp.

i tried (menucmd ....) but I get nil.

 any suggestions will be great

 

Aviv

4 REPLIES 4
Message 2 of 5
hmsilva
in reply to: Aviv_Eyal


@Aviv_Eyal wrote:

I am trying to add an on and off  checkmark via lisp to an item in a pull down menu.

a know it can be done with diesel but only on system variables.

in my case i can't use sysvars - only lisp.

i tried (menucmd ....) but I get nil.

 any suggestions will be great

 

Aviv


If I understood correctlI

 

setvar ???

 

HTH

Henrique

EESignature

Message 3 of 5
Aviv_Eyal
in reply to: Aviv_Eyal

thank

what i ment is somthing like this in diesel:

 

$(if,$(getvar,dimaso),!.)/vAssociative Dimensions]'_dimaso
$M=$(-,1,$(getvar,dimaso))

 

yet i don't want to use disel because it only uses system variables.

I want to program it in lisp using menucmd but i gust can't get it right....

 

Aviv

Message 4 of 5
hmsilva
in reply to: Aviv_Eyal


@Aviv_Eyal wrote:

thank

what i ment is somthing like this in diesel:

 

$(if,$(getvar,dimaso),!.)/vAssociative Dimensions]'_dimaso
$M=$(-,1,$(getvar,dimaso))

 

yet i don't want to use disel because it only uses system variables.

I want to program it in lisp using menucmd but i gust can't get it right....

 

Aviv


Aviv,

sorry, but I can't be much help in this issue.

Which AutoCAD version are you using, DIMASO was replaced by DIMASSOC...

 

Henrique

EESignature

Message 5 of 5
dmfrazier
in reply to: Aviv_Eyal

"...to add an on and off checkmark via lisp to an item in a pull down menu"

 

What will the on/off checkmark represent?  Is this to affect a sysvar or other option setting?

 

"...in my case i can't use sysvars - only lisp..."

 

Why can't you use sysvars?  (Does this mean you can't use SETVAR in a LISP routine?)

 

And, finally, assuming this is for something entirely custom, maybe DOSLib (http://www.en.na.mcneel.com/doslib.htm) has a function that will help.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost