Hi
I want to make a python script which can see if a simulation is completed before doing the next step in the script.
The script should be like this
##########################################################
1 do something
2 check if simulation is complete
3 if completed do something else
##########################################################
I have search the help which is included in EMPro and found nothing
Questions
1 Does it exist a command to read out the status field from the simulation?
2 Does it exist a command to read out the name of the simulations (and not just the simulation Id)?
I am Using
EM Pro 2009 (210.300) 64-bit
I want to make a python script which can see if a simulation is completed before doing the next step in the script.
The script should be like this
##########################################################
1 do something
2 check if simulation is complete
3 if completed do something else
##########################################################
I have search the help which is included in EMPro and found nothing
Questions
1 Does it exist a command to read out the status field from the simulation?
2 Does it exist a command to read out the name of the simulations (and not just the simulation Id)?
I am Using
EM Pro 2009 (210.300) 64-bit
In later versions, you can directly query the simulation object the get from the createSimulation function. Afterwards, you can find this simulation object in the empro.activeProject.simulations() list.
2. In EMPro 2009, there's no easy way to query the full name of the simulation safe for parsing metadata.xml which is found in the simulation directory.
In later versions of EMPro, you can get this string from the simulation object, just like you get the status