Defining and managing Shared/Project Parameters

Hello,

I’m using the Define Shared Parameter component.

First, it’s confusing how the added parameter is actually shown under the project parameters and not under the shared parameters. But I understand why this is, as a shared parameter is normally only created by loading in your shared parameter .txt file whereas RiR is short cutting this process.

image

image

Second, I’m wondering if this component could have some expanded options, to allow the user to set the Type of Parameter (Text, Integer, Number, Area, Volume, Length) and also set the Group parameter under info (Data, Dimensions, Text). Or, if adding in all these options presents too much complexity, could the ‘Group parameter under:’ be driven by the Type of Parameter? For example, Text is grouped under Text, Integer/Number is grouped under Data and Area/Volume/Length is grouped under Dimensions?

Thanks,

Dan

@lignindes Your comments and confusion makes complete sense. Currently Revit API does not have any support to create Project Parameters programatically. The closest workaround was to add a component uses the .txt Shared Parameter definition mechanism to define a new Shared Parameter and add that to the project. Showing shared parameters under the Project Parameters window is normal Revit behaviour. The Shared Parameters manage window, manages the parameter “definition”, whereas, the Project Parameter window manages how these “predefined” parameters are “bound” to Revit categories.

Added a request to add more configuration on this component for parameter storage type, grouping, and bound Revit categories:

@eirannejad,

Thank you for your clear and complete reply, per your usual!

Dan

1 Like