Function ProMdlOriginGet
Description
Retrieves the full path from which the model was retrieved. Returns an empty string for models which are new in session. For instances, returns the full path of the file that created the instance: the accelerator file if applicable or otherwise the generic. You can call ProFileMdlnameParse with the output origin to get just the location of the file.
Replacement in Object TOOLKIT:
Synopsis
#include <ProMdl.h>
ProMdlOriginGet
(
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
The function successfully retrieved the information.
The input arguments are invalid.
The origin of the model could not be found.
Sample Code References
User Guide References
¿Fue esto útil?