Category Creo Parametric fundamentals, Object ProMdl

Function ProMdlOriginGet


UNDO Status: SAFE
Description
Retrieves the full path from which the model was retrieved. Returns an empty string for models which are new in session. Returns the full path of the generic for instances. You can call ProFileMdlnameParse with the output origin to get just the location of the file.
Replacement in Object TOOLKIT: pfcModel::Origin
Synopsis
#include <ProMdl.h>
ProErrorProMdlOriginGet(
ProMdl handle
/* (In)
The model handle.
*/
ProPath origin
/* (Out)
The address where the full path will be written. You must allocate the memory for this argument.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_BAD_INPUTSThe input arguments are invalid.
PRO_TK_GENERAL_ERRORThe origin of the model could not be found.

Manual References:

  1. Pro/DEVELOP to Creo Parametric TOOLKIT Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Working with Multi-CAD Models Using Creo Unite: Superseded Functions
  3. Core: Models and Model Items: Identifying Models
  4. Core: Models and Model Items: Identifying Models
  5. Technical Summary of Changes for Creo 4.0 F000: Model

Sample Code References:

  1. pt_userguide ( UgDrawingViews.c )
  2. pt_userguide ( UgFundStringConv.c )