[Za...] Posted September 7, 2022 Share Posted September 7, 2022 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 More sharing options...
[Th...] Posted September 7, 2022 Share Posted September 7, 2022 Try subprocess.call(["C:/Program Files/GOM/2018/bin/gom_inspect.exe", "-eval", "import test_script"]) It did work for me. See https://docs.python.org/3/library/subprocess.html#older-high-level-api for subprocess.call-documentation. Link to comment Share on other sites More sharing options...
[Ni...] Posted October 19, 2022 Share Posted October 19, 2022 Good morning I'm looking for the code to launch gom_inspect with script for 2022. Thanks Nick Link to comment Share on other sites More sharing options...
[Ni...] Posted October 20, 2022 Share Posted October 20, 2022 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 More sharing options...
[Zb...] Posted December 5, 2023 Share Posted December 5, 2023 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in