Get family parameters from the family in the same order as shown in the Revit project

Good day, I’m learning how to use dynamo. I want to get family parameters from the family in the same order as shown in the Revit project. Here is the order and node:

How can I get the right order as shown in the image. Thank you so much

Welcome to the community!

The only option that I am aware of is to sort the parameters in the element family (see clip) and reload into your project. Then in your script, you sort the parameters by their names in the same order.

image

That’s probably not going to work as OP wishes, because in Revit they will still be sorted first by group, then alphabetically, while in Dynamo they’ll be sorted alphabetically all the way down, unless they also sort by group in Dynamo itself.

@truongtung8197 could you detail why is this a requirement? I’m asking because Dynamo has it’s own workflow, which should not be affected by how Revit displays the information, and vice-versa.

That said, Revit can seem completely random with its OOTB parameter sorting (which was adressed in RVT24 with the alphabetical sorting, as shown by @staylor), but it has something to do with IDs.

1 Like

Good point @pedruccioli ! I didn’t think about the parameter groups.

Thank you for the info! My main purpose is to extract the dimensions from the family type and export them to Excel so my sub-contractor can fill out the Excel file. I will then re-import it back into Dynamo. The reason it must be in order is because it matches the drawing, which makes it easier for them to fill out and for us to check.

I guess I can change the names of family types to something like “1. Length,” “2. Width” to control the order in Dynamo. If you have any better ideas on how to achieve this or maintain the correct order, I would appreciate it! Thank you both, @pedruccioli and @staylor .

1 Like

I would set up a schedule and have the fields arranged however you want and export that out to excel. Then after you import the spreadsheet and update the parameters, use the schedule to recheck the values against the spreadsheet.

1 Like

I’m with @staylor here. Probably not every parameter needs to be manipulated, so you could control your workflow with pre-determined fields in schedules. Because Excel is more prone to human error, and since you mentioned “dimensions”, it’s probably better to restrict what your contractor can manipulate, so you don’t break your project.

If that’s not the case, and you need absolutelly everything on excel, I would:

  • keep it alphabetical all the way, since the volume of columns could get confusing on its on, so why not give it a universal order, or;
  • create separate sheets for each parameter group, and list them alphabetically in there. This is what will probably come closer to your original request, because it’s the closer you’ll get to Revit’s UI.
1 Like