Jump to content

Macro/Script for Automatically setting 2 Vport Views


Recommended Posts

marco is stopping after a user input. i have 2 view ports in one drawing, my macro unlocks all vports, then sets the first view then user input to select the correct viewport, then set the second view then user input to select the correct viewport, the script will then run on to save the drawing, saveas ...... then start over.

The problem is the command stops after i have selected the viewport saying invalid selection as below. dows anyone know how i can fix this!!

Command: -view

Enter an option [?/Delete/Orthographic/Restore/Save/sEttings/Window]: R

Enter view name to restore: "Sheet_1T"

Restoring Model space view.

Select Viewport for view: \

*Invalid selection*

Expects a point or Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon/Group

Select Viewport for view:

Command:

here is the macro i'm using:

 
Tilemode
0
zoom
extents
-vports
L
OFF
_ALL
-view
R
"Sheet_1T"
\
_.PSPACE
-view
R
"Sheet_1B"
\ 

-vports
l
on
_all
_.pspace

 

another option could be to name the viewports somehow and include the viewport names into the script but i'm can't quiet think how i would do this!

any help would be great thanks

Edited by Spinxy
Link to comment
Share on other sites

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...