Macro: Delete Empty Sheet(s)

Library for macros
User avatar
gupta9665
Posts: 404
Joined: Thu Mar 11, 2021 10:20 am
Answers: 25
Location: India
x 424
x 444

Macro: Delete Empty Sheet(s)

Unread post by gupta9665 »

Here's another #SOLIDWORKS #macro requested by the #community. This macro deletes empty sheets from the currently active drawing. There are two versions available:

1. V1 deletes all sheets that have no views but keeps sheets with empty views or views with missing models.

2. V2 deletes sheets with no views as well as those with empty views or missing models.

Here is the link to macro: https://www.dropbox.com/scl/fi/y6jtsj5y ... d1d6c&dl=0

Macro libraries are set to SW2024 version. In case you're running a different version then update/correct the macro references as suggested in this video:

Feedback is welcome :)

Feel free to reach out via direct message to discuss your design automation requirements. Let's connect, collaborate, and create success together!

#SOLIDWORKS #API #VBA #Macro #Drawing #DeleteEmptySheets
Deepak Gupta
SOLIDWORKS Consultant/Blogger
Post Reply