Retrieval
Standard Creo.JS provides several methods that are capable of retrieving models. When using these methods with Windchill servers, remember that these methods do not check out the object to allow modifications.
Methods Introduced:
The methods
pfcBaseSession.RetrieveModel(),
pfcBaseSession.RetrieveModelWithOpts(), and
pfcBaseSession.OpenFile() load an object into a session given its name and type. The methods search for the object in the active workspace, the local directory, and any other paths specified by the
search_path configuration option.
The method
pfcBaseSession.RetrieveModel() retrieves the specified model into the
Creo Parametric session from standard directory.
The method
pfcBaseSession.RetrieveModelWithOpts() retrieves the specified model into the
Creo Parametric session based on the path specified in the model descriptor.
The method
pfcBaseSession.OpenFile() retrieves the specified model and displays it in a window.