Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Variant Class / Remove Method
Remove document in background without showing it in UI. Use when removing bigger bunch of documents at once to avoid refreshing UI constantly. You are responsible for calling the UpdateProjectStructure method at the end, otherwise the state of the project structure is undefined.
In This Topic
    Remove Method (Variant)
    In This Topic
    Remove the document.
    Syntax
    public override void Remove( 
       bool silent
    )

    Parameters

    silent
    Remove document in background without showing it in UI. Use when removing bigger bunch of documents at once to avoid refreshing UI constantly. You are responsible for calling the UpdateProjectStructure method at the end, otherwise the state of the project structure is undefined.
    Exceptions
    ExceptionDescription
    The object is in invalid state. Obtain a new one.

    Internal error of HpD or HpD API.

    IMPORTANT: Throwing this exception changes HpD Api's state to Failed.

    The file is open.
    File you are trying to open is locked by another user.
    Remarks
    You need to save the project (Save) to apply this.
    See Also