Lt Dan's legs Posted November 18, 2010 Posted November 18, 2010 I'm trying to find out how to use \ not as a pause but in one of my macros... Any ideas? example c:\ Quote
nestly Posted November 18, 2010 Posted November 18, 2010 You can't. You have to use a forwardslash instead of a backslash when specifying paths in macros. Quote
Lt Dan's legs Posted November 18, 2010 Author Posted November 18, 2010 Thank you for the response. What I really wanted to do was have " in my macro. Example ^C^C(make_note "1/8\" DIAMOND PLATE"); I made a few lisp programs so my co-workers could make their own macro's. I came up with a work around. Use _ instead of " ^C^C(make_note "1/8_ DIAMOND PLATE"); and the lisp program would replace all _ in the string with " before running the program Quote
BIGAL Posted November 19, 2010 Posted November 19, 2010 (edited) I you have full autocad not Lt then using lisp you can strcat a character and words together you can replace basicly any character with (CHR x) where x is character number. (chr 65) = A (chr 66) = B dont have x for \ 32 is something like (setq name (strcat "1/8" (chr 34) " diamond plate")) = 1/8" diamond plate. (setq x 32) (repeat 100 (princ (chr x)) (setq x (+ x 1)) ) ^C^C(make_note name); Edited November 19, 2010 by BIGAL Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.