Author Topic: How to Create list of available pagesetups from file?  (Read 1992 times)

0 Members and 1 Guest are viewing this topic.

Oak3s

  • Guest
How to Create list of available pagesetups from file?
« on: August 18, 2011, 10:08:40 PM »
I would like to create a list of available pagesetups but dont know how.
Here is how I check manually (command line)

filedia 0
-psetupin
[enter full path of .dwg]
?

How do I get this info into a list?

:) Any help is appreciated.

JohnK

  • Administrator
  • Seagull
  • Posts: 10661
Re: How to Create list of available pagesetups from file?
« Reply #1 on: August 18, 2011, 10:49:16 PM »
Like this (untested)?
Code: [Select]
( (lambda ( / )
   (setq *acadobject*
        (cond
         (*acadobject*)
         ((vlax-get-acad-object)))
    *activedocument*
        (cond
         (*activedocument*)
         ((vla-get-activedocument *acadobject*))) )
   (vla-get-plotconfigurations *activedocument*)
  )
)
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

ronjonp

  • Needs a day job
  • Posts: 7531
Re: How to Create list of available pagesetups from file?
« Reply #2 on: August 19, 2011, 12:08:20 AM »
Also take a look here .... the search is your friend  8-)

http://www.theswamp.org/index.php?topic=38005.msg430212#msg430212

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Oak3s

  • Guest
Re: How to Create list of available pagesetups from file?
« Reply #3 on: August 19, 2011, 02:10:39 PM »
Thank you both for the response.

Ronjonp, I did search and found that exact post. :)  However, I am trying to get a list of available pagesetups from another file. I appreciate the two examples posted but what I gather from my little bit of understanding is they are looking at the current document...

Is it possible to do the following?:
The active document is "A" and you get a list of pagesetups from file "B".

JohnK

  • Administrator
  • Seagull
  • Posts: 10661
Re: How to Create list of available pagesetups from file?
« Reply #4 on: August 19, 2011, 02:13:47 PM »
<snip>
Is it possible to do the following?:
The active document is "A" and you get a list of pagesetups from file "B".

You can just modify the routine in the following post.
http://www.theswamp.org/index.php?topic=37475.msg425205#msg425205
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

ronjonp

  • Needs a day job
  • Posts: 7531
Re: How to Create list of available pagesetups from file?
« Reply #5 on: August 19, 2011, 02:22:12 PM »
Thank you both for the response.

... However, I am trying to get a list of available pagesetups from another file. ....

Is it possible to do the following?:
The active document is "A" and you get a list of pagesetups from file "B".

Helps to have all the info  :-P

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Lee Mac

  • Seagull
  • Posts: 12926
  • London, England
Re: How to Create list of available pagesetups from file?
« Reply #6 on: August 19, 2011, 02:38:40 PM »
However, I am trying to get a list of available pagesetups from another file.

Is it possible to do the following?:
The active document is "A" and you get a list of pagesetups from file "B".

Maybe this program will help you.

Oak3s

  • Guest
Re: How to Create list of available pagesetups from file?
« Reply #7 on: August 19, 2011, 04:03:05 PM »
Se7en - Thank you, though I havent tried it yet.

Ronjonp - Sorry I wasnt very clear in the first post. In my mind, the part in red made it clear...in my mind  :ugly:

Lee Mac - Does just what I asked and more. Now I have to try to follow what it is doing so I can "steal" from the Steal.lsp. :)
I even went to your site looking for something just like this. Blind I guess - That goes back to Ronjonp's comment...search is your friend...even when you are blind.