Create and delete family types for revit familys in a folder

So i have to create several types for several different familys
i’ll better explain it in the attached picture.
I would be glad if anybody could help me on this one

Managed to do this. But it is returning me empty lists…
I would still need to delete the existing types

That node dont take files as input, it takes family types as input.

1 Like

Is there a node that does the same thing but works with files as input?

I dont think so… but it should be doable to code it in python…

an idea could be to use DanEDU.Loadfamily, then use those families in combination with the springs node… then use DanEDU.Savefamily… in a dummy project

1 Like

Unfortunetely i don’t know anything about python… so i guess i’ll have to load the families into a project. Create the types from there and then use that method you thought me before to export those familys

I think that would be doable… and maybe the most flexible in the long run :slight_smile:

1 Like

So i did that… and it still didn’t work… Any ideas?

Managed to do that. But how do i delete a family type?
Since all the familys are a copy from one family. they all have one type in common. I need to mass delete it.
Thanks for your help!

I am afraid you need coding… if I find the time, I will try to look into it. I cant promise anything…

1 Like

It just came to my mind… what about “Element.Delete”

I have this graph for “cleaning” line patterns in projects, it must be doable to resuse parts from that :slight_smile:

an Idea, rename all families after loading to include “dummy”, then make the copy with the spring node and the “real” names. Then search all types including “dummy” in their name, delete them… end by saving the remaining families.

1 Like

I realized i was doing a mistake… Could you help me ?

Tryed to do that through Dicionary function but it didn’t work

Relaunched Dynamo and that worked. Now i’ll try what you suggested @erfajo

Found the solution.
Here it is

Glad that all of my suggestions worked so you could mark yourself as the solution…

1 Like

I think that the idea for the solution marking is that we do it in one way that future user’s come to the topic and quickly find the solution for the issue.
Being so, i marked my self as the solution, because it had the most straightforward way of troubleshooting what the topic intends to do.
It doesn’t mean i have any credits about it. Of course it belongs to you @erfajo


I want to delete some families ( Mechanical and electrical ones) that i am not using ,

I just realized i can’t do them by right click and delet.

Any idea …
I also have dynamo but never used it thorough Revit ?