API: How to move all dimensions in a drawing to another layer (VBA, VB.NET, C#)

Version 3

    This example shows how to move all dimensions in a drawing to another layer.

     

    1. Extract the archive to a convenient location.
    2. Open a drawing with dimensions.
    3. Create the "HIDE" layer in the drawing.
    4. Run the macro (VBA, VB.NET, or C#) in the Macro Editor.
    5. Select a dimension in the view.
    6. 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.