API 설명서 > Creo Parametric fundamentals > Object ProMdl > Function ProMdlRepresentationFiletypeLoad
Function ProMdlRepresentationFiletypeLoad
Description
Retrieves the specified simplified representation of an assembly.
NOTE:
The function ProSolidRetrievalErrorsGet identifies errors if occurred.
Replacement in Object TOOLKIT:
Synopsis
#include <ProMdl.h>
ProMdlRepresentationFiletypeLoad
(
ProPath assembly_file
/* (In)
The assembly file location. Cannot be NULL. May include: generic name, instance name, file extension, file version, absolute or relative path to a local folder or a url. Example: wtpub://asm_1.asm.3 Example: just gen_asm_1 (will look for a file in the current dirrectory; in this case the type must be passed in).
*/
/* (In)
Model type. May be PRO_MDLFILE_UNUSED if assembly_file includes file extension
*/
ProName simprep_name
/* (In)
The name of the simplified representation. Must be NULL if not user-defined (if not NULL, it is considered to be user-defined).
*/
ProSimprepdata* p_simp_rep_data
/* (In)
The simplified representation data. Can be NULL for a user defined represenation. The instructions in the data will be used to create a new representation on the fly if such representation does not exist.
*/
ProMdl* result
/* (Out)
The handle to the model. Cannot be NULL.
Note: The function retrieves the model into memory, but neither displays the model nor makes it the current model. If during retrieving an assembly errors occur on regeneration then the assembly will include suppressed features.
Use ProSolidRetrievalErrorsGet to get the errors.
*/
)
Returns
The function successfully retrieved the model.
One or more of the input arguments are invalid
The file was not found.
The file exists but is not readable.
The specified representation was not stored in the file (for non user-defined representations).
The model is not a Creo Parametric model.
The model could not be retrieved.
The model name is too long.
The specified user defined representation was not found (in which case it may be created
on the fly following instructions in p_simp_rep_data
check p_result for being not NULL)
The function does not have permission to operate on this model.
See Also
User Guide References
도움이 되셨나요?