APIPreferences.defaultScriptLanguage 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 script. 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.defaultScriptLanguage

# Set the value of the property.
aPIPreferences_var.defaultScriptLanguage = 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->defaultScriptLanguage();

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

Property Value

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

Version

Introduced in version October 2023