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

CAD tip CAD tip # 13740:

Question CAD 
 %  platform  category 
Q - question

Dynamic label with filesize of the current DWG file.

A - answer Using a dynamic text field and the FILESIZE variable, you can display a label with the size of the current .DWG drawing file in your AutoCAD session.

Enter the field code in any text or attribute:

%<‌/AcVar Filesize \f "%by2%pr1%ps[,kB]%.1f">%

and then regenerate the drawing (even on each save). This will display the file size in kB, to one decimal place.

Or the field:

%<‌/AcVar Filesize \f "%by3%pr1%ps[,MB]%.2f">%

which will display the file size in MB, to two decimal places.

100% *  CAD 
19.5.2023    687×  

See also:
Tip 13744:Simple password protection of Inventor documents (iLogic).
Tip 13737:Formatting leading zeros in AutoCAD fields (and automatic field update).
Tip 13716:HYPERLIST - list of all used URLs.
Tip 13653:FPoly - draw fixed-length polylines in AutoCAD.
Tip 13566:Text size in Revit temporary dimensions.

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   

Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info

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.