Does anyone know how to purge families itselfs (not the project where they are)? I’m trying to, with the dynamo open in the project where the families are, open all the families, purge them and then load them back to the same project
I tried all of this nodes:
but none of them seams to work with families… sometimes I get “null” others I get
“Warning: Document.Purge operation failed.
Modifying is forbidden because the document has no open transaction”
I tried this routine too:
The following graph will load a family from a directory, delete all unused Family and Family Types of a Category, then Save and/or Load the family into the current project.
Here is the core code in the “Open Document & Clean” node:
from Autodesk.Revit.DB import *
But then I get a list of empty lists
Ps. I noticed some people have tried a while ago:
Hello. New to Dynamo here so go easy please.
I am hoping that I can use Dynamo to achieve the following - opening each family loaded into a model, ungrouping all elements, purging, and loading them back into the model. Am I being too optimistic?
This is because a job we’re working on has got 2300+ families loaded - it is a historic building with a lot of bespoke content. The company who produced the point cloud based 3D survey grouped all elements in each family before saving it. I have worked…
Last I heard Purge is not available in the API.
You can play the dangerous game of checking for unplaced family types/elements and deleting them but that’s not suggested.
Does any one have a clue?
Thanks a lot