Documentación de la API > Miscellaneous > Object ProTexture > Function ProTexturePathGet
Function ProTexturePathGet
Description
Looks up the full path to the texture, decal, or bump map file indicated. If the texture is embedded inside a Creo Parametric model, instead of being loaded from the texture path, this function will write a temporary copy of the file if "create_temp_file" is set to true.
Replacement in Object TOOLKIT:
Synopsis
#include <ProUtil.h>
ProTexturePathGet
(
ProName texture_name
/* (In)
The texture file name.
*/
ProBoolean create_temp_file
/* (In)
PRO_B_TRUE to have Creo Parametric write a temporary copy of the texture file if its is embedded in a model. PRO_B_FALSE to skip writing the file.
*/
ProBoolean* p_was_embedded
/* (Out)
PRO_B_TRUE if the texture file was embedded. If create_temp_file is also true a copy of the file was written. The user application is responsible for deleting the copy. Can be NULL.
*/
ProPath texture_path
/* (Out)
The full path to the texture file. Can be NULL if create_temp_file is PRO_B_FALSE.
*/
)
Returns
The function succeeded.
One or more arguments was invalid.
The texture file could not be found on disk or in memory.
The temporary texture file could not be written.
User Guide References
¿Fue esto útil?