Jump to content

Save command loses history


FazBear

Recommended Posts

Hi all

 

I have a problem with a lisp that runs a series of commands on a drawing then uses _save to save a copy to a specific location then i need it to undo to the begining of the drawing again so i can basically repeat a similar process and _save again.

 

Problem is once the lisp has _save'ed is seams to lose its undo history and will only undo to the point of the _save. I have tried this series of commands outside of a lisp routine and it works fine, cant understand why it acts differently.

 

Anyone have the answer?

 

Cheers all

 

:S

Link to comment
Share on other sites

An example

 

(defun c:test()
 (command "_.undo" "_group")
 (command "_.line" "0,0" "10,10" "")
 (command "_.line" "10,10" "20,10" "")
 (command "_.line" "30,0" "50,10" "")
 (command "_.line" "4,0" "100,100" "")
 (command "_.line" "50,0" "70,10" "")
 (command "_.undo" "_end")
)

just 1 undo

 

@+

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