Hi all
I've written a script dynmo to retrieve element locations and place non-hosted family instances in the same location. However, I can't find a method to automatically delete the hosted family after placing the non-hosted family in the same dynmo code.
Louis
Please mention Revit version, especially when uploading Revit files.
elements.delete should be available in recent versions of Revit/Dynamo (I want to say since 2021?) as a standard library node, and available through the archi-lab package for versions before that.
I don't know about Dynamo but we do this exact thing in C# for un-hosting our Support Families from Fabrication Parts Pipe.
I don't have access to the source code but it can be done.
One problem I have with our code is it actually deletes and replaces the Support in the same place. This means you lose any Tags and dimension's etc.
If I was to get this changed I would move the Instance say 10mm in the Z axis with disjoin ticked. Then move the instance back to original coordinates and rotation. It will then maintain Parameter values.
Can't find what you're looking for? Ask the community or share your knowledge.