DataFiles.itemById Method

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

Description

Returns the file specified using the ID or version ID of the file.

Syntax

"dataFiles_var" is a variable referencing a DataFiles object.
returnValue = dataFiles_var.itemById(id)
"dataFiles_var" is a variable referencing a DataFiles object.

#include <Core/Dashboard/DataFiles.h>

returnValue = dataFiles_var->itemById(id);

Return Value

Type Description
DataFile Returns the file or null if a file with the specified ID is not found.

Parameters

Name Type Description
id string The ID or version ID of the file to return. This is the same ID used by the Forge Data Management API.

Version

Introduced in version December 2020