MTRobin Posted June 10, 2020 Share Posted June 10, 2020 Does anyone know the procedure to create a viewport or create a section viewport? I can't find it in the do menu by text commands. I am trying to have a script open the "Create Viewport" dialogue. Thank you, Maxwell Quote Link to comment
JBenghiat Posted June 10, 2020 Share Posted June 10, 2020 VS if fairly limited if you're trying to use it in a macro-like way. You will probably need to use https://developer.vectorworks.net/index.php/VS:CreateVP, and then other various SetVP commands to set its parameters. You'll need to use object variables for some of the settings. https://developer.vectorworks.net/index.php/VS:Function_Reference#Object_Info 1 Quote Link to comment
MTRobin Posted June 10, 2020 Author Share Posted June 10, 2020 What do I need to set as the handle in the CreateVP Function? Quote Link to comment
JBenghiat Posted June 10, 2020 Share Posted June 10, 2020 The handle is the parent object where you want the Viewport to appear, a layer or a group on a layer. https://developer.vectorworks.net/index.php/VS:ActLayer https://developer.vectorworks.net/index.php/VS:GetLayerByName Quote Link to comment
MTRobin Posted June 10, 2020 Author Share Posted June 10, 2020 Ah! Got it. Thanks! 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.