| Description |
| Creates a new 2d Creo Parametric model by importing a 2d geometry file. Unlike Pro2dImportCreate() and Pro2dImportMdlnameCreate() imports all the sheets for formats supporting multi-sheet drawings (PRO_IGES_FILE, PRO_DXF_FILE, PRO_DWG_FILE PRO_CCD_DRAWING_FILE). If mtype is PRO_MDL_DWGFORM only first two sheets will be imported due to this model type restriction. Note: In Creo 3 this function does not support names longer than 31 characters. It will return PRO_TK_BAD_INPUTS for longer names. The support for ProMdlName will be added in a future release. |
| Synopsis |
| #include <ProUtil.h> |
| ProError | Pro2dImportAllSheets | ( |
| ProImportExportFile format | |
| /*
(In) |
| The type of file to be imported. The following values are supported: Note: To import the 2d MEDUSA file set the config option "allow_medusa_draw_import" to yes. |
| */ |
| ProPath filename | |
| /*
(In) |
| The name (absolute path or relative path) of the file to be imported. The name of the MEDUSA files must have the format s.objectname. |
| */ |
| ProMdlName name | |
| /*
(In) |
| The name of the model to be created. |
| */ |
| ProMdlType mtype | |
| /*
(In) |
| The type of model to create. Must be PRO_MDL_DRAWING, PRO_MDL_LAYOUT, PRO_MDL_DIAGRAM or PRO_MDL_DWGFORM. |
| */ |
| ProBoolean import_2d_views | |
| /*
(In) |
| Whether to import 2d drawing views. |
| */ |
| ProBoolean scale_to_fit | |
| /*
(In) |
| If the current model has a different sheet size from that specified by the imported file, scale_to_fit should be TRUE to retain the current sheet size, or FALSE to adopt the new one. |
| */ |
| ProBoolean fit_left_corner | |
| /*
(In) |
| If the imported file retain its original sheet size, the bottom left corner of the file will be adjusted to the bottom left corner of the current model for PRO_B_TRUE, and imported "as is" for PRO_B_FALSE. |
| */ |
| ProMdl* new_model | |
| /*
(Out) |
| The new model that Creo Parametric created. |
| */ |
| ) |
| Returns |
|
|