Trying to rename "Type" parameter in a Revit Family

I am trying to rename a Revit family, and the family type using GH.
It will successfully rename the family name,
It reports that it has renamed the type name, but it in fact does not rename it.
Any help would be appreciated.


You’ll need to rename the Type Element (vs the instance)

ARGH! That did it, something so simple…
Its been driving me crazy for like 2hours trying to work around it and it was that!

Thanks.
image
image

1 Like

Yeah, trips people up on the Parameters as well, Type Parameters are on the Type Element, Instance has a different set of Parameters.

Its kind of counter-intuitive to think it wants the “type” input in “element” I didnt even think of it to be honest but I see why it works now.

Also I read a lot of documentation in the rhino.inside documentation and nothing really covered quite this case of renaming so I went through a lot of trials to get there.

Also its not so intuitive, I dont know why, but it would not take the element directly I had to reference the family again to get the type name out.

Yeah, the hierarchy in Revit can be a bit difficult to navigate. Experience and working thru a few scripts is the only way I have been able to really get my head around it.

The key is to always think Category > Family > Type > Instance. Everything is breaks down in Revit that way. This is covered in this guide: https://www.rhino3d.com/inside/revit/1.0/guides/revit-revit

Here is how to deal with types:

There are some system families that can nest the Family/Type/Instance within other types. This can make it even more complicated; Grid bubbles and notes are a good example of this.