Skip to content

Preferences

app.Preferences

Specifies the preferred options for AutoCAD, FreeHand, PDF, and Photoshop files.


app.preferences.AutoCADFileOptions

Options to use when opening or placing an AutoCAD file.

OpenOptionsAutoCAD; read-only.


app.preferences.FreeHandFileOptions

Options to use when opening or placing a FreeHand file.

OpenOptionsFreeHand; read-only.


app.preferences.parent

The parent of this object.

object; read-only.


app.preferences.PDFFileOptions

Options to use when opening or placing a PDF file.

PDFFileOptions; read-only.


app.preferences.PhotoshopFileOptions

Options to use when opening or placing a Photoshop file.

PhotoshopFileOptions; read-only.


app.preferences.typename

The class name of the referenced object.

string; read-only.


app.preferences.getBooleanPreference(key)

Gets the boolean value of a given application preference.

ParameterTypeDescription
keyStringPref key of value to get

Boolean


app.preferences.getIntegerPreference(key)

Gets the integer value of a given application preference.

ParameterTypeDescription
keyStringPref key of value to get

Integer


app.preferences.getRealPreference(key)

Gets the real-number value of a given application preference.

ParameterTypeDescription
keyStringPref key of value to get

Real


app.preferences.getStringPreference(key)

Gets the string value of a given application preference.

ParameterTypeDescription
keyStringPref key of value to get

String


app.preferences.removePreference(key)

Deletes a given application preference.

ParameterTypeDescription
keyStringPref key of value to get

Nothing.


app.preferences.setBooleanPreference(key, value)

Sets the boolean value of a given application preference.

ParameterTypeDescription
keyStringPref key of value to get
valueBooleanValue to set

Nothing.


app.preferences.setIntegerPreference(key, value)

Sets the integer value of a given application preference.

ParameterTypeDescription
keyStringPref key of value to get
valueIntegerValue to set

Nothing.


app.preferences.setRealPreference(key, value)

Sets the real-number value of a given application preference.

ParameterTypeDescription
keyStringPref key of value to get
valueDoubleValue to set

Nothing.


app.preferences.setStringPreference(key, value)

Sets the string value of a given application preference.

ParameterTypeDescription
keyStringPref key of value to get
valueStringValue to set

Nothing.