The PTC Community is on temporary read only status in preparation for moving our community to a new platform. Learn more here
Have you tried defining the mapkey to pause once the simulation is started and wait for the user to resume it once the sim has completed? The other option is to have the mapkey call an external script from the OS if you can integrate such a script and the script can detect the completion of the sim.
Mapkeys do not support most programming type functions so if you need to do this as you state above you will probably have to use one of the Creo APIs to write an app.
Yes at the moment i use a mapkey with a powershell script, which start a (Start-Sleep -Seconds 60).
This time frame allows me to finish my various simulations.
Some simulations finish in a few seconds and this method is not optimized.
Do you have an example for making an app with the Creo API?
Do you think I can do the same with PowerShell?
Thanks
I don't have any API examples I can share. Some users have had success with AutoIt scripting to implement similar automations. You can find references and perhaps some examples of using AutoIt here in the community. Search for posts made by @MartinHanak who recently retired but has many posts in the archives.
https://www.autoitscript.com/site/autoit/
