Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Document Class / Save Method
Example
In This Topic
    Save Method (Document)
    In This Topic
    Save this document.
    Syntax
    public virtual void Save()
    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.

    This file is not opened.
    You can not perform this action on a document opened as read only.
    The operation was not successful.
    Remarks

    If this document was just added or project structure has changed, you also need to save the project.

    Document must be opened. Document can not be opened in read-only mode.

    Example
    document.Open(false, false);
    
    // Do something with the document...
    
    // Save the changes.
    document.Save();
    // Do not forget to close the document.
    document.Close();
    See Also