designerstuart Posted January 12, 2012 Posted January 12, 2012 hi all i have written a macro to perform a bunch of tasks to speed up preparing drawings for issue, but it seems to hang up mid way through. basically this will purge, audit, bind xrefs, got to paper space, zoom extents, lock all layers and qsave. ^C^C_-purge;all;*;n;audit;y;-xref;b;*;-purge;all;*;n;audit;y;-layer;lock;*;;zoom;Extents;tilemode;0;mview;l;on;all;;pspace;zoom;extents;qsave the actual issue i have is trying to add a save-down to 2004 bit to it, which i think would make it this: ^C^C_-purge;all;*;n;audit;y;-xref;b;*;-purge;all;*;n;audit;y;-layer;lock;*;;zoom;Extents;tilemode;0;mview;l;on;all;;pspace;filedia;0;saveas;;y;filedia;1;zoom;extents;qsave but they both get stuck after the layerlock. what simple mistake am i making? thanks everyone Quote
designerstuart Posted January 12, 2012 Author Posted January 12, 2012 if it helps, the above macro is based on this script i made: -purge all * n audit y -xref b * -purge all * n audit y -layer lock * zoom Extents tilemode 0 mview l on all pspace zoom extents qsave this code works fine, start to end, so i must have lost something in translation. also i forgot to mention, when i type the macro commands manually it works fine. thanks for any help you can give. Quote
designerstuart Posted January 13, 2012 Author Posted January 13, 2012 okay i know the problem. it hangs up when a viewport is on a locked layer, as it cannot lock it, so i have added an unlock all layers bit before the mview command. sometimes i feel like i'm writing a blog. ^C^C_-purge;all;*;n;audit;y;-xref;b;*;-purge;all;*;n;audit;y;zoom;extents;-layer;unlock;*;;tilemode;0;mview;l;on;all;;-layer;lock;*;;pspace;zoom;extents;qsave this works fine for me now. Quote
Dadgad Posted January 13, 2012 Posted January 13, 2012 okay i know the problem. it hangs up when a viewport is on a locked layer, as it cannot lock it, so i have added an unlock all layers bit before the mview command. sometimes i feel like i'm writing a blog. ^C^C_-purge;all;*;n;audit;y;-xref;b;*;-purge;all;*;n;audit;y;zoom;extents;-layer;unlock;*;;tilemode;0;mview;l;on;all;;-layer;lock;*;;pspace;zoom;extents;qsave this works fine for me now. That looks pretty nice. I wonder if you have considered setting your incremental save percentage to ZERO before running this, as it could appreciably reduce the size of your files, even if they have been purged and audited? Great blog, by the way! Quote
Recommended Posts
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.