TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: ELOQUINTET on May 17, 2006, 01:28:37 PM

Title: how to save a zoom to restore after macro is run
Post by: ELOQUINTET on May 17, 2006, 01:28:37 PM
when i came to work here is discovered we have several macros we use to update attribute values for file name and revision etc. the problem i discovered right away was the attribute only got updated so i decided to add a zoom extents to the beginning. end of story right, wrong. now my boss wants it to go back to the previous "zoom" upon completion. how would i capture the zoom window and restore it at the end. here is my macro:


_.TEXTEVAL 1 _-ATTEDIT _Y *;DWG-FILE *;_C (GETVAR "EXTMIN") (GETVAR "EXTMAX"); _V _R (DWGPATH) ;_N 
Title: Re: how to save a zoom to restore after macro is run
Post by: M-dub on May 17, 2006, 01:32:47 PM
This might be a dumb question, but have your tried Zoom;P;?
Title: Re: how to save a zoom to restore after macro is run
Post by: ELOQUINTET on May 17, 2006, 01:45:42 PM
urrr please delete you were correct mdub. i am in the middle of so many things i didn't even try the obvious  :oops: