Repository navigation
MODEMACRO System Variable
github-actions[bot] edited this page Nov 27, 2026
·
1 revision
Shows your own text, worked out by a DIESEL string, at the left end of the status bar.
| Type | String |
| Saved in | Not saved |
| Default | "" (nothing shown) |
| Since | 2026.47 |
Any text. Parts written as DIESEL functions, $(function,argument,…), are replaced by their value each time the status bar is drawn. For example Layer: $(getvar,clayer) shows the current layer, and $(edtime,$(getvar,date),HH:MM) the time.
- Typed alone, it asks for the new string.
SETVAR MODEMACRO stringsets it directly. Type.to clear it. - A part that cannot be worked out (an unknown variable, a bad argument) shows
$?. - The same DIESEL functions work in a command of your own ribbon panels (
CUI) that starts with$M=: the macro that runs is the string's value, for example$M=$(if,$(eq,$(getvar,clayer),0),-LAYER;SET;Notes;;,LINE). - It lasts for the current session only and starts empty each time the program starts.
Open CAD Studio is free software under the GPL-3.0 licence · Source code · Download · Web app · Discussions
Get started
- Installation
- Your First Drawing
- Tutorials
- The User Interface
- Ribbon Reference
- Workspaces and Toolbars
- Navigating the Drawing
Draw and edit
- Drawing Setup and Units
- Precision Drawing
- Isometric Drafting
- Drawing Objects
- Multilines
- Selecting Objects
- Modifying Objects
- Hatches and Fills
- Layers and Properties
Annotate
Organise and reuse
Present and share
3D
Tools
Reference