RhinoDocPurge Method (PurgeFilter) |
Purges unused table objects from this document, the same way the Purge command does.
Namespace:
Rhino
Assembly:
RhinoCommon (in RhinoCommon.dll)
Syntaxpublic PurgeStatistics Purge(
PurgeFilter filter
)
Public Function Purge (
filter As PurgeFilter
) As PurgeStatistics
Parameters
- filter
- Type: RhinoPurgeFilter
The document table object types to purge.
Return Value
Type:
PurgeStatisticsWhat was purged.
Remarks
The order in which the table object types are purged matters, and purging one type
can make another type purgeable, so this purges everything filter
asks for in a single operation.
Examplesvar stats = doc.Purge(PurgeFilter.Layers | PurgeFilter.Materials);
RhinoApp.WriteLine($"Purged {stats.PurgedCount(PurgeFilter.Layers)} layers.");
See Also