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

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 Download, 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    10882×  

See also:
Tip 12860:What are the proxy objects of the application NUCLEUSFORACAD?
Tip 11502:How to detect DWG files created as an export from Autodesk Revit?
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?

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.