WorkspaceList.itemById Method

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

Description

Returns the Workspace of the specified ID.

Syntax

"workspaceList_var" is a variable referencing a WorkspaceList object.
returnValue = workspaceList_var.itemById(id)
"workspaceList_var" is a variable referencing a WorkspaceList object.

#include <Core/UserInterface/WorkspaceList.h>

returnValue = workspaceList_var->itemById(id);

Return Value

Type Description
Workspace Returns the specified workspace or null in the case where there isn't a workspace with the specified ID.

Parameters

Name Type Description
id string The ID of the workspace to get.

Version

Introduced in version August 2014