Jump to content

Recommended Posts

Two options:

1. Create a Custom Selection Script that only selects Viewport on the active layer. YOu can then hit the Update button in the OIP and update them all at the same time.

2. If you don't care about changing the selection state of the objects, you could try this script.

Procedure UpdateSheetLayerVPs;

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

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

{Licensed under the GNU Lesser General Public License}

Begin

DSelectAll;

SelectObj((ST=REGVIEWPORT));

While FSActLayer<>Nil do

Begin

UpdateVP(FSActLayer);

SetDSelect(FSActLayer);

End;

End;

Run(UpdateSheetLayerVPs);

Pat

Link to comment

It looks like the one I sent yesterday should not have handled section viewports. Try this one instead.

Pat

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);

Link to comment

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...