parametric.rb (10.5 KB)
I’m using the “Parametric” plugin that was created by Trimble awhile back and am attempting to modify it to suit my needs. The plugin in short allows you to create “Parametric” objects that you can edit using a context menu option that prompts the user for values.
I am having a couple issues which I’ve been trying to solve without adding a ton of unneeded complexity.
I’m unsure how to allow for the ordering of parameters within the inputbox. I’m assuming I’d need to include the proper ordering in the inheriting classes somehow but haven’t been able to come up with a simple solution.
I have a few other issues with the prompt method. One being the inability to add drop down option lists to the inputbox. I know how you do it normally but not while fitting with the structure of the Parametric code. I’ve thought maybe I need to include this in the inheriting class along with the solution for ordering parameters and override its prompt method changing it slightly but am drawing a blank on how exactly to go about doing this.
Lastly, I’d like to be able to supply Parametric objects with some data that is hidden from the user when they attempt to edit it. The reason I want to do this instead of relying on constants is because in some cases I will be creating Parametric objects automatically with data supplied from a spreadsheet. In those cases the extra data would be supplied but I don’t want to bog the user down with a ton of input options that they don’t care about.
I don’t expect anyone to do all this for me but I would greatly appreciate any suggestions anyone has to offer.