Jump to content

Recommended Posts

Posted

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.
image.thumb.png.82c586c780b8080e4d6c8d8b10e614c4.png

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.

Posted

I found a work around to apply the vplayer for specific viewport.
image.thumb.png.22ff15f1d70e57a21d63c39bcd42c12b.png

 

If anyone have better way of doing this I will really appriciate your input.

Posted

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.

 

 

 

  • Like 1

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