Author Topic: Save each Paperspace to seperate DWG & trim/purge unused objects  (Read 1552 times)

0 Members and 1 Guest are viewing this topic.

ifncdylan

  • Guest
Save each Paperspace to seperate DWG & trim/purge unused objects
« on: September 21, 2016, 10:48:45 PM »
Hey all, I've got a bit of a sticky one..

Did a drawing set for a client, almost 100 pages, viewport on each page to a model space with all the information, linework drawn on top of xreffed survey data, pretty standard I would think.

Turns out the upstream client requires one file per drawing, one model space and one paper space per drawing, and nothing in the model space other than what is required to display the paper space. The xreffed data must be bound to the document, but each file needs to have the xref data trimmed to only what is relevant.

I can achieve my goal using EXTRIM while REFEDIT is active (once per reference) but this takes FOREVER as the reference is quite large. Does anyone know of any better way to split a 56-paperspace drawing into 56 drawings with 1 paper space each and only the entities displayed in the paperspace viewports in each one?

If anyone can figure it out, it's probably someone here  :2funny:

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Save each Paperspace to seperate DWG & trim/purge unused objects
« Reply #1 on: September 21, 2016, 11:59:15 PM »
Here's a start. Maybe an xclip would work for the modelspace xrefs.
« Last Edit: September 22, 2016, 12:03:02 AM by ronjonp »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Re: Save each Paperspace to seperate DWG & trim/purge unused objects
« Reply #2 on: September 22, 2016, 05:22:29 AM »
I use this routine
It's works great for me.
Invoke code IMBAL

ifncdylan

  • Guest
Re: Save each Paperspace to seperate DWG & trim/purge unused objects
« Reply #3 on: September 22, 2016, 11:45:33 PM »
I use this routine
It's works great for me.
Invoke code IMBAL

That is one amazing routine!  :smitten: :smitten:

I think the only thing it isn't doing is trimming the modelspace data that's inside my xrefs (type overlay and bound to the document), but I don't even know if that's possible!