Jump to content

LISP for Errors...


Lee Mac

Recommended Posts

I have written an AutoLISP routine, (see below), but would like to insert a few lines to cope with errors, (such as if the user presses 'Esc' halfway through - the Osnap settings are all still turned off and have to be put back on manually).

 

The LISP is used to insert a block (a valve on a P&ID) which has an attribute which is the valve number.

 

 

 

Another issue I am having is that AutoCAD 2004 will not let me run another LISP similar to the one posted and allow me to insert a different block - it will just insert the same block all the time.... Any ideas?

INSBLOCKGATE2.lsp

Link to comment
Share on other sites

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