Jump to content
Sign in to follow this  
Pat Stanford

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}




While FSActLayer<>Nil do









Share this post

Link to post

Hi Pat,

This script is very handy.

I was wanting to just update viewports of a certain class.

When put


I get an error. How would this be done?

Thanks in Advance


Share this post

Link to post

UpdateVP requires a handle to a viewport. You are trying to pass it a class.

You need to change the Selct Obj line.

SelectObj(((ST=REGVIEWPORT) or (ST=SECTVIEWPORT) and (c='Elev.VP)));

Share this post

Link to post

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.

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.

Sign in to follow this  


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...