Category Drawings and detail, Object ProDrawing

Function ProDrawingSheetCreate


Description
Adds a sheet to a drawing-type model. The valid drawing-type models are as follows: Notebook, Format, Drawing, Diagram, Report.
Replacement in Object TOOLKIT: pfcSheetOwner::AddSheet
Synopsis
#include <ProDrawing.h>
ProErrorProDrawingSheetCreate(
ProDrawing drawing
/* (In)
The drawing-type model.
*/
int* new_sheet
/* (Out)
The number of the sheet, if the function successfully created it. Otherwise, this is -1.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully added the sheet to the model.
PRO_TK_GENERAL_ERRORThe function failed because of an internal error.
PRO_TK_BAD_INPUTSOne of the arguments is bad (NULL or invalid).
PRO_TK_E_NOT_FOUNDThe function failed because you do not have the required modules.
PRO_TK_INVALID_ITEMThe function did nothing because the model already has the maximum number of sheets allowed.

Manual References:

  1. Drawings: Drawing Sheets
  2. Drawings: Drawing Sheets

Sample Code References:

  1. pt_examples ( TestDrwSheets.c )
  2. pt_userguide ( UgDrawingViews.c )
  3. pt_userguide ( UgSheetAdd.c )