Hello Dave,
Unfortunately, there is not currently any way to convert a script from Vision Builder for Automated Inspection (VBAI) into Visual Basic code. The only migration that is provided for VBAI is to LabVIEW. VBAI also does not currently have any ActiveX controls that could be used to execute a script from VB.
Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments