Category Windows and views, Object ProView

Function ProViewNamesGet


Description
Retrieves the names of the views in the specified model. Views in a drawing are predefined PAN/ZOOM locations of the drawing that are given a name. This is different from a drawing view.

To get a list of names of drawing views use the functions ProDrawingViewsCollect() and ProDrawingViewNameGet().

Replacement in Object TOOLKIT: pfcViewOwner::SaveView
Synopsis
#include <ProView.h>
ProErrorProViewNamesGet(
ProMdl model
/* (In)
The handle to a part, assembly, or drawing.
*/
ProLine** view_names
/* (Out)
The list of view names. You can pass NULL for this argument. The function allocates the memory for this argument. To free the memory, call ProArrayFree().
*/
ProLine** alternate_names
/* (Out)
The list of alternate names. You can pass NULL for this argument. The function allocates the memory for this argument. To free the memory, call ProArrayFree().
*/
int* p_count
/* (Out)
The number of names in the view_names array.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_E_NOT_FOUNDNo view names were found for the specified model.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.
See Also
ProArrayFree

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_examples ( TestView.c )
  3. pt_geardesign ( GearDesignUI.c )