AnsweredAssumed Answered

Dissolve Component Pattern VB

Question asked by Matt Tolson on May 12, 2015
Latest reply on Jun 15, 2015 by Matt Tolson

I am trying to dissolve patterns in the Feature Manager Design Tree through a vb program. I could not find an example in the api on how to do this.  I only found the dissolvecomponentpattern function.  I have the following code currently, but when I dissolve it deletes the assembly.



        swFeat = swModel.FirstFeature

        While Not swFeat Is Nothing


            If swFeat.Name.Contains("Pattern") Then


                swModelDoc = swModel


            End If

            swSubFeat = swFeat.GetFirstSubFeature

            While Not swSubFeat Is Nothing

                Debug.Print("    " & swSubFeat.Name)

                swSubFeat = swSubFeat.GetNextSubFeature

            End While

            swFeat = swFeat.GetNextFeature

        End While



    End Sub