Odb++ generation problem

Discussion created by mans.joling on Nov 26, 2010
Latest reply on Nov 26, 2010 by mans.joling



I run the odb++ twice one for the assemby and one for the fabrication

When I run this code for the second time the odb++ dialog do not show up

When I choose Gerber the Gerber dialog shows up

What happens here?

Is there a solution


   Public Sub write_OdbPP_Info()
        Dim gui As MGCPCB.Gui
        Dim dlg As MGCPCB.Dialog
        Dim btn As MGCPCB.button
        gui = pcbApp.Gui
        gui.SuppressTrivialDialogs = True
        If gui.ProcessCommand("Output->ODB++", True) Then 'The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
            dlg = gui.FindDialog("ODB++ Output")
            If dlg.IsValid() Then
                btn = dlg.FindButton("OK")
                If btn.IsValid Then
                    Call btn.Click()
                    MessageBox.Show("Found Process Checked Output Files button")
                    MessageBox.Show("The Process Checked Output Files button was not found.")
                End If
                MessageBox.Show("The ODB++ Dialog box was not found.")
            End If
            MessageBox.Show("The OutputODB++ Command was not found. Try restarting the Application.")
        End If