Category Windows and views, Object ProView

Function ProViewRetrieve


Description
Retrieves the current view (the orientation) of the specified object, as stored under the given name. The function is equivalent to the Creo Parametric View, Saved Views, Set.
Replacement in Object TOOLKIT: pfcViewOwner::RetrieveView
Synopsis
#include <ProView.h>
ProErrorProViewRetrieve(
ProMdl model
/* (In)
The handle to a part or assembly. If this is NULL, the function uses the current object.
*/
ProLine view_name
/* (In)
The name of the view to be retrieved.
*/
ProView* p_view
/* (Out)
The handle to the retrieved view.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the view.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_E_NOT_FOUNDThe function was unable to retrieve a view with the specified name.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Basic Graphics: Storing Named Views
  3. User Interface: Basic Graphics: Storing Named Views

Sample Code References:

  1. pt_examples ( TestView.c )
  2. pt_geardesign ( GearDesignUI.c )