How can I extract a jpeg from a p2m appearance file?

I am trying to recreate textures from a SolidWorks model while importing the model into another program that uses OpenGl for rendering. My question is how can extract a jpeg from a .p2m file so that I can use the jpeg to render textures via OpenGl.

Thanks,
Mani

SolidworksApi macros
Answers 2
JH
JH 2015-12-21 Best Answer

Unfortunately I do not think it is possible other than possibly using a screen capture.

SF
SF 2015-12-21

I just found out that the image files for the texture are stored in a separate directory C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS\data\Images\textures. Now, does the IRenderMaterial type from the SolidWorks API give all the information for a texture that is stored in the p2m file? 2010 SOLIDWORKS API Help - IRenderMaterial Interface Members.