See the top rated post in this thread. Click here

Results 1 to 2 of 2

Thread: Restoring Layer-State's to multiple viewports at once.

  1. #1
    Member
    Join Date
    2018-08
    Posts
    6
    Login to Give a bone
    0

    Default Restoring Layer-State's to multiple viewports at once.

    I have been told this may be the place for this. This thread is also located in
    autocad General Discussion

    We have several viewports in a single drawing. At the end of the job, we have to change each viewport to layerstate A, B or C.
    Our process is; open the viewport, restore the layerstate we need, close the viewport. Move on to the next. This works except opening and closing viewports is slow due to file size and hampered by hardware performance.

    Is there a way to change the layerstate of multiple viewports at once, or without opening the viewports?

    I have tried a few things;

    Match Properties, but that command insists on changing the scale of the VP as well. I cannot find a toggle to fine-tune Match Properties to just change the Layer State.
    Change the layerstate of a viewport using the properties menu, but cannot find a way to change the layerstate through properties. I hoped to select all the viewports that need to be type 'A' and then modify them by using properties, like a do dynamic blocks.
    I have searched for a lisp program that will restore a viewport to a predetermined layerstate by simply clicking the viewport.



    Is there something I can try.

    Specs;

    Autocad 2019. Vanella.
    It has the Advanced steel package, but am not using it in this application

    drawings are done in model space with all layers overtop each other.
    All of the layers are named as noted,
    Viewport A has
    VPA drawings
    VPA dim
    VPA floor etc.

    VPB drawings
    VPB dim
    VPB floor etc.

    They will be filtered out using layer states in the viewports.

    There is 50 drawing per file, each drawing has 6 viewports that are in the same position on each drawing.


    With that note, as you can see by the quantity of window, opening and closing each one takes hours. it would be preferred if it can be done in batch without opening.
    If you would like a copy of the drawing, I can send one but not sure how to do that here.

  2. #2
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    1

    Default Re: Restoring Layer-State's to multiple viewports at once.

    Quote Originally Posted by Rpunturi View Post
    I have been told this may be the place for this. This thread is also located in
    http://forums.augi.com/showthread.ph...32#post1340832

Similar Threads

  1. 2019: Restoring Layer-State's to multiple viewports at once.
    By Rpunturi in forum AutoCAD General
    Replies: 5
    Last Post: 2019-03-04, 07:46 PM
  2. Layer State not restoring Color within Xref file
    By judekw in forum AutoCAD General
    Replies: 13
    Last Post: 2007-01-07, 10:52 AM
  3. Ignore XREF portion of layer name upon restoring layer state
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2006-11-08, 12:30 PM
  4. Automation of layer state Saving/Restoring
    By jrd.chapman in forum AutoLISP
    Replies: 12
    Last Post: 2006-10-26, 09:28 PM
  5. Saving Layer State in Viewports
    By carlos.manteigas in forum AutoCAD General
    Replies: 1
    Last Post: 2005-08-31, 12:37 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
  •