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

Vb api Save screen image

SOLVED
Highlighted
Aquamarine

Vb api Save screen image

Hello,

I've made the conection between vb and creo.


Now I need some help to do the following:

 

1st I need to save the screen image to a file *.png to a file

 

2nd If I have an assembly oppened, I need to reed the parameters from the activated part. Not the displayed assembly, but the activated part in the assembly.

 

Any idea of how to do it?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Vb api Save screen image


@CAD_user wrote:

Hello,

I've made the conection between vb and creo.


Now I need some help to do the following:

 

1st I need to save the screen image to a file *.png to a file

 

2nd If I have an assembly oppened, I need to reed the parameters from the activated part. Not the displayed assembly, but the activated part in the assembly.

 

Any idea of how to do it?


@CAD_user 

for 1st question use option IpfcWindow.ExportRasterImage()

for 2nd question, as per my understanding IpfcBaseSession.GetActiveModel() should give the activated model (but not sure). Once you get the model use IpfcParameterOwner.GetParam()

2 REPLIES 2

Re: Vb api Save screen image


@CAD_user wrote:

Hello,

I've made the conection between vb and creo.


Now I need some help to do the following:

 

1st I need to save the screen image to a file *.png to a file

 

2nd If I have an assembly oppened, I need to reed the parameters from the activated part. Not the displayed assembly, but the activated part in the assembly.

 

Any idea of how to do it?


@CAD_user 

for 1st question use option IpfcWindow.ExportRasterImage()

for 2nd question, as per my understanding IpfcBaseSession.GetActiveModel() should give the activated model (but not sure). Once you get the model use IpfcParameterOwner.GetParam()

Re: Vb api Save screen image

That's it.

 

It worked Smiley Happy