Jump to content

Recommended Posts

Posted

I'm writing a lisp routine to automation drawing revision in lisp. to replace a diesel version. I have come across a problem when inserting the block using lisp, in diesel it works perfectly. The block has four attributes, with the last being a multiline attribute. The routine stumbles at this point and misinterprets the pause for user input as \ and returns the error 'unknown command'.

 

The diesel code that works is below.

 

attdia;0;-I;REVNOTE;\;1;;P01;""$m=$(edtime,$(getvar,date),DD.MO.YYYY)"";SMS;First issue;;attdia;1;rea;

 

The same in lisp below

 

(command "attdia" "0")
(command "_Insert" "REVNOTE" pause 1 1 0 "P01" Date Initials pause)
(command "attdia" "1")
(command "REA")

 

Any ideas on why this is happening as i'm stumped, unless its a bug in AutoCAD. 

 

many thanks

 

 

REVNOTE.dwg

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...