AutoCAD 2018 LT - Macro problem - getvar"dimscale") - LISP / DIESEL

AutoCAD 2018 LT - Macro problem - getvar"dimscale") - LISP / DIESEL

PafecDOGS
Advocate Advocate
1,388 Views
8 Replies
Message 1 of 9

AutoCAD 2018 LT - Macro problem - getvar"dimscale") - LISP / DIESEL

PafecDOGS
Advocate
Advocate

Hi, we have recently downgraded from the full AutoCAD to LT. The only issues we knew we would have was the loss of some LISP powered buttons in our ribbon, which we can live with, but we now have found that something we use a lot in our buttons macros is the (getvar"dimscale") function, and that doesn't seem to work in LT. Looking online, it seems to suggest the command structure can be tweaked by using a DIESEL format, to something like $(getvar, dimscale) but I can't get this to work. I'd never heard of DIESEL before, so not familiar with it. A typical macro we use from the full version is attached. Any assistance appreciated!

0 Likes
Accepted solutions (1)
1,389 Views
8 Replies
Replies (8)
Message 2 of 9

cadffm
Consultant
Consultant
Accepted solution

(getvar "dimscale") => Lisp (fullversions only)

$M=$(getvar,dimscale) => DIESEL (fullversions and LT)

Sebastian

0 Likes
Message 3 of 9

pendean
Community Legend
Community Legend

@PafecDOGS wrote:

 I'd never heard of DIESEL before, so not familiar with it. 


 

Start LT2018, start HELP (press F1 or type ? then hit <enter>), in the search box on the pop-up up top type CUSTOMIZATION GUIDE then hit <enter>, click on the link of the same name, scroll down to the DIESEL section and start reading/studying.

 

DIESEL has been around for practically as long as AutoCAD has been around, and it is in full AutoCAD as well.

 

 

 

 

0 Likes
Message 4 of 9

PafecDOGS
Advocate
Advocate

Thanks CADffm, I'd not been using the "$M=" bit!

 

Can't believe DIESEL has been around for so long and i'd never heard of it!

 

Thanks for your quick replies.

0 Likes
Message 5 of 9

PafecDOGS
Advocate
Advocate

Actually, whilst changing the CUI file just now, I realised the various button macros had two different call ups of the "getvar" sequence, one has a backslash in front of the getvar bit, the other does not, what actually does this mean please, as it can make the difference between a button working or not ...

0 Likes
Message 6 of 9

cadffm
Consultant
Consultant

I can not see this menumacro in your Post!? 😉

getvar is getvar, nothing to do with the backslash.

 

I guess you talk about a backslash not in a lisp-statement, so it means "Stop for one Userinput",

no changes between fullversion and LT, the same as the last 30 years.

 

Please follow the Link to your help -> [F1]

 

Part of => Customization Guide Reference

 

Sebastian

0 Likes
Message 7 of 9

PafecDOGS
Advocate
Advocate

Sorry, its in the JPG attachment in the opening post of this thread.

 

Thanks for your explanation, that seems to make sense.

 

0 Likes
Message 8 of 9

cadffm
Consultant
Consultant

Oh, right. I thought you were talking about another macro.
For the macro in the first post fits my answer: Backslash in Menumacro = Waiting for a user input.

Have fun with LT / and other software solutions 😉

Sebastian

0 Likes
Message 9 of 9

pendean
Community Legend
Community Legend
Look up the topic

About Command Macros

In HELP, there are some Menu/CUI code basics in AutoCAD macro-writing you need to be familiar with (yes, its in full AutoCAD as well as LT).


0 Likes