how get the rotate of image in texture?

Hi! I programmatically create collada file with my solidworks model (c#). i want to export it to the web application. I apply texture for model. But when i export  the model and open it in the app direction of the texture differs from the texture in solidworks.  i tried to use property Rotate (CADtoEarth.Solidworks.AddIn.Export.Translators.MaterialSpace.Material) m.Rotate. But it always 0.  Is property Rotate what i need or there is another way to get the right rotation of the image with texture? thanks for any help.

SolidworksApi macros