Component.name Property

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

Description

Property that gets and sets the name of this component. This is the name shown in the browser for each occurrence referencing this component.

Syntax

"component_var" is a variable referencing a Component object.

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

# Set the value of the property.
component_var.name = propertyValue
"component_var" is a variable referencing a Component object.
#include <Fusion/Components/Component.h>

// Get the value of the property.
string propertyValue = component_var->name();

// Set the value of the property, where value_var is a string.
bool returnValue = component_var->name(value_var);

Property Value

This is a read/write property whose value is a string.

Samples

Name Description
Delete Empty Components Deletes empty components from the active design.

Version

Introduced in version August 2014