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 pfcSession.BaseSession.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 pfcSimpRep.pfcSimpRep.RetrieveExistingSimpRepInstructions_Create and specify its name as the second argument to this method. Creo application retrieves that representation and any active submodels and returns the object to the simplified representation as a pfcAssembly.Assembly object.
You can retrieve geometry, graphics, and symbolic simplified representations into session using the methods pfcSession.BaseSession.RetrieveGeomSimpRep, pfcSession.BaseSession.RetrieveGraphicsSimpRep, and pfcSession.BaseSession.RetrieveSymbolicSimpRep respectively. Like pfcSession.BaseSession.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.
The method wfcSession.WSession.RetrieveDefaultEnvelopeSimprep retrieves the simplified representation of the default envelope of an assembly in the session. This method is not supported for parts.
The method wfcSession.WSession.LoadModelRepresentation retrieves the specified simplified representation of a model into memory.
Was this helpful?