Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Project Class / CreateAttachedDocument Method
Path to the document.
In This Topic
    CreateAttachedDocument Method (Project)
    In This Topic
    Create new attached document in this project.
    Syntax
    public AttachedDocument CreateAttachedDocument( 
       string path
    )

    Parameters

    path
    Path to the document.

    Return Value

    New attached 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.

    The operation was not successful.
    Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property.
    This file was not found.
    You can not perform this action on a document opened as read only.
    See Also