3 Replies Latest reply on Jul 14, 2016 3:17 PM by Amen Allah Jlili

    VBA GetObject/CreateObject ProNest

    Tom Fosler

      I am in the midst of trying to create a macro that will automate DXF exports from a face selection in Solidworks, based on a list in Excel. The VBA is within Excel itself, and I have all the reference libraries added accordingly. The next phase I would like to attack in this process is to open ProNest, add the DXF to the nest, save the file, and create a CNC output. However, I can't seem to use GetObject or CreateObject to open ProNest. I can use Shell, but that doesn't give me any access to the library functionality. Does anyone else have a snippet of code that will open ProNest? This is what I have:


      Dim pnApp As ProNest.pnApplication

      Set pnApp = GetObject(, "ProNest.pnApplication")

      If pnApp Is Nothing Then

          Set pnApp = CreateObject("ProNest.pnApplication")

      End If


      The library in my project is listed as Hypertherm CAM - ProNest 11.0 Object Library. Any help would be greatly appreciated!