Share

Component.isLibraryItem Property

Parent Object: Component
Defined in namespace "adsk::fusion" and the header file is <Fusion/Components/Component.h>

Description

Gets whether the component was created from a fasteners library item."

Syntax

"component_var" is a variable referencing a Component object.

# Get the value of the property.
propertyValue = component_var.isLibraryItem

Property Value

This is a read only property whose value is a boolean.

Samples

Name Description
Library Item API Sample

Demonstrates how to examine library items using the API.

To use the sample, create a new Python or C++ script and copy and paste this code, replacing the existing default code. The script will search for and record all components and library items in the current project. They are displayed in a dialog when the script has finished.

Version

Introduced in version January 2024

Was this information helpful?