DataHubs.itemById Method

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

Description

Returns the hub specified using the ID of the hub.

Syntax

"dataHubs_var" is a variable referencing a DataHubs object.
returnValue = dataHubs_var.itemById(id)
"dataHubs_var" is a variable referencing a DataHubs object.

#include <Core/Dashboard/DataHubs.h>

returnValue = dataHubs_var->itemById(id);

Return Value

Type Description
DataHub Returns the hub or null if a hub with the specified ID is not found.

Parameters

Name Type Description
id string The ID of the hub to return. This is the same ID used by the APS Data Management API.

Version

Introduced in version December 2020