wimal Posted July 25, 2019 Posted July 25, 2019 (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. Quote
dlanorh Posted July 26, 2019 Posted July 26, 2019 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. Quote
rlx Posted July 26, 2019 Posted July 26, 2019 (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 July 26, 2019 by rlx 1 Quote
wimal Posted July 26, 2019 Author Posted July 26, 2019 (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 July 26, 2019 by wimal Quote
dlanorh Posted July 26, 2019 Posted July 26, 2019 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. Quote
wimal Posted July 26, 2019 Author Posted July 26, 2019 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. Quote
rlx Posted July 26, 2019 Posted July 26, 2019 (edited) here's a good place to start : https://www.afralisp.net/archive/methods/lista/startundomark_method.htm Edited July 26, 2019 by rlx 1 Quote
Recommended Posts
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.