TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: cadpoobah on December 06, 2016, 09:17:08 AM

Title: Page setup reporting (across multiple files)
Post by: cadpoobah on December 06, 2016, 09:17:08 AM
All,

I'm generating a page setup reporting tool (think Reference Manager). I want to see the status of layouts (& their page setups) in multiple drawings (via Object DBX). I'm having trouble obtaining a list of layouts and their respective page setup name.

Can anyone share a code snippet that will show me how to access this info?

Thanks!

Chris

Title: Re: Page setup reporting (across multiple files)
Post by: BlackBox on December 06, 2016, 11:02:12 AM
I wanted a reporting tool a while back too, until I realized that I could instead just set the desired Page Setup (also works with DBX):

http://forums.augi.com/showthread.php?80461-Page-Setup-Manager&p=1219546&viewfull=1#post1219546

Quote
Code - Auto/Visual Lisp: [Select]
  1. (foreach layoutname (layoutlist)
  2.   (vla-SetActivePageSetup layoutname "YourPageSetupName")
  3. )
  4.  


Cheers
Title: Re: Page setup reporting (across multiple files)
Post by: cadpoobah on December 07, 2016, 12:24:01 PM
Good idea, @BlackBox. Our page setups are imported every time our drawings are opened to keep them current and ensure that they are available. I typically don't force them to be assigned to the layouts.

I think I would still like a way to generate a birds-eye view of an entire folder. It would be nice to see a list like what appears in Publish, showing all the layouts and their respective page setup.