DCarpenter Posted October 10, 2019 Share Posted October 10, 2019 (edited) Sorry to trouble you, just hitting a wall. I created a 2D Path Object (called 'Skirting') that creates a drape line along its defined 2D path. Now I'm trying to create a command that converts any selected polygon, rectangle, or line, into the 'Skirting' PIO, by taking the vertices of those objects and inserting them into the 'Skirting' PIO. The only problem is I can't figure out is how to insert those vertices that I have stored in a vector array into the PIO after calling it with TF:=CallToolByName('Skirting'); Any thoughts? Dave Edited October 10, 2019 by DCarpenter Quote Link to comment
JBenghiat Posted October 10, 2019 Share Posted October 10, 2019 You can just run this command: http://developer.vectorworks.net/index.php/VS:CreateCustomObjectPath which will create the plug-in instance and insert the path in the new object's path group. Check for a valid poly first. You may have to convert rectangles and lines into polygons. Quote Link to comment
DCarpenter Posted October 10, 2019 Author Share Posted October 10, 2019 Thanks I guess I'll try it, but I thought that command worked along side CreateCustomObjectProfile, which would be more of a extrude along a path sort of thing, which is why I thought I was barking up the wrong tree. I'll give it a shot. Thank you. Quote Link to comment
JBenghiat Posted October 10, 2019 Share Posted October 10, 2019 You should be able to just pass nil to the profile. You can also insert with CreateCustomObject() and then set the path group. In that case, you have to deal with the path coordinates being relative to the object's insertion point. i.e. move the path to the origin, then set to the profile group. Quote Link to comment
DCarpenter Posted November 20, 2019 Author Share Posted November 20, 2019 Thanks for helping this elementary kid out with his math problems. Your a big help, 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.