Preferences
Preferences
Section titled “Preferences”app.Preferences
Description
Section titled “Description”Specifies the preferred options for AutoCAD, FreeHand, PDF, and Photoshop files.
Properties
Section titled “Properties”Preferences.AutoCADFileOptions
Section titled “Preferences.AutoCADFileOptions”app.preferences.AutoCADFileOptions
Description
Section titled “Description”Options to use when opening or placing an AutoCAD file.
OpenOptionsAutoCAD; read-only.
Preferences.FreeHandFileOptions
Section titled “Preferences.FreeHandFileOptions”app.preferences.FreeHandFileOptions
Description
Section titled “Description”Options to use when opening or placing a FreeHand file.
OpenOptionsFreeHand; read-only.
Preferences.parent
Section titled “Preferences.parent”app.preferences.parent
Description
Section titled “Description”The parent of this object.
object; read-only.
Preferences.PDFFileOptions
Section titled “Preferences.PDFFileOptions”app.preferences.PDFFileOptions
Description
Section titled “Description”Options to use when opening or placing a PDF file.
PDFFileOptions; read-only.
Preferences.PhotoshopFileOptions
Section titled “Preferences.PhotoshopFileOptions”app.preferences.PhotoshopFileOptions
Description
Section titled “Description”Options to use when opening or placing a Photoshop file.
PhotoshopFileOptions; read-only.
Preferences.typename
Section titled “Preferences.typename”app.preferences.typename
Description
Section titled “Description”The class name of the referenced object.
string; read-only.
Methods
Section titled “Methods”Preferences.getBooleanPreference
Section titled “Preferences.getBooleanPreference”app.preferences.getBooleanPreference(key)
Description
Section titled “Description”Gets the boolean value of a given application preference.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
key | String | Pref key of value to get |
Returns
Section titled “Returns”Boolean
Preferences.getIntegerPreference
Section titled “Preferences.getIntegerPreference”app.preferences.getIntegerPreference(key)
Description
Section titled “Description”Gets the integer value of a given application preference.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
key | String | Pref key of value to get |
Returns
Section titled “Returns”Integer
Preferences.getRealPreference
Section titled “Preferences.getRealPreference”app.preferences.getRealPreference(key)
Description
Section titled “Description”Gets the real-number value of a given application preference.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
key | String | Pref key of value to get |
Returns
Section titled “Returns”Real
Preferences.getStringPreference
Section titled “Preferences.getStringPreference”app.preferences.getStringPreference(key)
Description
Section titled “Description”Gets the string value of a given application preference.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
key | String | Pref key of value to get |
Returns
Section titled “Returns”String
Preferences.removePreference
Section titled “Preferences.removePreference”app.preferences.removePreference(key)
Description
Section titled “Description”Deletes a given application preference.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
key | String | Pref key of value to get |
Returns
Section titled “Returns”Nothing.
Preferences.setBooleanPreference
Section titled “Preferences.setBooleanPreference”app.preferences.setBooleanPreference(key, value)
Description
Section titled “Description”Sets the boolean value of a given application preference.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
key | String | Pref key of value to get |
value | Boolean | Value to set |
Returns
Section titled “Returns”Nothing.
Preferences.setIntegerPreference
Section titled “Preferences.setIntegerPreference”app.preferences.setIntegerPreference(key, value)
Description
Section titled “Description”Sets the integer value of a given application preference.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
key | String | Pref key of value to get |
value | Integer | Value to set |
Returns
Section titled “Returns”Nothing.
Preferences.setRealPreference
Section titled “Preferences.setRealPreference”app.preferences.setRealPreference(key, value)
Description
Section titled “Description”Sets the real-number value of a given application preference.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
key | String | Pref key of value to get |
value | Double | Value to set |
Returns
Section titled “Returns”Nothing.
Preferences.setStringPreference
Section titled “Preferences.setStringPreference”app.preferences.setStringPreference(key, value)
Description
Section titled “Description”Sets the string value of a given application preference.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
key | String | Pref key of value to get |
value | String | Value to set |
Returns
Section titled “Returns”Nothing.