Clean Method (IDocument)

Clean Method (IDocument) | Send Feedback
See Also

EntityTypesForClean
  Types of objects to purge as defined in dsCleanObjectType_e; 0 for all types

DeleteDependedEntities
  True to purge dependent objects, false to not

Purges this document of the objects that are defined or loaded but not used.

# Syntax

Visual Basic |
--- | ---
    Sub Clean( _
       ByVal EntityTypesForClean As System.Integer, _
       ByVal DeleteDependedEntities As System.Boolean _
    )

C# |
--- | ---
    void Clean(
       System.int EntityTypesForClean,
       System.bool DeleteDependedEntities
    )

JavaScript |
--- | ---
    Clean(
       EntityTypesForClean : Number,
       DeleteDependedEntities : Boolean
    )

COM native C++ |
--- | ---
    HRESULT Clean(
       LONG EntityTypesForClean,
       VARIANT_BOOL DeleteDependedEntities
    )

C++ |
--- | ---
    DSRESULT Clean(
       long EntityTypesForClean,
       bool DeleteDependedEntities
    )

#### Parameters

EntityTypesForClean
  Types of objects to purge as defined in dsCleanObjectType_e; 0 for all types
DeleteDependedEntities
  True to purge dependent objects, false to not

# See Also

####

IDocument Interface
IDocument Members

# Availability

DraftSight V1R1.4