I sorry guys I must have explained what I am looking for wrong. I know how to get AutoCad to make the temporary dcl file and have autocad read it. As explained at the link
http://www.afralisp.com/lisp/dclatt.htm. . I wrote a lisp called MAKEDCL years ago that does that.
What I am looking for is a way to take a pre-made dcl file and make it into a string.
ie. take a file containing
TEST : dialog {
: text { label = "Test"
key = TXT;
}
ok_cancel;
}
And turn it into a string
"TEST : dialog { : text { label = \"Test\" key = TXT; } ok_cancel; }"
that I then feed into the MAKEDCL lisp.
Like I mentioned above I am currently writing a lisp to translate the code from dcl to a string but I am stuck at replacing “ (quote symbol) with \”.
Currently autocad won’t accept the following code.
Code:
(setq CHK (vl-string-subst """ "\"" Line)
I hope that explanation is a little cleaner….