Drawing Cleanup macro

SOLIDWORKS Macro: Hide or Show Sketches, Planes, Origins and Axes

Toggles common reference geometry visibility before screenshots, exports or reviews.

PartAssemblyDrawingUpdated visibilityBeginner

What this macro does

Toggles common reference geometry visibility before screenshots, exports or reviews.

Best for

  • Clean screenshots
  • Cleaner exports
  • Review preparation

Inputs

  • Open SOLIDWORKS document

Outputs

Updated visibility

Filename rules

No export files created.

How to use

  1. Test on copied SOLIDWORKS files first.
  2. Download and import HideShowReferenceGeometry.bas into a SOLIDWORKS VBA macro project.
  3. Open the required document type: Part, Assembly, Drawing.
  4. Run main from the macro editor or assign it to a toolbar button.
  5. Review all generated files before using them for production release.

Limitations

  • Visibility behavior follows SOLIDWORKS document/view state.

When macros become a workflow

Use Solidise for indexed folders, BOM visibility, where-used search and repeatable batch export.

Use this macro for a focused task. Use Solidise when you need repeatable export, BOM review, previews or where-used context across many files.

Visit Solidise

Related macros

Keep automating this workflow

Drawing Cleanup Intermediate

Rename sheets/views

Renames drawing sheets and views from referenced model properties such as PartNo and Description.

DrawingRenamed sheets/views
Download .bas source