Notifications
Clear all

DIESEL menu gurus?

5 Posts
2 Users
0 Reactions
6 Views
(@roadburner)
Posts: 362
Registered
Topic starter
 

So we finally made the jump from acad2004 to 2013. In my 2004 menu (middle button menu), I had this item:

^C^Chighlight $M=$(if,$(getvar,highlight),0,1)

This would toggle HIGHLIGHT on or off, and when it was toggled "on" there would be a check mark beside the menu item.

I added this line to my acad2013 cuix file. It toggles HIGHLIGHT on and off okay, but I don't get the check mark any more. The AutoCAD 2013 Customization Guide says to add !. to get the check mark, but no matter how I try it there's no check mark.

This is my latest attempt:

^C^Chighlight $M=$(if,$(getvar,highlight)!.,0,1)

Anybody know what's wrong with this line?

Thanks for any wisdom.

RB

 
Posted : December 20, 2012 9:56 am
 RFB
(@rfb)
Posts: 1504
Registered
 

[$(if,$(getvar,HIGHLIGHT),!.)Highlight]'_HIGHLIGHT $M=$(if,$(getvar,highlight),0,1)

 
Posted : December 20, 2012 10:16 am
(@roadburner)
Posts: 362
Registered
Topic starter
 

> [$(if,$(getvar,HIGHLIGHT),!.)Highlight]'_HIGHLIGHT $M=$(if,$(getvar,highlight),0,1)

Hmmm, that gives me:

Command:
Command: [0 Unknown command "[0". Press F1 for help.

 
Posted : December 20, 2012 10:38 am
 RFB
(@rfb)
Posts: 1504
Registered
 

That is pull down menu code,
not command line code.

 
Posted : December 20, 2012 10:39 am
(@roadburner)
Posts: 362
Registered
Topic starter
 

> That is pull down menu code,
> not command line code.

Yep, that's where I added it using the cui editor. Added to the middle mouse buttom popup menu.

:-/

 
Posted : December 20, 2012 11:32 am