Automatically Refresh Drawing Sheet Formats in SOLIDWORKS with VBA

Managing large drawing sets in SOLIDWORKS often means working with inconsistent or outdated sheet formats. Whether due to legacy templates, changes in company standards, or imported files, it’s not uncommon to find drawing sheets that don’t match the expected formatting. This macro solves that.

What This Macro Does

  • Loops through all sheets in an open drawing.
  • Detects each sheet’s paper size.
  • Clears any elements from the sheet format.
  • Replaces the current sheet format with a new one (in this case, a C-size format).
  • Saves the drawing once all sheets are processed.

When Should You Use It?

  • You’re transitioning to a new title block or format standard.
  • You need to batch-convert drawings with inconsistent sheet sizes.
  • You want a consistent template across multiple sheets.
  • You’re preparing legacy drawings for release or PDF batch export.

Author

Amen Jlili

Amen Jlili is the founder and technical director of Blue Byte Systems Inc., a software company in Vancouver, Canada, specializing in automating SOLIDWORKS and PDM. With over a decade of experience, he has authored several courses and open-source frameworks related to the SOLIDWORKS API. His leadership ensures that Blue Byte Systems prioritizes customer satisfaction and delivers high-quality software and CAD design solutions.