You need to be logged in to view this content. Please login or become a member.

2 Comments

  1. CryoDesigner

    Hi Keith,

    Is there a reason we shouldn’t have the following:

    Set swEnt = vFaces(i)

    and eliminate:

    Dim swFace As SldWorks.Face2
    Set swEnt = swFace

    Thanks,
    Max

    • Max, you can use either. What you wrote reduces the number of lines but might be less clear to newer API programmers. I always write out all of the casts to make my code clearer for beginners.

Questions and Comments

You must be logged in to post a comment.