Jump to content

Recommended Posts

Posted
(command"undo""1""")

Above code correctly function to undo LINE command. But not working with ERASE command.

How can I get back erased items from LISP.

Posted

oops can use only for one item. 

Posted
20 hours ago, wimal said:

(command"undo""1""")

Above code correctly function to undo LINE command. But not working with ERASE command.

How can I get back erased items from LISP.

 

 

On my system it does work for erase, so as context is everything; you need to show us the lisp where you want to undo an erase, which begs the question why are you erasing something you don't want erased.

Posted (edited)

maybe better use copy (cut) / paste with base point. At one time you make a selection so copy it with base point 0,0 and when you're done paste it back at 0,0. But as dlanorh states , without some code or more info about why you need this hard to give a tip...

Edited by rlx
  • Like 1
Posted (edited)

In my code erase several blocks and relapse with some other blocks with different scale .

But if user select incorrect scale or block name he has to undo this activities.

for this reason I need to undo the previously erased function.

Edited by wimal
Posted
1 minute ago, wimal said:

In my code erase several blocks and relapse with some other blocks with different scale .

But if user select incorrect scale or block name he has to undo this activities.

for this reason I need to undo the previously erase function.

 

You need to set undo group marks in your lisp.

Posted

I am not familiar  with undo group marks

Posted
54 minutes ago, rlx said:

maybe better use copy (cut) / paste with base point. At one time you make a selection so copy it with base point 0,0 and when you're done paste it back at 0,0. But as dlanorh states , without some code or more info about why you need this hard to give a tip...

Good idea.

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