Copy viewport settings between two viewports?

I am attempting to copy the viewport frozen layer settings between two separate viewports.  I know I can copy a viewport, but in this case, it is a circular viewport that I created to show a zoomed-in detail of the main view.  So, I have to create that viewport from scratch, and then copy the viewport settings.

I  know in Acad, you just use the matchprop command, but in BricsCAD that doesn't seem to work.  Is there a LISP or other macro to do this. None of my searches have turned anything.

-Joe

Comments

  • I usually save a layer state in one, then restore that layer state in the new one(s). I don't think that preserves per-vp overrides. Roy's link seems much more complete.
  • Thank you both for the reply.

    Roy, I recall your program from back when AutoCAD LT would not copy the layer states when you copied a viewport.  Your program was a great work-around.

    -Joe
  • I have just uploaded a new version of BKG_Viewport. If you are using BricsCAD V14.1.09 or higher you will need the new version.
  •  Mr. Gebbinck, I don't recall if I always had this issue, but at least currently I cannot copy viewport settings from a viewport on one layout to another viewport on a separate layout.

    Does your program have this functionality?

    -Joe
  •  I will add that Express tools Viewport Synchronize function does not copy viewport settings to viewports on separate layouts. 

    I just spent an hour splitting a page with several viewports on it to separate viewports by first copying the layout, and then deleting the unneeded views on each layer. But, I didn't realize that all my viewport overrides were being destroyed in the process.  I still have the original page, so if I can copy the settings, then I will be OK.  But, when viewports are on separate layouts, that seems to be a problem for any of the utilities I have tried.

    Note that I have tried the process of saving the layer states, but that only saves the on-off status of viewports, not the overrides of things like color or lineweight.

    -Joe

  • Joe,

    Since version 20130728 BKG_Viewport has the functionality you wish for.
    The procedure step by step:
    1.
    Start the BKG_ViewportMatch command and select a source viewport. If a viewport is active it will automatically be selected as the source.
    2.
    Cancel the dialog.
    3.
    Go to a different layout.
    4.
    Important: Make sure that no viewport is active.
    5.
    Restart the BKG_ViewportMatch command and press Enter to use the stored 'Match Data'.
    6.
    Select one or more viewports to apply the data to.
    7.
    Repeat from step 3 to use the same data again or from step 1 to use different data.
  • It worked perfectly.  I had somehow overlooked that functionality, that I now see is described on the command prompt. 

    The age of the prior version of your program that I used is in question.   The install process is a bit involved, and I know that in the past, my efforts to do it were not always successful, and perhaps a little messy. Efforts to troubleshoot BricsCAD would occasionally break my add-ons, and require re-installing them.  So, I tried this time to remove all traces of the older versions of your utilities, and do a clean install.

    Your utilities have been a life saver on more than one occasion.  Thank you very  much for them.

    -Joe

  • Is it possible to copy the viewport settings, such as viewport color, from one viewport to another in another file (with the same layers)?
    with Regards
    GiG
  • Is it possible to copy the viewport settings, such as viewport color, from one viewport to another in another file (with the same layers)?
    with Regards
    GiG

    Mr Gibbinc is the obvious person to answer this, but I recall that many programs keep their variables local to the drawing where they are active.  If that is the case, then your idea would not work.  The obvious way to get a quick answer is to try it.

    Another possible solution is to create a new tab, with the "from template" option.  Then, you will be prompted to select a drawing, and finally a tab in that drawing. Then you will have a new tab with the viewport with the properties you are seeking. So, then you can use BKG_Viewport to copy its settings.

    -Joe
This discussion has been closed.