Programming in DIESEL

Programming in DIESEL

Using DIESEL in the Status Bar

You can use DIESEL to customize text that displays in the user area of the status bar in progeCAD. Use the MODEMACRO system variable directly or the SETVAR command to set the MODEMACRO system variable. For example, the following text entered at the command prompt will :

modemacro My New Text

Or

modemacro Tilemode=$(getvar,tilemode)

To return the status bar to be blank, enter the following:

modemacro ""

Using DIESEL in Menus

You can customize menus using DIESEL code in MNU files. The DIESEL code is always preceded by $M= when working with menus, for example:

$M=$(getvar,cmdnames)

Using DIESEL in LISP

You can use the following functions in LISP with DIESEL:

  • SetVar Use SetVar with the MODEMACRO system variable, for example:

(setvar "modemacro" "Tilemode= $(getvar,tilemode)")

  • MenuCmd Use MenuCmd with the M= menu macro to customize menus, for example:

(menucmd "M=Tilemode= $(getvar,tilemode)")

Tell me about...

 DIESEL Functions