Jump to content

Recommended Posts

Posted

Hody!

I have question about handling error in autolisp(or visual lisp)

I would like that error function to do different things.

The situation is something like this.

i wanna insert an block. In the beginning the lisp routine asks two points and then it inserts an block and a text as well.

If it asks two points it and it sets new sys variables. Right, at this moment if i hit escape it restores old sys variables. If this routine inserts an block it also sets new values for sys variables and if i hit escape at this moment esc the old sys variables will be restored. But i also would like it to delete this inserted block. Now i can't use this (entlast) command. if i hit esc before it has inserted an block it will delete some other object or block which is last object.

Does anybody has a error handling routine which will restore sys variables any time when i hit esc and will only delet an block and text if it is inserted and won't delete last created object?

Complicated huh:((

Thanks,

M

Posted

Would you be able to post the routine as it stands so that it could be modified?

 

Thanks :)

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