Skip to main content
7-Bedrock
November 11, 2019
Solved

Can I take screenshots by WebLink?

  • November 11, 2019
  • 2 replies
  • 2211 views

Hi All:

 

I have custom program by WebLink.

part of steps, user need to take a Creo screenshot.

 

This idea guide user modeling and configuring.

Then take screenshot, upload and log it.

 

Thanks for every idea.

Best answer by YaroslavSin

Hi,

If you need screenshot with model or drawing (working area) - take a look to export to images functionality.

If you need an image a whole Creo with UI, I think, in this case need to use external software and call this by macro.

https://superuser.com/questions/75614/take-a-screen-shot-from-command-line-in-windows

2 replies

17-Peridot
November 11, 2019

Hi,

If you need screenshot with model or drawing (working area) - take a look to export to images functionality.

If you need an image a whole Creo with UI, I think, in this case need to use external software and call this by macro.

https://superuser.com/questions/75614/take-a-screen-shot-from-command-line-in-windows

7-Bedrock
November 12, 2019

Hi ysinitsyn:

 

Thank you for your help.

 

Yes, I want screenshot with model.

I found a function pfcWindow::ExportRasterImage, is right?

If yes, did you have any idea about pfcRasterImageExportInstruction.

I am not sure how to use it. Did you have any example? 

Thank you, again.

17-Peridot
November 12, 2019

Hmm - that function is very vague in the Creo 4 UG for Weblink...

 

It appears to only export one (1) format...  the Parametric raster output file... which I have no idea what format that is.

 

I guess you will have to try it and see how it works.

 

Dave

 

 

17-Peridot
November 11, 2019

You could use the CREOSON interface : export_image command to easily write and image of the active Creo session.

 

This *may* be able to be called from a WebLink page... or you could load a special page for this operation from the CREOSON server.

 

Only as a suggestion.  I believe there is an example of this in the Playground within the CREOSON distribution.

 

Dave