Results 1 to 5 of 5

Thread: Updating Multiple Layouts to PageSetup - Refresh?

  1. #1
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Updating Multiple Layouts to PageSetup - Refresh?

    I've written a lisp utility to set multiple layout tabs to a Page Setup (saved in the drawing). It seems to work fine - see this thread: http://forums.augi.com/showthread.php?t=80461

    Unfortunately in some cases the page background is not updated (even after re-opening the drawing). The Page Setup Manager does show that the tab is set to the correct Saved Page Setup, but when the setup refers to Plot area = Extents it doesn't "move" the page background in Paper Space. I then have to do the Set Current in the Page Setup Manager and after clicking Close it updates correctly.

    The plots do come out correctly even if I haven't performed the above, but I'd like to see it as it's set-up. Does anyone know how I can "update" the display of the Page in Paper Space after setting the Layout to a particular Page Setup?

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,106
    Login to Give a bone
    0

    Default Re: Updating Multiple Layouts to PageSetup - Refresh?

    I haven't looked at your code. Have you tried to regen the viewport(s) before or after making the change?
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  3. #3
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Updating Multiple Layouts to PageSetup - Refresh?

    Yep I've tried that, even saved , closed and reopened the drawing. Still no go! It only happens if the actual TB on the layout is not positioned correctly and the Page Setup then compensates using Extents instead of Layout or Window.
    Attached Files Attached Files

  4. #4
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Updating Multiple Layouts to PageSetup - Refresh?

    The attached is an example of what goes wrong. If you look at the Page Setup Manager, you'll notice that both Layouts are set as per the DWF-A1 Saved Page Setup. But only the A1-Correct layout looks as it should after I clicked "Set Current" while DWF-A1 was selected in the PAGESETUP.
    Attached Files Attached Files

  5. #5
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Updating Multiple Layouts to PageSetup - Refresh?

    After some testing I finally worked this out: I was using the ActiveX method of CopyFrom to duplicate the PageSetup object to the Layout object. Unfortunately it then doesn't update the display of the Layout. So I simply had to change a property of the Layout object "manually" so the internal updating would take place.

    I simply added a call to set the PlotType property to the same value it was, i.e. (vla-put-PlotType tobj (vla-get-PlotType tobj)). Then I also ensured that each tab was regened, maybe this isn't really necessary but I added it for completeness.
    Attached Files Attached Files

Similar Threads

  1. Multiple Layouts or Just One
    By noah in forum AutoCAD Sheet Set Manager
    Replies: 12
    Last Post: 2019-09-27, 11:41 AM
  2. Multiple layouts in R14?
    By jaberwok in forum CAD Management - General
    Replies: 11
    Last Post: 2010-05-27, 07:30 PM
  3. Multiple layouts vs Multiple drawing files
    By mmilko.83044 in forum CAD Standards
    Replies: 26
    Last Post: 2009-06-12, 05:15 PM
  4. Replies: 5
    Last Post: 2007-02-07, 05:49 PM
  5. Using Template with Multiple Tab Layouts
    By Marv Muston in forum Project Navigator
    Replies: 2
    Last Post: 2006-06-01, 03:13 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
  •