DynamoDS / DynamoRevit

Dynamo Libraries for Revit
https://dynamobim.org
333 stars 186 forks source link

Purge node removes materials from directshape object (while cleaning an IFC link RVT) #2919

Open Teun1 opened 1 year ago

Teun1 commented 1 year ago

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:

correct script wrong