[ca...] Posted June 23, 2022 Share Posted June 23, 2022 Hello everyone, I want to create a gom script which should be automatically run when opening a specific project file. In another way of saying, opening that specific file should trigger the running of the script. Is there a way to do that? Many thanks, Canset Link to comment https://qualityforum.zeiss.com/topic/1083-make-a-gom-script-run-automatically/ Share on other sites More sharing options...
[Mi...] Posted June 23, 2022 Share Posted June 23, 2022 Hi Canset, You could use a Windows Shortcut to start a script which opens the specific project and runs your Script... if this could be a solution. Regards Michael Link to comment https://qualityforum.zeiss.com/topic/1083-make-a-gom-script-run-automatically/#findComment-3487 Share on other sites More sharing options...
[ca...] Posted June 23, 2022 Author Share Posted June 23, 2022 Hi Michael, Many thanks for the quick response. How can i create the windows shortcut to start gom inspect externally? Thanks, Canset Link to comment https://qualityforum.zeiss.com/topic/1083-make-a-gom-script-run-automatically/#findComment-3489 Share on other sites More sharing options...
[Mi...] Posted June 27, 2022 Share Posted June 27, 2022 Hi Canset, just use a windows shortcut to your start_gom.exe and give them the aditional parameters atos -eval plus the script path like "gom.script.userscript.scriptfolder__script()" should look like this f.e. "C:\Program Files\GOM\2021\bin\start_gom.exe" atos -eval "gom.script.userscript.scriptfolder__script()" Link to comment https://qualityforum.zeiss.com/topic/1083-make-a-gom-script-run-automatically/#findComment-3516 Share on other sites More sharing options...
[ca...] Posted June 27, 2022 Author Share Posted June 27, 2022 Hi Michael, Many thanks, it works. I have one last question. This start shortcut start_gom.exe only applies for GOM Inspect Pro, right? Is there a way to open blade inspect pro ? Link to comment https://qualityforum.zeiss.com/topic/1083-make-a-gom-script-run-automatically/#findComment-3522 Share on other sites More sharing options...
[Na...] Posted June 27, 2022 Share Posted June 27, 2022 Hello cansetm, try adding this for Blade Inspect Pro: -license gom-inspection-pro,blade,gom-advanced-blade-inspection Regards, Nanno Link to comment https://qualityforum.zeiss.com/topic/1083-make-a-gom-script-run-automatically/#findComment-3524 Share on other sites More sharing options...
[ca...] Posted July 19, 2022 Author Share Posted July 19, 2022 Hello Nanno, Many thanks for the quick response, it works. Canset Link to comment https://qualityforum.zeiss.com/topic/1083-make-a-gom-script-run-automatically/#findComment-3811 Share on other sites More sharing options...
[An...] Posted May 21, 2024 Share Posted May 21, 2024 Please sign in to view this quote. Hi, I have the same need with Blade Inspect Pro 2021, I tried this way but it doesn't work: "C:\Program Files\GOM\2021\bin\GOMSoftware.exe" atos,gom-inspection-pro,blade,gom-advanced-blade-inspection -eval 'gom.script.userscript.test ()' Blade Inspect Pro 2021 starts but the script does not run. thanks Antonio Link to comment https://qualityforum.zeiss.com/topic/1083-make-a-gom-script-run-automatically/#findComment-11536 Share on other sites More sharing options...
[Na...] Posted May 21, 2024 Share Posted May 21, 2024 Hi Antonio, I think the correct path is missing. It should read: "C:\Program Files\GOM\2021\bin\start_gom.exe" atos -eval "gom.script.userscript.scriptfolder__script()" For the Kiosk it is ""C:\Program Files\Zeiss\INSPECT\2023\bin\ZEISS_INSPECT.exe" -kiosk -fullscreen -eval gom.script.userscript.KioskInterface__Start()"" for example. Link to comment https://qualityforum.zeiss.com/topic/1083-make-a-gom-script-run-automatically/#findComment-11538 Share on other sites More sharing options...
[An...] Posted May 21, 2024 Share Posted May 21, 2024 Please sign in to view this quote. thanks for the reply, but unfortunately the path was correct, here are some screenshots: Link to comment https://qualityforum.zeiss.com/topic/1083-make-a-gom-script-run-automatically/#findComment-11546 Share on other sites More sharing options...
[Mi...] Posted May 22, 2024 Share Posted May 22, 2024 Hi Antonio, I think the problem lies in the choice of quotation marks. Does not work: 'gom.script.userscript.test()' Should work: "gom.script.userscript.test()" or simply gom.script.userscript.test() Please also use -license in front of your license selection on the command line. Link to comment https://qualityforum.zeiss.com/topic/1083-make-a-gom-script-run-automatically/#findComment-11558 Share on other sites More sharing options...
[An...] Posted May 27, 2024 Share Posted May 27, 2024 Please sign in to view this quote. thanks, the problem has been solved! Link to comment https://qualityforum.zeiss.com/topic/1083-make-a-gom-script-run-automatically/#findComment-11578 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