Author Topic: Method for Xrefs draworder existing dwg layouts layrstates..  (Read 2446 times)

0 Members and 1 Guest are viewing this topic.

sourdough

  • Bull Frog
  • Posts: 367
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
LDC 2009/C3D 2010/C3D 2011/C3D 2016

Win 10 64bit

Crank

  • Water Moccasin
  • Posts: 1503
Method for Xrefs draworder existing dwg layouts layrstates..
« Reply #1 on: May 23, 2005, 12:14:44 AM »
Visretain? Purge? Reattach? Layerstate?
Are you serious?

The problem is in your xref: Just open it, fix the draworder there and reload the xref.
Vault Professional 2023     +     AEC Collection

sourdough

  • Bull Frog
  • Posts: 367
return
« Reply #2 on: May 23, 2005, 12:46:16 AM »
I have updated this post ... see top post...
LDC 2009/C3D 2010/C3D 2011/C3D 2016

Win 10 64bit

ronjonp

  • Needs a day job
  • Posts: 7529
Method for Xrefs draworder existing dwg layouts layrstates..
« Reply #3 on: May 24, 2005, 10:13:15 AM »
Quote
even restore layerstate
doesn't work....


I should read posts more thoroughly :oops:

Sounds like you have a workaround. Maybe utilize layer manager to save these layer settings before you change to visretain 0 and reload. Reimporting these layer settings would be much easier than going through the layer table again.


Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC