Function ProMdlFiletypeLoad
Description
Retrieves the specified model and initializes the handle.
The function retrieves the model into memory, but neither displays the model nor makes it the current model. Differs from ProMdlnameRetrieve in that the caller can specify the location of the model in addition to its name.
If retrieving an assembly, and errors occur in regeneration, the assembly will include suppressed features. The function ProSolidRetrievalErrorsGet identifies if errors occurred.
Replacement in Object TOOLKIT:
Synopsis
#include <ProMdl.h>
ProMdlFiletypeLoad
(
ProPath full_path
/* (In)
The full path of the model to be retrieved, including the name, and optionally the location and extension.
*/
/* (In)
The type of the model to retrieve, or PRO_MDLFILE_UNUSED if full_path includes an extension.
*/
ProBoolean ask_user_about_reps
/* (In)
If TRUE, the Open Rep dialog may be presented, allowing the user to specify which simplified representation of the model should be retrieved.
*/
ProMdl* p_handle
/* (Out)
The handle to the retrieved model
*/
)
Returns
The function successfully retrieved the model.
One or more of the input arguments are invalid.
The model exists but is not readable.
The model does not exist, or was not found
The model is not a Creo Parametric model.
The model name is too long.
The function does not have permission to operate on this model.
The Multi-CAD model is not being retrieved from an active Windchill server.
The model could not be retrieved.
See Also
Sample Code References
User Guide References
Isto foi útil?