TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: DanB on June 02, 2005, 09:51:38 AM
-
I'm having trouble creating the following text string output in LISP.
(setq string1 (strcat (rtos dist1 2 0) " LF OF 8" PVC @ 0.36%" ))
I am aware there is an issue with my quotation marks (possibly lack of them) where I would like the output string to look like this (example):
185 LF OF 8" PVC @ 0.36%
I cannot get the Inch mark after 8 to display. Any suggestions?
Thanks,
Dan
-
Nevermind, after some further "testing" I figured it out. The code should read:
(setq string1 (strcat (rtos dist1 2 0) " LF OF 8\" PVC @ 0.36%" ))
At least this appears to be working.
-
You can also use chr as in;
Command: (princ (strcat (chr 34)"This"(chr 34) " is in quotes"))(princ)
"This" is in quotes
Command: (ascii "\"")
34