Property.name Property

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

Description

Returns the name of this property as seen in the user interface. This name is localized and can change based on the current language

Syntax

"property_var" is a variable referencing a Property object.

# Get the value of the property.
propertyValue = property_var.name
"property_var" is a variable referencing a Property object.
#include <Core/Application/Property.h>

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

Property Value

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

Samples

Name Description
Library item API Sample

Demonstrates using library items using the API.

To use the sample, create a new Python or C++ script and copy and paste this code, replacing the default code. The sample also used an saved user document with Library component(s). Create document, save it and insert Library item into the document. When running the script, have a that design open.

Version

Introduced in version August 2014