CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 6589 
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 8543:

Question CAD 
 %  platform  category 
Q - question

Setting command line background color from LISP.

A - answer If you need to change the background color of your AutoCAD commandline - e.g. to indicate a certain status of your application - you can use the following simple LISP macro. You can call it directly from menus, from scripts or from your own applications.

This macro uses the ActiveX interface in VisualLISP, so you need to invoke (vl-load-com) at least once (or prepend this call to the macro).

Switch to red background:


Back to white background:


Similarly you can change the text color of your commandline with TextWinTextColor. The color numbers are Windows (OLE) color codes.

100% *  CAD 
29.3.2012    4628×  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 11714:How to assign a RAL color to a DWG object and get its ACI equivalent?
Tip 11542:How to reset the top browser node name back to the file name?
Tip 11502:How to detect DWG files created as an export from Autodesk Revit?
Tip 11389:Readability of annotations, white halo on AutoCAD texts.
Tip 11160:Dynamic display of layer/block/text style/linetype properties.

Back   All CAD Tips All CAD tips&tricks

How to move a part from parent assembly to existing subassembly? « | » How to open a PDF file from AutoCAD?

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Increase your productivity with our set of add-on functions for AutoCAD Civil 3D
CADstudio Civil Tools More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.