Macro: Delete Empty Sheet(s)

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: Dropbox

    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: https://www.youtube.com/watch?v=uieXLNVf5dE

    Feedback is welcome :slight_smile:

    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

Delete Empty Sheets (V1 & V2).zip (23.7 KB)

Deepak, I noticed that the dropbox link doesnt work.

Looks like the link got mangled in the forum migration. I’ve edited the post to correct it.

@gupta9665 It might be a good idea to edit your post and add the actual ZIP file instead of a DropBox link.

The link is working but for some reasons, dropbox is asking for a login.

As suggested by @JimSculley, I have attached the zip to the post itself.