API 설명서 > Drawings and detail > Object ProDrawing > Function ProDrawingFromTemplateCreate
Function ProDrawingFromTemplateCreate
Description
Creates a new drawing from a template Note: In Creo 5 this function does not support names longer than 32 characters. It will return PRO_TK_BAD_INPUTS for longer names. The support for ProMdlName will be added in a future release.
Synopsis
#include <ProDrawing.h>
ProDrawingFromTemplateCreate
(
ProMdlName new_name
/* (In)
The name for the new drawing
*/
ProMdlName dwg_template
/* (In)
The name of the drawing template
*/
/* (In)
The name and type of the solid model to be used in the new drawing.
*/
/* (In)
Flags for drawing creation. Options include: PRODWGCREATE_DISPLAY_DRAWING: display new drawing in a window. PRODWGCREATE_SHOW_ERROR_DIALOG: display template error dialog to the user. PRODWGCREATE_WRITE_ERRORS_TO_FILE: write errors to disk file.
*/
ProDrawing* drawing
/* (Out)
The new drawing
*/
/* (Out)
The list of warnings and errors caused by the creation.
*/
)
Returns
The function successfully created the drawing, without errors.
The drawing with name new_name already exists.
The template and/or the drawing model was not found.
The template and/or the drawing model name is not valid.
The function created the drawing, but there were one or more errors.
The function does not have permission to open the template or the solid model.
User Guide References
도움이 되셨나요?