Jump to content

Start the GOM software and a script using Python


---
 Share

Recommended Posts

Hello All,

 

I would like to start the program and one of the script by using external python script.

I could open the software with the following:

-----------

filepath = 'C:/Program Files/GOM/2020/bin/gom_inspect.exe'
import os
os.startfile(filepath)

-----------

Could you give advice about starting a script with external python?

 

BR,

Máté

Link to comment
Share on other sites

There is an "-eval" command line parameter which can be used to run scripts in GOM Software by importing them.

Lets's assume you have such a script called my_script in GOM Software:

image.png.12f86e70da998ca963215f68a3baec06.png

Than you can run it by command line parameter from another script this way:

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

 

Link to comment
Share on other sites

  • 1 year later...

Hello,

I am using Gom Suite (2021 version). I need to open blade inspect pro after opening suite. Could you please share updated code for 2021 version?

Thanks,

Canset

Link to comment
Share on other sites

 Share

×
×
  • Create New...