How to find the nesting level of Revit families?

You could either save the Python script @SeanP provided you into a Custom Node (.dyf), or modify the Python to handle lists; if this is your first experience with utilizing a Python script within Dynamo I’d recommend giving the latter a try. This post gives a good breakdown of modifying Python scripts in Dynamo to handle lists and the section on Python scripts in Dynamo in the Dynamo primer has an example as well!

6 Likes