Efficient Parameter Sorting in Revit Families

The scenario is:

In my Revit family, I have a large number of parameters, many of which already have formulas assigned.
When I try to reorder them according to my preferred sequence, manually moving each parameter one by one is extremely slow and time-consuming.
The native Revit interface only provides sorting by ascending or descending order.

Is there any way to speed up this process using Rhino.Inside.Revit (e.g., through mapping or other methods)?

圖片

Thanks.

You can use the below inside a family doc to reorder the params as needed, i used to use it on library folders but just edited the code to work inside the family doc itself, so you can ignore the filepath input.

Will need to set a way to get the params and sort them in the way you want. (Part of the existing code can be reused to get the list of params for you to sort, will try to set it up maybe tomorrow if still needed)

RiR_ReorderFamilyParameters.gh (7.1 KB)

3 Likes

Hi @M.Tarabishy,

Sorry for the late reply — I finally had time to get back to editing RFAs.
The script you created works fabulously and has saved us a ton of time.

@Japhy — this might be a great feature to consider for a future RiR update?