Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! 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