API: Event Monitor for SolidWorks 2012 (VBA)

Document created by Joyce Bossom Employee on Sep 9, 2011Last modified by Joyce Bossom Employee on Oct 31, 2017
Version 10Show Document
  • View in full screen mode

This macro shows how to monitor SolidWorks events using the SolidWorks API.

The macro displays a modeless dialog box from which you select the events that you want to monitor.

Note: Not every event that is currently available in SolidWorks 2012 is displayed in the dialog box.


  1. Extract the archive in a convenient location.
  2. Open a SolidWorks Part, Assembly, or Drawing.
  3. Run the macro in the SolidWorks macro editor.
  4. In the dialog box, select the events that you want to monitor.
  5. Perform SolidWorks activities that trigger the monitored events.
  6. Inspect the dialog's event notification box to monitor the events.



- Subscription Services required for full access.

- Looking for more API Examples?


Copyright © 2011 Dassault Systèmes SolidWorks Corp. All rights reserved.
Do not distribute or reproduce without the written consent of Dassault Systèmes SolidWorks Corp.