I finally got it to work. I put the code for the zoom extents button before
the code for the next drawing button so that it looked like this now:
'_zoom _e ^C^C^P(if(not wd_load)(if(setq x(findfile "wd_load.lsp"))(load
x)))(wd_load);(c:wd_proj_dnext)
Now, if I have made changes to the drawing, it will zoom extents before
saving the drawing to disk.
"krollenhagen" wrote in message
news:41C59D9203176EC7085ED6F4B7FF23AA@in.WebX.maYIadrTaRb...
> What changes do I have to make to the buttons that go to the previous and
> next project drawings so that before changing drawings, it will zoom
> extents?
>
> I have tried a few different things in the code for the button but can't
> seem to get it to work. I do not know lisp programming and I think that
is
> what is used for the button.
>
> Here is the code on the button currently for the next project drawing
> button:
>
> ^C^C^P(if(not wd_load)(if(setq x(findfile "wd_load.lsp"))(load
> x)))(wd_load);(c:wd_proj_dnext)
>
> If you have any suggestion, please let me know.
>
> Thank you,
>
> Keith Rollenhagen
> Thierica Automation Group
>
>