Josh Schulman Posted February 27, 2019 Share Posted February 27, 2019 I added this to an old thread and I thought I might need to re-up it here. How do I add a menu tool from the OIP as an Object Context right click option? I would like to add Select System Objects for Braceworks Truss as a right click option. Quote Link to comment
zoomer Posted February 27, 2019 Share Posted February 27, 2019 You can add comands to the right click options by editing your Workspace. In the menu section there are to options for right click menu, a) when you hover over an object (or having selected ?) b) nothing selected in blank screen I have totally customized (and even more re-ordered) both options in my custom workspace ... Quote Link to comment
Josh Schulman Posted February 28, 2019 Author Share Posted February 28, 2019 Hey Zoomer, I'm trying to add a command that is only available in the OIP when a Braceworks Truss object is selected. I've added custom menu commands, but this is an OIP command. See the top screen shot above. Quote Link to comment
zoomer Posted February 28, 2019 Share Posted February 28, 2019 Ah, sorry. So if that Command isn't listed in Workspace Editor under "All Commands", I do not know any way how to include that into the RMB option menu. But perhaps @Pat Stanford has a script or an another idea for that. Quote Link to comment
Pat Stanford Posted March 10, 2019 Share Posted March 10, 2019 It appears that this should be a pretty easy thing to write a script for, but I don't have enough Braceworks experience to be able to figure it out. If you can upload a file with a couple of simply truss systems so I can look at the record formats and see what the command actually does I will see if I can replicate in a right clickable format. 1 Quote Link to comment
Josh Schulman Posted March 11, 2019 Author Share Posted March 11, 2019 Hi @Pat Stanford Here is a file with a simple truss system. Please let me know how else I can help out. BW Test File.vwx Quote Link to comment
Sam Jones Posted March 11, 2019 Share Posted March 11, 2019 Pat, Let me know what you come up with. The trick here is to script the button push in the OIP. Setting text and boolean values in the parameter fields is pretty straight forward for VS, but scripting the button push, the button being a non parameter widget, has got me stumped. I'm sure Josh has an answer. Quote Link to comment
Pat Stanford Posted March 11, 2019 Share Posted March 11, 2019 Hi Sam, I am looking at it the other way around. I am looking at the records and seeing if I can determine what the button does and then script that same action. It appears that each part of the System stores the UUID of the parts it is attached to. So you should be able to walk the UUID and select things until you don't have any more unselected UUIDs. But it may be more than this as I have only spent about 5 minutes looking at the record formats. I am open to other suggestions. Quote Link to comment
Sam Jones Posted March 11, 2019 Share Posted March 11, 2019 Good Luck with that. I have found the UUIDs in the TrussItem record to be opaque. Very interested in what you find out. Quote Link to comment
LSWHEELDON Posted December 14, 2020 Share Posted December 14, 2020 It looks like you guys got that one figured out and added into 2021. Nice work! Now, I'd like to throw another request out there for the "Select System Objects" command, if I may... Is there a way to add a customizable keyboard command to run this function? Quote Link to comment
Sam Jones Posted December 14, 2020 Share Posted December 14, 2020 I don't see a way to do that. That command doesn't seem to show up in the workspace editor. However, you can do that with the AutoPlot command "Sel Truss System Elements". :-) Quote Link to comment
LSWHEELDON Posted August 1, 2022 Share Posted August 1, 2022 Hi Josh, Did you ever get a solution to this Select System Objects conundrum? 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.