2 Replies Latest reply on Dec 11, 2014 8:44 AM by Ronald Halma

    How can i change the configuration of a assembly in a drawing by using a VBA Macro?

    Ronald Halma

      I would like to change the configuration of an assembly in a drawing view. (see picture)

      I got a Assembly in my drawing which consist of configuration name 23 to 100

      config.png

      When i record a macro to execute this action this is what I get:

       

      boolstatus = Part.ActivateView("Drawing View1")

      boolstatus = Part.Extension.SelectByID2("Drawing View1", "DRAWINGVIEW", 0.14598639297934, 0.119923548387097, 0, False, 0, Nothing, 0)

      boolstatus = Part.ChangeRefConfigurationOfFlatPatternView("C:\Sollas_Prod\Projects\014\PN014-0101\MRD00021_VO014-1765\Mechanical\00038294.sldasm", "24")

       

      When i change the value of 24 to 25 the configuration should change to 25 (in red text color)

      unfortunately this does not happen

       

      Is there any other option to achieve this action?