03.01.2013 Views

Customization Guide (.pdf) - Documentation & Online Help - Autodesk

Customization Guide (.pdf) - Documentation & Online Help - Autodesk

Customization Guide (.pdf) - Documentation & Online Help - Autodesk

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

two adjacent quotation marks. In the following example, the current layer is<br />

set to LAYOUT, and MODEMACRO is set to the string.<br />

Command: modemacro<br />

New value for MODEMACRO, or . for none : "$(getvar,clayer)=<br />

"""$(getvar,clayer)""""<br />

The status line displays the following:<br />

$(getvar,clayer)="LAYOUT"<br />

Quick Reference<br />

Commands<br />

SETVAR<br />

Lists or changes the values of system variables.<br />

System Variables<br />

MODEMACRO<br />

Displays a text string on the status line, such as the name of the current<br />

drawing, time/date stamp, or special modes.<br />

DIESEL Expressions in Macros<br />

328 | Chapter 5 DIESEL<br />

You can use DIESEL string expressions in customization (CUI) files as an<br />

additional method of creating macros.<br />

These expressions can return string values (text strings) in response to standard<br />

AutoCAD LT commands. They can also return string values to the menu itself,<br />

thereby altering the appearance or content of a menu label.<br />

A DIESEL expression that you use in a menu item must follow the<br />

$section=submenu format where the section name is M and the submenu is<br />

the DIESEL expression you want.<br />

Consider the following example:<br />

^C^C^P$M=$(if,$(=,$(getvar,cvport),1),mspace,pspace)<br />

This string provides a way to toggle between paper space and model space if<br />

TILEMODE is set to 0. This expression is evaluated transparently. If the special<br />

character ^P (which toggles MENUECHO on and off) is omitted, the expression<br />

displays only the issued command.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!