CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 4227 
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 6067:

Question CAD 
 %  platform  category 
Q - question

Is there a string length limit for AutoCAD Diesel and menu macros?

A - answer 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.)

ACADLT
100% *  CAD 
4.4.2008    6196x  
Comments   Tell a friend
applies to: AutoCAD · AutoCAD LT ·

See also:
Tip 7953:Toggle model/paperspace with a keyboard shortcut.
Tip 6366:Inserting and updating time and date in an AutoCAD drawing.
Tip 6021:How to toggle LT background color through a toolbar button?
Tip 4523:How to insert a block from menu scaled to DIMSCALE?
Tip 3666:Automatic level indicator for AutoCAD.


Back   All CAD Tips All CAD tips&tricks

Database Schema is newer than this version of the software. « | » AutoCAD freezes or has very slow startup.

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   



Featuring:
Save your floating licenses (NLS) consumed by inactive users - free unused licenses with
LogOff 2006 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.
TOPlist