Dropdown list for type parameters?

Hello all,

im beginner and i want to ask something please : can i show a drop down list beside the type parameters in a wall family for example ,and the content of this drop down list is driven from an external excel file.is that possible ? i think as addin . but is it possible to change the way revit itself shows it ?

in the attached image above is an example i have the type parameter called roughness . i want the field beside the name to be a dropdown list , and these paramters taken from an excel file. would appreciate any help

Been ages since I looked into this. Things may have changed with .NET10 and other updates, but when I checked the UX of tool pallets cannot be modified directly - you would have to write an add-in which alters every way which the UI can be trigger, and that means a LOT of coding which will have to be built and maintained in perpetuity (assume two significant updates a year across all Revit releases for something this ‘deep’). Keep in mind you’ll need go either figure out how to trigger nested UI components or build your own for all of those as well.

All in I recommend building your own add-in and leaving the existing UX alone.

2 Likes

@Mav For a Dynamo based workflow you might try investigating.

  1. In Excel, setup columns for the Family and Type Names, with their equivalient Roughness value
  2. In Revit, add a Project Parameter for the Roughness, looks like you have already
  3. In Dynamo, retrieve the Family Types
    1. Retrieve all Family and Type Names
    2. Import and format your Excel Data to be a mapped Dictionary with the keys being the Family, then value being a nested Dictionary with the keys as Type Names and values as the Roughness.
    3. Use the retrieved Family and Type Names to lookup the Roughness from your Dictionary
    4. Set the parameter values for the Family Types based on this lookup.

You would then run this once you have your Excel and Revit configured, and be able to just run it again to bulk update values if anything changes. It’s actually quite a good exercise for a beginner, just break down your steps and check-in with the forum if you get stuck. :+1:

Its not a UX solution but if the end result is you get the data where it is needed then you have succeeded.

1 Like