API: Delete Selected Sheet and Add New Sheet (VBA, VB.NET, and C#)

Version 4

    These macros show how to delete a selected drawing sheet and add a new, blank drawing sheet.

     

    1. Download the Zip file and unzip it.

    2. Open Part1.slddrw
    3. Open a macro and run it.

     

    The selected drawing sheet is deleted, and a new, blank drawing sheet is added.

     

    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.