APIPreferences.objectType Property

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

Description

This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object.

It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType():

Syntax

"aPIPreferences_var" is a variable referencing an APIPreferences object.

# Get the value of the property.
propertyValue = aPIPreferences_var.objectType
"aPIPreferences_var" is a variable referencing an APIPreferences object.
#include <Core/Application/APIPreferences.h>

// Get the value of the property.
string propertyValue = aPIPreferences_var->objectType();

Property Value

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

Version

Introduced in version October 2023