CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products []
Cesky English Deutsch
 Visitors: 2494 

CAD tip CAD tip # 6146:

Question CAD 
 %  platform  category 
Q - question

How to detect DWG files containing VBA macros?

A - answer Some of your DWG drawings may contain unwanted embedded VBA macros. If you need to identify and clean such drawings, you can use the CADstudio DBXscanVBA and DBXremVBA applications.

The free LISP utility DBXscanVBA scans all DWG files in a given folder (and its subfolders) and generates a report with a list of all DWG files containing VBA macros. The files are not opened individually.

Another utility - DBXremVBA - can batch-remove VBA macros from all drawings in a given folder (without opening them).

Just appload these utilities and start the "DBXscanVBA" or "DBXremVBA" command. Browse to the folder you want to process and click "Save".

You can download the applications from, see the accompanying TXT file.

Sample of a report:
Xanadu DBXscanVBA report (drawings with VBA macros)  
Timestamp: 20080522.1053  
Start processing root folder C:\Civil 3D Projects\  
Start processing folder C:\CIVIL 3D PROJECTS\  
-- C:\Civil 3D Projects\BasinAreas.dwg  
-- C:\Civil 3D Projects\BIG_LOM.dwg, ***_VBA_macros_***  
-- C:\Civil 3D Projects\GPS Data.dwg, ***_VBA_macros_***  
---- processing finished ----

More about DBX utilities

100% *  CAD 
20.5.2008    8173x  
Comments   Tell a friend

See also:
Tip 9913:How to detect DWG files created in the drawing module in Autodesk Fusion 360?
Tip 7341:How to scan all DWG drawings for missing SHX files?
Tip 6598:How to detect all DWG files containing Xrefs?
Tip 6092:How to detect DWG files containing AEC objects?
Tip 5871:How to batch-remove excessive annotation scale lists in DWGs?

Back   All CAD Tips All CAD tips&tricks

How to copy AutoCAD fonts to a new machine? « | » How to keep resized Open/Save dialogs between Inventor sessions?

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   

Link your AutoCAD texts with Excel tables/sheets. Export. Change. Import.
Try DwgText 2015 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.