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

    Parameters

    name
    Name of the workspace.
    templatePath
    Path to the template file (*.hxwst).

    Return Value

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