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

    Parameters

    name
    Name of the workdesk.

    Return Value

    New workdesk if successful, otherwise null.
    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.
    Workdesk with this name already exists.
    See Also