Jump to content

Recommended Posts

Posted

I have created a LISP for use in P&ID's in AutoCAD 2004 where I can insert a valve (a block) into a drawing and the LISP routine will automatically align the valve to the line that I am inserting it onto and trim the line at the places that it overlaps the valve.

 

However, when I have tried to create another LISP of the same format to reference a different valve (block) (using a different function syntax), the block that I had previously inserted was re-inserted :(.

 

The two LISP routines use different 'defun c:' values and reference different filepaths for the location of the blocks, however AutoCAD will just re-insert the block for whichever LISP routine is used first :cry:.

 

Is there any way that I can fix this? AutoCAD seems to remember the last block inserted and no matter what filepath is referenced in the LISP file, CAD will insert the remembered block. So is there any way to erase the block memory?

(hope all that made sense! :))

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