Category Windows and views, Object ProView

Function ProViewRefit


Description
Refits the display of an object in the window specified by the model and view. The type of the object should be either drawing, part or assembly.
Synopsis
#include <ProView.h>
ProErrorProViewRefit(
ProMdl model
/* (In)
Handle to the object which is displayed in a window. The type of the object should be either drawing, part or assembly.
*/
ProView view
/* (In)
Handle to the view used to display the object. For a drawing model, this should be the background view, as can be obtained by ProDrawingBackgroundViewGet. Can be NULL for a solid model in the current window.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully refits the model to the window.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_E_NOT_FOUNDEither view or model was not found.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.

Manual References:

  1. User Interface: Basic Graphics: Solid Orientation

Sample Code References:

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