Workspaces.add Method

Parent Object: Workspaces
Defined in namespace "adsk::core" and the header file is <Core/UserInterface/Workspaces.h>

Description

Creates a new workspace for a specific product.

Syntax

"workspaces_var" is a variable referencing a Workspaces object.
returnValue = workspaces_var.add(productType, id, name, resourceFolder)
"workspaces_var" is a variable referencing a Workspaces object.

#include <Core/UserInterface/Workspaces.h>

returnValue = workspaces_var->add(productType, id, name, resourceFolder);

Return Value

Type Description
Workspace Returns the created workspace or null if the creation failed.

Parameters

Name Type Description
productType string The name of the product this workspace will be displayed with. You can obtain a list of the available products by using the supportedProductTypes property of the Application object.
id string The unique ID for this workspace. It must be unique with respect to all other workspaces.
name string The displayed name of this workspace.
resourceFolder string The resource folder should contain two files; 49X31.png and 98x62.png. The larger is used for the Apple Retina display.

Version

Introduced in version July 2015