Category Graphics and model display, Object ProTexture

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: wfcWSession::IsTextureFileEmbedded
wfcWSession::GetTextureFilePath
Synopsis
#include <ProUtil.h>
ProErrorProTexturePathGet(
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
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more arguments was invalid.
PRO_TK_E_NOT_FOUNDThe texture file could not be found on disk or in memory.
PRO_TK_CANT_WRITEThe temporary texture file could not be written.

Manual References:

  1. User Interface: Basic Graphics: Surface Properties
  2. User Interface: Basic Graphics: Surface Properties
  3. Core: Utilities: File Handling