Category Drawings and detail, Object ProDrawing

Function ProDrawingProjectedviewCreate


Description
Creates a projected drawing view. The projection view parent must be any of the following types: broken, unfolded xsec, align xsec, of surface, or of flat ply.

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

Replacement in Object TOOLKIT: pfcModel2D::CreateView
Synopsis
#include <ProDrawing.h>
ProErrorProDrawingProjectedviewCreate(
ProDrawing drawing
/* (In)
The drawing.
*/
ProView parent_view
/* (In)
The parent 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
*/
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_PARENTThe parent view for project does not exist, or is of unsupported type, or does not align with the selected position.
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 )
  3. pt_userguide ( UgDrawingViews.c )