I'm trying to figure out how to auto generate files names while using a mapkey to save a copy as a JPEG.
My goal is to hit the mapkey and a high-resolution JPEG saves to my desktop. I would need to save multiple JPEGs of a single part file.
The issue I'm running into is when it overrides the file, because it uses the same file name as the previously saved JPEG.
Hopefully that makes sense. Any help would be greatly appreciated.
This is pretty easy to do ... with CREOSON.
Look at --> interface : export_image
This is a script that works in the PlayGround after you get a SessionID.
let intObj = new creo.InterfaceObj(); intObj.type = "JPEG" intObj.filename = "test_1.jpg" intObj.export_image() intObj.filename = "test_2.jpg" intObj.export_image()
Just change the filename to write to... for each version of the model you want to save... (assuming you are changing the model or view orientation for the alternate images).