scobb Posted November 8, 2024 Share Posted November 8, 2024 I'd like to give users the option to rotate a wall box symbol so that we maintain control over how the device IDs are displayed (see attached image). I've tried using auto rotate for the text, but it changes the location of text fields. Ideally, it would be nice to change the visibility or orientation of components in the symbol based upon a drop down menu in the OID panel for the symbol, but I'm not sure how to approach that. What is the best way to handle this? Right now I have four different symbols based upon the desired orientation. It would be nice to have one symbol with four orientation options. Quote Link to comment
Pat Stanford Posted November 9, 2024 Share Posted November 9, 2024 You need to create either a Marionette object or a Plugin Object. You can have either set to pick and use one of your four symbols or you can create them to actually draw the object based on the settings from the OIP. Do you have any programming experience? Quote Link to comment
scobb Posted November 12, 2024 Author Share Posted November 12, 2024 I have a lot of programming experience with PHP, Javascript, Jquery, etc... I don't think it would take much for me to pick up Marionette, but I'll have to dig into how that works in Vectorworks. Quote Link to comment
michaelk Posted November 12, 2024 Share Posted November 12, 2024 If you already have programming experience I think you'll find it easier to use Python or Pascal (believe it or not!) than Marionette. Marionette is a graphical programming language. 1 Quote Link to comment
Pat Stanford Posted November 12, 2024 Share Posted November 12, 2024 If you already can program, the biggest learning hurdles are the idea of "Handles" to identify objects and "container objects" that have a handle but also contain other objects and how to move between the different levels. This thread has a pretty good (no modesty here) tutorial on creating a point type PIO and another on adding that to a workspace. You will need to enhance the CreateText portion of the script to draw your wall box symbols and probably to rotate the parts according to the PIO rotation. Inside the PIO all locations are offset from a local 0,0 point at the insertion point of the PIO. Ask as you need more help. Quote Link to comment
Pat Stanford Posted November 12, 2024 Share Posted November 12, 2024 This one might help also. 1 Quote Link to comment
scobb Posted November 12, 2024 Author Share Posted November 12, 2024 Perfect. Thank you all! I'll reach out if I hit a roadblock. 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.