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

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    11150×  

See also:
Tip 13855:DBXscanLayers and DBXscanBlocks - bulk report content of DWG files in a folder.
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?

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