- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I wish to make a menu macro that outputs a text string containing some fields relevant to the plot. I already use it inside a block, trough attributes, but I want it also as a single string of text. The ouput will be
file: myfile.dwg | currentlayoutl | currentplotstyle.ctb | unit | papersize
the relative text with the fields is
file: %<\AcVar Filename \f "%fn6">% | %<\AcVar ctab>% | %<\AcVar PlotStyleTable>% | %<\AcDiesel $(index,$(getvar,insunits),"-,in,ft,mi,mm,cm,m,km,µin,mil,yd,Å,nm,μm,dm,dam,hm,Gm,au,ly,pc")>% | %<\AcVar PaperSize>%
and Ìm trying to write the macro like this:
^C^C_TEXT;\;;'example string above';
The problem is that the text string is full of backslashes, required by the fields, so the macro pauses for input even if inside a string delimited by quotes.
The output is only "file: %< stopping for user input at the first backslash.
Is there any way to escape the backslash?
I prefer not to use autolisp to give it to my collegues that use Acad lite.
Thank you very much
Solved! Go to Solution.