Results 1 to 2 of 2

Thread: Current layout page setup

  1. #1
    Login to Give a bone
    0

    Default Current layout page setup

    Is there a way to determine the existing page setup for each layout in a drawing?

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,397
    Login to Give a bone
    0

    Default Re: Current layout page setup

    Layout Plot Configurations can vary from a named page setup, so there isn't a Layout.PlotConfiguration property. You just have to get the individual plot settings. Something like the following.
    Code:
    Private Type PgSetup
       CMN As String
       CenterPlot As Boolean
       'Add more props here
    End Type
    
    Public Function GetPageSetups() As Collection
      Dim PgSetups As New Collection
    
      For Each lyt As AcadLayout in ThisDrawing.Layouts
         If lyt.ModelType = paperspace then
            'get desired layout props
            Dim PgS As New PgSetup
            With PgS
               .CMN = lyt.CanonicalMediaName
               .CenterPlot = lyt.CenterPlot
            End With
            PgSetups.Add(PgS)
         End If
      Next lyt
    
    End Function
    C:> ED WORKING....

Similar Threads

  1. Replies: 4
    Last Post: 2019-01-16, 03:44 AM
  2. Set existing Page Setup to current.
    By Borgster in forum AutoLISP
    Replies: 4
    Last Post: 2012-12-21, 05:47 PM
  3. Replies: 0
    Last Post: 2011-11-16, 09:29 PM
  4. Current Page Setup
    By David van Erk in forum AutoLISP
    Replies: 3
    Last Post: 2009-10-16, 09:13 PM
  5. Batch Set Page Setup Current
    By ccaron in forum CAD Standards
    Replies: 0
    Last Post: 2009-10-06, 04:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •