Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Project Class / CreateAttachedDocument Method
Path to the document.
Create attached document in background without showing it in UI. Use when creating 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
    CreateAttachedDocument Method (Project)
    In This Topic
    Create new attached document in this project.
    Syntax
    public AttachedDocument CreateAttachedDocument( 
       string path,
       bool silent
    )

    Parameters

    path
    Path to the document.
    silent
    Create attached document in background without showing it in UI. Use when creating 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.

    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