Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / RevisionableDocument Class / Promote Method
In This Topic
    Promote Method
    In This Topic
    If this document is part of a revision, it gets promoted to a normal document.
    Syntax
    public RevisionableDocument Promote()

    Return Value

    New promoted document.
    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.

    Only revisions can be promoted. IsRevision must be true.
    The operation was not successful.
    Remarks
    Document will be moved among other documents and you will be able to open it in read-write mode.
    See Also