APIPreferences.defaultAddInLanguage Property

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

Description

Gets and sets the preference that controls which programming language should be used when creating a new add-in. One option is to prompt the user.

Syntax

"aPIPreferences_var" is a variable referencing an APIPreferences object.

# Get the value of the property.
propertyValue = aPIPreferences_var.defaultAddInLanguage

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

// Get the value of the property.
ProgrammingLanguages propertyValue = aPIPreferences_var->defaultAddInLanguage();

// Set the value of the property, where value_var is a ProgrammingLanguages.
bool returnValue = aPIPreferences_var->defaultAddInLanguage(value_var);

Property Value

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

Version

Introduced in version October 2023