User's Guide > Assembly: Simplified Representations > Retrieving Simplified Representations
Retrieving Simplified Representations
 
Function Introduced:
ProAssemblySimprepMdlnameRetrieve()
ProSimprepMdlnameRetrieve()
ProMdlRepresentationFiletypeLoad()
You can retrieve a named simplified representation from an assembly using the function ProAssemblySimprepMdlnameRetrieve(). This function retrieves the handle of an existing simplified representation from an assembly without getting the generic representation into memory.
The function takes as arguments—the names of the assembly and simplified representation, the representation data, the type of model to retrieve, and the handle to the assembly. Note that you must provide the name of the assembly. To retrieve an existing simplified representation, specify its name as one of the inputs to the argument of this function. The name of the simplified representation can be NULL if the representation data is provided. In this case, the instructions in the data are used to dynamically create a new simplified representation . The representation data can also be NULL if the name of the simplified representation is provided. Creo+ retrieves the simplified representation and any active submodels, and returns the ProAssembly handle.
You can retrieve geometry, graphics, symbolic simplified, boundary box, and default envelope representations into session using the function ProSimprepMdlnameRetrieve(). The input arguments to the function are:
model_name—Specifies the name of the model whose simplified representation is to be retrieved.
file_type—Specifies the type of model using the enumerated data type ProMdlfileType.
rep_type—Specifies the type of simplified representation using the enumerated data type ProSimprepType.
rep_name—Specifies the name of the simplified representation that must be retrieved.
.
Similar to ProAssemblySimprepMdlnameRetrieve(), the function ProSimprepMdlnameRetrieve() retrieves the simplified representation without bringing the master representation into memory. The function outputs the handle to the model. It does not display the simplified representation.
You can retrieve the simplified representation of a model into memory using the function ProMdlRepresentationFiletypeLoad().
這是否有幫助?