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

CAD tip CAD tip # 5762:

Question CAD 
 %  platform  category 
Q - question

Where to store user drawing data?

A - answer If you want to store user data within an AutoCAD drawing, there are several places you can use:
  1. Integer and real values (numbers) can be stored in the user variables USERI1-USERI5 and USERR1-USERR5 (please note that USERS1-USERS5 values are not stored)
  2. Entity-releated data can be stored in XData records of the individual drawing objects
  3. All types of data (incl. binary) can be saved with a drawing using Dictionaries (XRecords) - this is the right place to store user data
  4. String data can be also stored in the drawing properties (user values)
  5. You can also store data in attributes of an inserted block with a fixed name (not recommended)
  6. Session user data (PC-specific) can be stored in the Windows Registry or in the environment variables
All these places are accessible through VisualLISP, VBA, ARX and .NET.
100% *  CAD 
23.9.2007    7695×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 12926:How to import point coordinates from Excel to AutoCAD?
Tip 11953:How to save PDF/A-1a archive from CAD software AutoCAD, Inventor, Revit?
Tip 11365:How to store Fusion 360 models directly to Fusion Team projects?
Tip 11052:How to add your own chain type to the roller chain generator?
Tip 10709:How to create a profile from imported XYZ points in Fusion 360?

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.
CAD Studio is not responsible for possible problems that may occur as a result of using any of these tips.