Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Project Class / GetActiveDocument Method
In This Topic
    GetActiveDocument Method
    In This Topic
    Get document which is active in the running instance of Harness ProD.
    Syntax
    public Document GetActiveDocument()

    Return Value

    Active document in the running instance of Harness ProD. Null if no document is active or no instance of Harness ProD is running.
    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.

    See Also