Hello, I’m trying to get all of the family types under one family. I was able to isolate/get the family that I want to look at, but I can’t get the family types that are under that family (Rack Hardware - Data). Here’s a screenshot:
My end goal is to hopefully add parameters to multiple family types under the one family at the same time.
All Elements of Category returns only the placed instances. So you’re only seeing the types that have been used. Once you have the family you can use Family.Types to get all the loaded types.
Yes! Thank you it, works!
Now I’m trying to set the parameters in Revit. But I get a warning that the “parameter storage is not a string.”?
I think it’s because I don’t have data for all the family types?
The values are coming from an excel spreadsheet.
Thank you for all your help!
It’s because one of your parameters is not a text parameter. Excel is giving you strings but something (I’m guessing RU Size) doesn’t accept strings. You’ll probably have to convert those values to a number by the looks of it.
Oh that makes senses! Thank you!