Delete all dangling dimensions – SOLIDWORKS MACRO

Reattaching Dangling Dimensions - 2024 - What's New in SOLIDWORKS
If you’re working with large SOLIDWORKS projects, you know how cumbersome it can be to deal with dangling dimensions in your drawings. This simple yet powerful macro helps automate the process of deleting all dangling dimensions from the active configuration in a drawing document. The macro is written using late-binding, ensuring it is version-independent and works seamlessly across different versions of SOLIDWORKS.

Key Features:

  • Deletes all dangling dimensions from active drawings.
  • Works with any SOLIDWORKS version, thanks to late-binding.
  • User confirmation required before deletion.

How the Macro Works:

The VBA macro ensures that all dangling dimensions are identified and deleted from the active configuration. Here’s a step-by-step breakdown:

  1. Active Drawing Document: The macro starts by verifying that the active document is a drawing. If not, the macro exits and notifies the user.
  2. Dangling Dimensions: The macro scans through all views in the drawing to identify any annotations that are classified as “dangling dimensions.”
  3. User Confirmation: Before deleting the dangling dimensions, the macro requires user confirmation, ensuring no accidental deletions.
  4. Version Independence: Using late-binding, this macro is version-independent and will work across various SOLIDWORKS versions.

Code:

Benefits of Automating with VBA in SOLIDWORKS:

  • Time-Saving: Instead of manually identifying and deleting dangling dimensions, the macro automates the process in seconds.
  • Consistency: Ensures uniform deletion across all sheets and views in your drawing document.
  • Scalable: Works across any number of sheets and views, making it ideal for large projects.

Contact Us:

If you’re looking to further streamline your SOLIDWORKS processes, from managing dimensions to automating other drawing tasks, Blue Byte Systems Inc. is here to help. We specialize in custom add-ins and automation tools tailored to your needs. Contact us today!

Found an error or have suggestions? Send corrections via the comment section below. 👇

📝 Subscribe Now and join our community for goodies and more!