DynamoRevit
DynamoRevit copied to clipboard
Purge node removes materials from directshape object (while cleaning an IFC link RVT)
Dynamo version 2.12.1.8411
Revit version 2022.1.3
Operating system Windows 10
What did you do?
Cleaning up a linked IFC RVT file .. (Removing small objects and removing duplicate assemblies. Adding text to filter out some objects in my RVT. etc.) And finally using the native purge node.
What did you expect to see?
A normal purge like the native Revit one. So every direct shape (that's what link IFC creates) still has it's original material
What did you see instead?
The purge node removes more materials then the native Revit. Materials from direct shapes get removed. So the directshapes don't have there original material anymore and get a container material instead. (i think)
A directshape is a strange thing in Revit. It has geometry, materials and a name etc. But natively you cannot change it. And perhaps it does not show up while searching (in a normal way) for purgeable stuff?
The node from GeniusLoci also does not work. So I use the old Purge Unused UI from GeniusLoci again.
I would use the native Document.PurgeUnused node again in this script if:
- it finds the correct materials like the Revit UI can.
- or if there is an option to skip certain user specified categories from beeing purged .. like materials ! < this would be a nice add