Spinxy Posted April 2, 2012 Share Posted April 2, 2012 (edited) 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 April 2, 2012 by Spinxy Quote Link to comment Share on other sites More sharing options...
SLW210 Posted April 2, 2012 Share Posted April 2, 2012 Please read the CODE POSTING GUIDELINES and edit your post. It will make it easier to read. Quote Link to comment Share on other sites More sharing options...
Spinxy Posted April 2, 2012 Author Share Posted April 2, 2012 Cheers post edited Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.