User's Guide > Simplified Representations > Retrieving Simplified Representations
Retrieving Simplified Representations
 
Methods Introduced:
You can retrieve a named simplified representation from a model using the method pfcBaseSession.RetrieveAssemSimpRep(), which is analogous to the Assembly mode option Retrieve Rep in the SIMPLFD REP menu. This method retrieves the object of an existing simplified representation from an assembly without fetching the generic representation into memory. The method takes two arguments, the name of the assembly and the simplified representation data.
To retrieve an existing simplified representation, pass an instance of pfcRetrieveExistingSimpRepInstructions.Create() and specify its name as the second argument to this method. Creo+ retrieves that representation and any active submodels and returns the object to the simplified representation as a pfcAssembly object.
You can retrieve geometry, graphics, and symbolic simplified representations into session using the methods pfcBaseSession.RetrieveGeomSimpRep(), pfcBaseSession.RetrieveGraphicsSimpRep(), and pfcBaseSession.RetrieveSymbolicSimpRep() respectively. Like pfcBaseSession.RetrieveAssemSimpRep(), these methods retrieve the simplified representation without bringing the master representation into memory. Supply the name of the assembly whose simplified representation is to be retrieved as the input parameter for these methods. The methods output the assembly. They do not display the simplified representation.
Was this helpful?