Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted
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!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...