Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Variant Class / CreateWorkspace Method
Name of the workspace.
In This Topic
    CreateWorkspace Method
    In This Topic
    Create a new empty workspace in this variant.
    Syntax
    public Workspace CreateWorkspace( 
       string name
    )

    Parameters

    name
    Name of the workspace.

    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.
    You can not perform this action on a document opened as read only.
    Workspace with this name already exists.
    See Also