VvierA Posted October 7, 2012 Share Posted October 7, 2012 Hello, I am a beginner and to start with vectorscript I'd like to make a simple 2D path object. It should work like the standard Vectorworks polygon tool but the polygon should close automatically after creation. I succeeded to generate a new 'empty' 2d path object with no code yet and to integrate this new tool in my workspace. Although there is no code yet, I can draw a 2D polygon shape. The problem is: the shape is invisible. It shows no lines and no filling. I can select it by 'select all' and it is shown in the info palette but it is not possible to change the appearance to make it visible. Question: What code do I have to add to make the path visible respectively to make this 'generic' 2d path behave like the original 2d polygon tool? Kind regards VvierA Quote Link to comment
Dieter @ DWorks Posted October 17, 2012 Share Posted October 17, 2012 (edited) Use GetCustomObjectPath to get the path you have drawn. Then you can duplicate it to use it in your pio. there is a function reference at http://developer.vectorworks.net Edited October 17, 2012 by DWorks 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.