Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Variant Class / CreateWorkdeskFromTemplate Method
Name of the workdesk.
Path to the template file (*.hxwdt).
In This Topic
    CreateWorkdeskFromTemplate Method
    In This Topic
    Create a new workdesk from template in this variant.
    Syntax
    public Workdesk CreateWorkdeskFromTemplate( 
       string name,
       string templatePath
    )

    Parameters

    name
    Name of the workdesk.
    templatePath
    Path to the template file (*.hxwdt).

    Return Value

    New workdesk.
    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 operation was denied because of your license.
    Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property.
    Argument is null.
    This file was not found.
    The exception that is thrown when the file has the wrong extension.
    You can not perform this action on a document opened as read only.
    Workspace with this name already exists.
    See Also