Author Topic: Page setup reporting (across multiple files)  (Read 1179 times)

0 Members and 1 Guest are viewing this topic.

cadpoobah

  • Newt
  • Posts: 48
Page setup reporting (across multiple files)
« 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

Chris Lindner
Onebutton CAD Solutions
----------------------------------------------------
www.onebuttoncad.com #dayjob
www.unpavedart.com    #sidehustle

BlackBox

  • King Gator
  • Posts: 3770
Re: Page setup reporting (across multiple files)
« Reply #1 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
"How we think determines what we do, and what we do determines what we get."

cadpoobah

  • Newt
  • Posts: 48
Re: Page setup reporting (across multiple files)
« Reply #2 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.
Chris Lindner
Onebutton CAD Solutions
----------------------------------------------------
www.onebuttoncad.com #dayjob
www.unpavedart.com    #sidehustle