cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Save A Copy as JPEG Auto generate file name

NathanAbplanalp
7-Bedrock

Save A Copy as JPEG Auto generate file name

Hi.

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.

 

Thank you,

 

-Nathan

2 REPLIES 2

This is pretty easy to do ...   with CREOSON.

 

Look at --> interface : export_image

 

CREOSON Functions

 

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).

 

Dave

 

 

 

Thank you, Dave. I will look into this.

Top Tags