"Trouble Replacing Generic Annotation Families with Lighting Fixtures in Dynamo"

Hi everyone,

I am creating a node to replace some generic annotation families with lighting fixture families.
I started with FamilyType.ByFamilyNameAndTypeName to retrieve the annotation families, but I can’t get past this simple step. I used the node shown in the image, but it doesn’t work.

Any help would be greatly appreciated. Thanks in advance!

You’re misunderstanding what that node does. It either creates or retrieves (I forget which one at the moment) a family type based on the family name and type name provided. If you want to replace existing family instance of one family type with another family type then you need to deal with those instances and change the type.

Assuming that you only want to replace certain generic annotations, you can start with FamilyInstance.ByFamilyType to get all instances of a given generic annotation type. Then you can change the Type parameter of those instances to the new light fixture type. Keep in mind, changing element types can be a pretty major change when switching categories. You’re going from an annotation category to a model category. You will likely have a few issues to clean up.