CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 4957

CAD tip CAD tip # 14135:

Question CAD 
 %  platform  category 
Q - question

New special code ^] for menu-macros, easy object selection.

A - answer Since AutoCAD 2023 you can use a new special code for command macros in AutoCAD CUI files (menus, ribbons, command shortcuts, etc.): ^].

This code (not well documented) is equivalent to the following expression in the DIESEL macro language:


Prompts the user to select objects if no objects are selected yet. The selected objects are assigned to the selection set Previous. To subsequently use the selected objects, use the Previous option at the "Select objects" prompt.

Sample of the macro "Move right by 100 units":


100% *  CAD 
31.5.2024    806×  

See also:
Tip 14063:How to get week day and week number from a given date.
Tip 6366:Inserting and updating time and date in an AutoCAD drawing.
Tip 6067:Is there a string length limit for AutoCAD Diesel and menu macros?
Tip 6021:How to toggle LT background color through a toolbar button?
Tip 4523:How to insert a block from menu scaled to DIMSCALE?

Back   All CAD Tips

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   

DwgTextTranslator translates a series of drawings from one language to another using MS Access.
Download a fully functional trial version.

Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.