Diesel how to get double quotes in eval a string?

Diesel how to get double quotes in eval a string?

Anonymous
Not applicable
1,070 Views
5 Replies
Message 1 of 6

Diesel how to get double quotes in eval a string?

Anonymous
Not applicable

Hello,

 

how to get something like ?

$/eval,"\"Test \"")

 

I need the string with duoble quotes.

"Test"

Thanks, regards

Massimo

0 Likes
1,071 Views
5 Replies
Replies (5)
Message 2 of 6

Moshe-A
Mentor
Mentor

this is form the manual:

 

DIESEL expressions return string values (text strings) that can be used as a response to standard commands, AutoLISP, and ObjectARX ® routines, and other macros

 

what are you trying to do exacly?

 

 

0 Likes
Message 3 of 6

Anonymous
Not applicable

Hello

 

^C^C_setenv RDCambiaStato $M=$(eval,"RDCambiaStato.cmd "$(getvar,dwgname)")

 

If I open test.dwg in Autocad LT, then I run 

MODEMACRO

$(eval,"RDCambiaStato.cmd $(getvar,dwgname)")

 

I get :

 

RDCambiaStato.cmd TEST.DWG

 

But I need it WITH double quote

"RDCambiaStato.cmd TEST.DWG"

 

Is it possible some how?

0 Likes
Message 4 of 6

Moshe-A
Mentor
Mentor

i still not sure i understand what you want to do? why you keep saying you want it with double quotes?

when the documentation says the value return from diesel string expresstions is a string compatiable with autolisp

 

Are you familer with USERS1-USERS5 system variables?

you can store in them any string value you want and use them in diesel

 

like if you want to put a space between 2 sysvars do that:

invoke USERS1 and respond with space (you will see noting)

than...

 

MODEMACRO

$(getenv,RDCambiaStato.cmd)$(getvar, users1)$(getvar,dwgname)

 

does that do what you after?

 

p.s

USERS1-USERS5 are not saved and each time you open a dwg you have to set them

so you have to design a special macro for setting them

 

also exists USERI1-USERI5   for integer numbers

also exists USERR1-USERR5 for real numbers

 

 

 

 

 

0 Likes
Message 5 of 6

cadffm
Consultant
Consultant
Users1-5 is not available in LT.

Sebastian

0 Likes
Message 6 of 6

john.uhden
Mentor
Mentor

Users1-5 are not available in LT, you bumbleheaded misanthrope.

[Don't worry, onlookers.  He knows that's a sign of affection.  It's quite different from calling him a $#&!@+]

John F. Uhden