jcprovp Posted December 2, 2016 Share Posted December 2, 2016 Hi Everyone, I am looking for a script to create a veiwport via the view drop down menu from a previously selected object. Any help would be appreciated. Quote Link to comment
Pat Stanford Posted December 2, 2016 Share Posted December 2, 2016 I don't understand. Please explain better what you are trying to do and we can probably help. 1. View Drop Down Menu - Do you mean just the View menu? If so, isn't there a command there already to create a viewport? 2. Previously Selected Object - I understand what this is. Normally when you have an object selected and run the Viewport command it uses the object as the crop object. What do you want to do differently? Quote Link to comment
jcprovp Posted December 2, 2016 Author Share Posted December 2, 2016 Nothing different i just wanted to add that whole sequence as a single command in my script window so i don't have to go through the drop down menu to create a viewport. Quote Link to comment
Pat Stanford Posted December 2, 2016 Share Posted December 2, 2016 Two options. 1. If you can live (or prefer) the dialog box to open you can do it in a single line of DoMenuTextByName('Create Viewport'); 2. If you want to skip the dialog box, check out all of the Viewport functions in the GROUPS section of the Vectorscript Function Reference. You will need to create the viewport, assign the crop object, get the existing Layer and Class visibilities and set the viewport visibilities to match. Not hard, but kind of tedious. Let me know if you need more help. Quote Link to comment
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.