This started out looking for a routine to update layouts with Xref's that didn't update draworder. It became a method to update Tablayouts with Xref's that didn't add layers to Xref...just changed draworder, I didn't test for the addition of layers to Xref... perhaps the next test. With that in mind
it did work with all my layouts.
This is for those that have to update do to changes in Xref and Don't
want to pull your hair out about updating many Layouts...
This will allow you to maintain your viewports/layouts without having to
do them all over again. This worked for me... may not for you.. but
if this could save some of the headache... I tested on a couple of dwgs with over 10 layout tabs... and worked great of which they were complex Civil/Survey type dwg's.
But:
Make a backup copy of your workfile .dwg
Guide to a Happier Life with Xrefs and updating all Layerstates When draworder is screwed....
Step 1. ExpressTools Layerstate Export to your current Dwg Folder (e.g. *.lay)
Step 2. Delete ExpressTools Stored Layerstates from ET LayerManager... I use my ETLS.lsp
(obtain from doggarn@nc.rr.com) will post in Show your stuff for 2005 for sure
Step 3. Set visretain = 0
Step 4. Start Xref manager and reload xref.. this will bring the updated dwg...Reload desired Xref.dwg
close Xref Manager.
Step 5. Open ExpressTools Layerstate Manager and import your layerstate (e.g. *.lay) you stored from step 1.
Step 6. Restore the layerstate per your design that is current tab. It should then update your corrected
layouts.
Step 7. Set visretain = 1 and reSave layerstates either in ET Layermanager or Acad Layerstate Manager.
Old stuff.....
I have on many occasions had to do an update to the xref
in a drawing that has many layout tabs... only to find out that one
layer in the xref has the draw order wrong.... So, with that
my only recourse was to visretain = 0 .... unattach the xref ....
purge till dead..... reattach the xref and visretain = 1 and then update
everything with layers on and off...etc... even restore layerstate
doesn't work.... anybody figured out how to do a simple task...
??
Mike in Alaska
5-24-05
I have an way to do it.... will post a update with a .wmv to show how
to do it once I find a way to post the file.... waiting for Mark T