Jump to content

make a gom script run automatically


---
 Share

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

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
Share on other sites

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
Share on other sites

Hello cansetm,

try adding this for Blade Inspect Pro:
 

-license gom-inspection-pro,blade,gom-advanced-blade-inspection

 

Regards,

Nanno

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 year later...
---

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
Share on other sites

---

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
Share on other sites

---

Please sign in to view this quote.

thanks for the reply, but unfortunately the path was correct, here are some screenshots:

 

1.PNG

2.PNG

Link to comment
Share on other sites

---

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
Share on other sites

---

Please sign in to view this quote.

thanks, the problem has been solved!

Link to comment
Share on other sites

 Share

×
×
  • Create New...