Create drawings from models (Creo Elements/Direct Annotation) > Advanced topics > The am_customize file > Configure the defaults file
  
Configure the defaults file
You can specify values for nearly all settings in Creo Elements/Direct Annotation using the Default Settings browser; click File > Settings > Default Settings.
Other settings can be changed as follows:
When you start Creo Elements/Direct Annotation, it loads the am_customize file which contains default settings. If Creo Elements/Direct Annotation cannot find this file, it loads the am_customize.orig file. If you want to change the default settings, you need to modify the am_customize file using a standard text editor (such as `vi' or `Notepad'). The file is located in the personality directory.
You can use the sd-set-setting-modifiable-flag function in the am_customize file to partially or fully disable Creo Elements/Direct Annotation default settings. The disabled settings appear as grey text in the default settings browser.
To define a new isometric mode
You can define new isometric modes for use in creating isometric views. Isometric modes are defined with the register-view function. You can include isometric mode definitions in the am_customize file, or you can put them in separate files to be loaded into Creo Elements/Direct Annotation.
To define a new isometric mode, copy the function register-view and enter the keyword values:
(register-view :name "30"
:x-rot 30
:y-rot 60)
(register-view :name "60"
:x-rot 60
:y-rot 30)
(register-view :name "True"
:x-rot 45
:y-rot 35.3644)
To set a specific isometric mode as default upon start-up of Creo Elements/Direct Annotation, add the following to the am_customize file (or a separately loaded file):
(am_iso_mode :mode "Name of mode")
To register new special characters
You can register new special characters to be included in the Special Characters table. Any character from the hp_symbols and hp_symbols2 fonts can be registered. A predefined pixmap can also be included in the Special Characters table to represent the character.
To register a new special character, copy the function docu-register-special-char from the am_customize file and enter the required variables:
(docu-register-special-char :char-code Code number in font
:font-code :hp_symbols or :hp_symbols2
:meta-name "Metaname seen in text editor"
:pixmap-file "Filename for pixmap (optional)")
For example:
(docu-register-special-char :char-code 126
:font-code :hp_symbols2
:meta-name "Micro"
:pixmap-file "pixmaps/doc3d2d/sym2_126.pm")
Note that the metaname must be unique. You must first unregister an old metaname to define it again.
Other special character customization functions are the following:
(docu-unregister-special-char-all) de-registers all previously defined special characters. Use this to exclude all the Creo Elements/Direct Annotation defaults and use only a defined set of characters.
(docu-unregister-special-char "meta-name") de-registers the named special character only.
To register sketches
* 
The following procedure is available for backward compatibility. See Define (save) a sketch to store and reload sketches (as templates) automatically.
You can register sketches to be available in the Template Browser. Any valid MI file can be registered.
To register a sketch, copy the function docu-register-sketch from the am_customize file, and enter the required variables:
(docu-register-sketch :obj-name "Sketch name"
:file-name "Filename of sketch"
For example:
(docu-register-sketch :obj-name "CoCreate Logo"
:file-name "/opt/CoCreate/objects/cclogo.mi"
Other sketch customization functions
(docu-unregister-all-sketches) de-registers all previously defined sketches. Use this to exclude all previously registered sketches and then, for example, register only a specific set of sketches.
(docu-unregister-sketch "Sketch name") de-registers the named sketch only.