benzson11 Posted October 28 Posted October 28 Hi, I have multiple drawings with 1 layout and 2 viewports. I'm trying to find a ways to select the viewport and set to active viewports without double clicking. I'm using this to select the viewport. (sssetfirst nil (ssget "_x" '((0 . "VIEWPORT")(8 . "VPORT_TCD_PROPOSED")))) But I can not find a command that could set my selected viewport to active. If I can resolve this I can now use VPLAYER command to an specific viewport. Any suggestion or solution will be much appriciated. Thank you. Quote
benzson11 Posted October 28 Author Posted October 28 I found a work around to apply the vplayer for specific viewport. If anyone have better way of doing this I will really appriciate your input. Quote
BIGAL Posted October 28 Posted October 28 In a layout you can get the viewports, (ssget "X" '((0 . "VIEWPORT")(cons 410 (getvar 'ctab)))) the 410 restricts to the current layout tab. if you have 2 Mviews the ssget will return 3 viewports as Pspace is the first viewport. So you can set a viewport as current, now where is it, then using lisp do the vplayer. 1 Quote
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.