Category Drawings and detail, Object ProDrawing

Function ProDrawingGeneralviewCreate


Description
Creates a nonparametric general drawing view.

NOTE:Display the drawing using ProMdlDisplay() before calling this function.

Replacement in Object TOOLKIT: pfcModel2D::CreateView
Synopsis
#include <ProDrawing.h>
ProErrorProDrawingGeneralviewCreate(
ProDrawing drawing
/* (In)
The drawing.
*/
ProSolid solid
/* (In)
The drawing model of which to create the view
*/
int sheet_number
/* (In)
The number of the sheet on which to place the view
*/
ProBoolean exploded
/* (In)
Set to TRUE to make an exploded view of an assembly model.
*/
ProPoint3d position
/* (In)
The position of the view on the screen
*/
double scale
/* (In)
If scale >0, the view has an associated scale. If scale<=0, the view has the default scale.
*/
ProMatrix orientation
/* (In)
The orientation of the model in the view
*/
ProView* view
/* (Out)
The view.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more input arguments was invalid, or the drawing was not displayed.
PRO_TK_CRE_VIEW_BAD_SHEETThe specified sheet does not exist.
PRO_TK_CRE_VIEW_BAD_MODELThe specified model is not in the list of drawing models, or the function cannot make the specified view of this model.
PRO_TK_CRE_VIEW_BAD_EXPLODEThe function cannot explode the view model.
PRO_TK_GENERAL_ERRORA miscellaneous error occured, and the function failed.

Manual References:

  1. Drawings: Creating Views

Sample Code References:

  1. pt_examples ( TestDrwView.c )
  2. pt_userguide ( UgDrawingViews.c )