2 Replies Latest reply on Mar 7, 2016 5:06 PM by Jim Sculley

    API: GetConfigurationNames

    Ashok Anumula

      I have a code that lets you write properties based on the configuration you are in.


      Dim vConfigName as variamt

      Dim swConfig as sldworks.configuration

      Dim swModel as sldworks.modeldoc2

      Dim swModel as sldworks.sldworks


      Set swApp = Application.SldWorks

      Set swModel = swApp.ActiveDoc


      vConfgiName = swModel.GetConfigurationNames


      For i = 0 To ubound(vconfigName)

           Set swConfig = swModel.GetConfigurationByName(vConfigName(i))

                Debug.Print swConfig.Name

      Next i


      That is the simplisting version of my code. My problem it yields more configuration names than I show in the Congiuration tree.


      I have one configuration in tree, name, Default


      The above code yields


      Default-_flexible1 and so on uptp Default-_flexible5


      I do not understand why?


      Thank you.