0 Replies Latest reply on Jun 12, 2014 8:50 PM by Yong Ning

    How to select feature link configuration?

    Yong Ning

      Sub tt()

        Dim SwApp As SldWorks.SldWorks, SwModel As ModelDoc2

          Set SwApp = Application.SldWorks

          Set SwModel = SwApp.ActiveDoc

        Dim SwSelMgr As SelectionMgr, SwFeat As Feature

          Set SwSelMgr = SwModel.SelectionManager

          Set SwFeat = SwSelMgr.GetSelectedObject5(1)

          Debug.Print "Selected Feature is " & SwFeat.Name     

      End Sub

      selction Part1.sldprt→ Extrude1 → result is correct

      01.jpg

       

      select b.sldasm→ like configuration (a2) → result is error → Type mismatch

      02.jpg