Components.itemById Method
Parent Object:
ComponentsDefined in namespace "adsk::fusion" and the header file is <Fusion/Components/Components.h>
Description
Returns the Component that has the specified ID.
Syntax
"components_var" is a variable referencing a Components object.returnValue = components_var.itemById(id)
|
"components_var" is a variable referencing a Components object.
#include <Fusion/Components/Components.h>
returnValue = components_var->itemById(id);
|
Return Value
Component |
Returns the specified Component or null in the case where there isn't a Component with the specified ID in this Design. |
Parameters
id |
string |
The ID of the Component to get. This is the same id used by PIM (Product Information Model). |
Version
Introduced in version December 2020