Jump to content

Recommended Posts

Posted

I'm trying to find out how to use \ not as a pause but in one of my macros... Any ideas?

 

example

c:\

Posted

You can't. You have to use a forwardslash instead of a backslash when specifying paths in macros.

Posted

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

Posted (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 by BIGAL

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...