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

Document created by Cheryl O'Neill Employee on Dec 14, 2010Last modified by Joyce Bossom on Nov 2, 2017
Version 5Show Document
  • View in full screen mode

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.

Outcomes