Not able to get material file or respective path from API

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have created simple cube in fusion360 and applied material(Cherry) as an Appearance.
code snippet is given below.
adsk::core::Ptr<adsk::fusion::BRepBody> body;
adsk::core::Ptr<adsk::fusion::BRepFace> face;
bool hastexture = false;
hastexture = body->appearance()->hasTexture();
hastexture = face->appearance()->hasTexture();
Hastexture() property returns true value.
I tried to get the material file(.jpg) from Appearance of face/body. but i didn't got any file or path from properties
I tried to get material file from following properties.
face->appearance()->appearanceProperties();
body->material()->materrialProperties();
body->material()->appearance()->appearanceProperties();
Please, let me know if i am missing anything or suggest any better way to get material file or path.