1 Reply Latest reply on Jul 22, 2014 2:10 AM by Sean Phillips

    Change configuration of forming tool

    Giorgio Petroni

      Dear all,


      I have a forming tool added to a part. Is there a way to edit the configuration of this item from code?


      Please refer to the window below.




      Thank you

        • Re: Change configuration of forming tool
          Sean Phillips

          I cant seem to find a getspecificfeature for form tool. This makes some sense as a form feature is made up of any number of features.


          Also I tried to get at the featuredefinition.


              Private Sub Button1_Click_1(sender As Object, e As RoutedEventArgs)


                  Dim swapp As New SldWorks.SldWorks



                  Dim modeldoc As ModelDoc2 = swapp.ActiveDoc


                  Dim selmgr As SelectionMgr = modeldoc.SelectionManager


                  Dim Feature As Feature = selmgr.GetSelectedObject6(1, 0)




                  Dim FeatureDefinition As Object = Feature.GetDefinition


              End Sub


          featuredefinition was nothing. It looks like you would need to delete the feature, and re-insert it. InsertFormToolFeature Method (IFeatureManager)