Jump to content

Update all Viewports on a Layer


Recommended Posts

I have found the Update All Viewports command dangerous as it updated everything in the file and can take a very loooooooong time (in one case 17+ hours.) You can certainly select all the viewports and click the Update button, but if you accidentally select anything other than viewports, you don't get the button in the OIP.

This script will select and update each viewport on a sheet layer.

{*************************}

Procedure UpdateSheetLayerVPs;

{Selects, Updates and Deselects each viewport on a sheet layer}

{Revised to handle both sheet layer and section viewports}

{? 2008, Coviana, Inc - Pat Stanford pat@coviana.com}

{Licensed under the GNU Lesser General Public License}

Begin

DSelectAll;

SelectObj((ST=REGVIEWPORT) or (ST=SECTVIEWPORT));

While FSActLayer<>Nil do

Begin

UpdateVP(FSActLayer);

SetDSelect(FSActLayer);

End;

End;

Run(UpdateSheetLayerVPs);

{************************}

Pat

Link to comment
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...