Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
wfcTexture::GetFilePath from the Creo 8 object toolkit returns only the file name, not the full path to the image file. Is there any way to get the actual full file path for the texture image via the object toolkit?
construct std::filesystem::path with those directory names and a given file name.
use std::filesystem::exists( ...) to check for the existence of the file.
you may end up traversing 'textures' subdirectories for the file...
Thanks, I am doing something similar as a workaround, scraping the creo common files for images and also scraping the part or assembly folder for images, but it would be much easier for everyone if the object toolkit returned the actual full path
PRO_PATH_SIZE - _MAX_PATH = overflow