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

Modemacro Help

3 REPLIES 3
Reply
Message 1 of 4
fletch97
109 Views, 3 Replies

Modemacro Help

Looking to add to my status bar and I have a hit a road block. How can I get the diesel functions to getvar pstylemode and display on the status line that it's a CTB based dwg or STB based dwg depending on the results of the pstylemode variable?

Here's my current modemacro....

(setvar "modemacro" (strcat "LTScale = $(getvar, ltscale) / " "DimScale = $(getvar, dimscale)))

I just want to add in whether it's a CTB or STB based dwg.....?

Thanks!
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: fletch97

You'll have to use an if statement. see if this link helps.
http://ltsideofthings.blogspot.com/2007/08/diesel-if-statement.html

Erik Deyo
http://ltsideofthings.blogspot.com/

wrote in message news:5746048@discussion.autodesk.com...
Looking to add to my status bar and I have a hit a road block. How can I
get the diesel functions to getvar pstylemode and display on the status line
that it's a CTB based dwg or STB based dwg depending on the results of the
pstylemode variable?

Here's my current modemacro....

(setvar "modemacro" (strcat "LTScale = $(getvar, ltscale) / " "DimScale =
$(getvar, dimscale)))

I just want to add in whether it's a CTB or STB based dwg.....?

Thanks!
Message 3 of 4
fletch97
in reply to: fletch97

Hmmm.....well I went through and tried it but it didn't work.

"$M=$(if,$(=,$(getvar,pstylemode),0),STB,CTB)"

Did I miss something?....I get unknown command error!
Message 4 of 4
fletch97
in reply to: fletch97

Never mind.....I figured it out.

Thanks!

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

Post to forums  

Autodesk Design & Make Report

”Boost