API: Delete All Notes on a Specified Layer (VBA, VB.NET, and C#)

Version 3

    These examples show how to delete all notes on a specified layer.

     

    1. Download the Zip file and unzip it.

    2. Open ball_valve.slddrw.
    e. Double-click the note DELETE ME NOTE to open the Note PropertyManager page.
    3. Scroll to the bottom of the PropertyManager page to verify that the note DELETE ME NOTE is on the DEL ME layer.
    4. Click a blank area in the drawing sheet to close the Note PropertyManager page.
    5. Run a macro.


    The DELETE ME NOTE is deleted. The DO NOT DELETE ME NOTE remains intact because it does not reside on the DEL ME layer.


    NOTE: To run this example in either of the other programming languages, do not save the drawing document when closing it.

     

    Tested using SolidWorks 2011 SP1.

     

    Note:
    - 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.