API: Find Features for Edges in Drawing Views (VBA, VB.NET, and C#)

Version 5

    An edge:
    * is not directly associated with a feature.
    * is associated with two faces.

     

    Each face is associated to a feature, and the features might not be the same. Thus, an edge can be (indirectly) associated with one or more features.

     

    These examples show how to find the model features associated with the edges in the first visible component in a selected drawing view.

     

    1. Download the Zip file and unzip it.
    2. Open ball_value.slddrw.
    3. Select a drawing view.
    4. Open the Immediate window.
    5. Run the macro.

      The names of the features associated with the edges in the first visible component in the drawing view are printed to the Immediate window.
    6. Repeat steps 3 and 5 for each of the other drawing views.

     

    Tested using SolidWorks 2011 SP1.

     

    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.