CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE

CAD tip CAD tip # 6067:

Question

CAD 
 %  platform  category 
A
Yes and no.

There is a fixed and sometimes rather low limit for the length of the resulting (evaluated) menu command - it is 256 characters (longer evaluations will display Diesel error "$(++)". So if you use plain AutoCAD command sequences (no Diesel), you can type only 256 characters in your menu macros.

But there is no such limit for the length of string that a Diesel-enhanced menu macro (CUI file item) can contain - we have successfully tested Diesel macros over 3.000 characters long.

The 256-character limit applies only to the evaluated string (if you use Diesel). An example:

  • The menu macro $M=$(getvar,USERI1) is itself 19 characters long but evaluates e.g. to "0" (1 character)
  • The menu macro ID;\ is 4 characters long and evaluates also to 4 characters (nothing to evaluate - no Diesel)

(Testing performed on AutoCAD LT 2008 in Windows Vista.)

ACADACLT
100% *CAD
4.4.2008    10768×  
applies to: AutoCAD · AutoCAD LT ·

See also:
Tip 14542:How to easily add a transparency toggle in AutoCAD?
Tip 14215:IF statement in AutoCAD text fields and attributes.
Tip 14135:New special code ^] for menu-macros, easy object selection.
Tip 7953:Toggle model/paperspace with a keyboard shortcut.
Tip 6366:Inserting and updating time and date in an AutoCAD drawing.


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
  



Featuring:
Increase your productivity with our set of BIM add-on functions for Autodesk Revit
Be.Smart T4R More info


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