This example shows how to move all dimensions in a drawing to another layer.
- Extract the archive to a convenient location.
- Open a drawing with dimensions.
- Create the "HIDE" layer in the drawing.
- Run the macro (VBA, VB.NET, or C#) in the Macro Editor.
- Select a dimension in the view.
- The layer dropdown displays the new layer of the dimension.
Note: |
- Subscription Services required for full access. |
- Looking for more API Examples? |
Copyright © 2011 Dassault Systèmes SolidWorks Corp. All rights reserved.
Do not distribute or reproduce without the written consent of Dassault Systèmes SolidWorks Corp.
I'm new to macros and API stuff, but this didn't work for me. Solidworks 2010. The drawing I'm using does not have the dimensions on any layer. Seems like this could be useful I could make it work.
"Compile Error: Can't find project or library"
When I run the macro I'm selecting the "MoveDimensionsToLayer.swp" file.
Thanks