The following are the miscellaneous global variables and constants that are used for a variety of purposes in COD scripts. Use is typically covered in the function reference they apply to.
Variable | Value | Description |
---|---|---|
pi | 3.1415 | |
eo_never | 2 | Unknown purpose / use |
FALSE | 0 | |
TRUE | 1 | |
null | 0 | Number meaning no value. Same as zero |
void | Special variable used when wanting to specify a default parameter | |
time_secs | 1 | Second Time Units |
time_mins | 2 | Minute Time Units |
time_hours | 3 | Hours Time Units |
foroutput | 1 | File access mode for writing files |
forinput | 2 | File access mode for reading files |
istext | 4 | File access mode for text files |
isunicode | 12 | File access mode for Unicode text files |
file_end | -1 | Used by file.position to indicate file end |
file_start | 0 | Used by file.position to indicate file start |
lock_user | 1 | Used by item.dblock.can() to check access |
lock_owner | 2 | Used by item.dblock.can() to check access |
exec_default | 0 | Used by EXEC function for default execution |
exec_wait | 1 | Used by EXEC function to wait for program to complete before continuing |
exec_show_normal | 0 | Used by EXEC function for normal window |
exec_show_min | 16 | Used by EXEC function for minimized window |
exec_show_max | 32 | Used by EXEC function for maximized window |
mappath_backup | [path] | Path to BACKUP folder |
mappath_blocks | [path] | Path to BLOCKS folder |
mappath_cnc | [path] | Path to CNC folder |
mappath_database | [path] | Path to DATABASE folder |
mappath_dxf | [path] | Path to DXF folder |
mappath_filter | [path] | Path to FILTER folder |
mappath_home | [path] | Path to MAP.ini folder |
mappath_images | [path] | Path to IMAGES folder |
mappath_install | [path] | Path to MAP.ini folder |
mappath_items | [path] | Path to ITEMS folder |
mappath_parts | [path] | Path to PARTS folder |
mappath_project | [path] | Path to PROJECT folder |
mappath_remnants | [path] | Path to REMNANTS folder |
mappath_reports | [path] | Path to REPORTS folder |
mappath_scripts | [path] | Path to SCRIPTS folder |