Retrieving Models
Methods Introduced:
These methods cause Creo Parametric to retrieve the model that corresponds to the IpfcModelDescriptor argument.
The method
IpfcBaseSession.RetrieveModel() retrieves the specified model into the
Creo Parametric session given its model descriptor from a standard directory. This method ignores the path argument specified in the model descriptor. But this method does not create a window for it, nor does it display the model anywhere.
The method
IpfcBaseSession.RetrieveModelWithOpts() retrieves the specified model into the
Creo Parametric session based on the path specified by the model descriptor. The path can be a disk path, a workspace path, or a commonspace path. The
Opts argument (given by the
IpfcRetrieveModelOptions object) provides the user with the option to specify simplified representations.
The method
IpfcBaseSession.OpenFile() brings the model into memory, opens a new window for it (or uses the base window, if it is empty), and displays the model.
The file version set by the
IpfcModelDescriptor.FileVersion property is ignored by the
IpfcBaseSession.RetrieveModelWithOpts() and
IpfcBaseSession.OpenFile() methods. Instead, the latest file version of the model is used by these two methods.
To get a handle to the model you need, use the property
IpfcWindow.Model.
The method
IpfcSolid.HasRetrievalErrors() returns a true value if the features in the solid model were suppressed during the RetrieveModel or OpenFile operations. This method must be called immediately after the
IpfcBaseSession.RetrieveModel() method or an equivalent retrieval method.