Jump to content

Start GOM Inspect Professional Pro & Run a Script Using External Python


---
 Share

Recommended Posts

Hi, 

I have license for GOM Inspect Professional 2018 and would like to run a Gom-user script using external Python. I can launch the GOM Inspect successfully using the "subprocess.call" but unfortunately it does not allow me to run a script. So I tried to launch the GOM Inspect Professional but i am not able to do it correctly. Appreciate any advice.

subprocess.call('"C:/Program Files/GOM/2018/bin/gom_inspect.exe" -eval "import test_script"')

 

Kind Regards,

mau

Test.py

Link to comment
Share on other sites

  • 1 month later...

I figured it out and attached my code

I launch .ginspect from vb code

 Try
            CMD = "C:\PROGRAM FILES\GOM\2022\BIN\gom_inspect"               '2022
            ARG1 = " -eval"
            ARG2 = " gom.script.userscript.START_REPORT_REV_K()"
            Process.Start(CMD, Replace(ARG1, """", "") & ARG2)
        Catch
            Try
                CMD = "C:\PROGRAM FILES\GOM\2019\BIN\gom_inspect"
                ARG1 = "pro -eval"
                ARG2 = " gom.script.userscript.START_REPORT_REV_J()"
                Process.Start(CMD, Replace(ARG1, """", "") & ARG2)
            Catch
                Try

Link to comment
Share on other sites

  • 1 year later...

I have license from dongle connected with USB. When I start gom_inspect.exe the license is not recognized, so I can't launch any script.

Do you know how to handle this issue?

Link to comment
Share on other sites

 Share

×
×
  • Create New...