| DEPRECATED: | Since Creo 3 | |||||||||||||||||||
| SUPERSEDED BY: | ProIntfimportModelWithOptionsMdlnameCreate | |||||||||||||||||||
| Description | ||||||||||||||||||||
| Imports an external file, creating new models or a set of new models as required.
Note:This function is deprecated. Use ProIntfimportModelWithOptionsMdlnameCreate instead, with NULL profile and PRO_IMPORTREP_MASTER as the representation type. |
||||||||||||||||||||
| Synopsis | ||||||||||||||||||||
| #include <ProIntfimport.h> | ||||||||||||||||||||
| ProError | ProIntfimportModelCreate | ( | ||||||||||||||||||
| ProPath import_file | ||||||||||||||||||||
| /* (In) | ||||||||||||||||||||
| Full path to the file to be imported. Note: When importing CADDS models, ensure that the path is specified in lower case. | ||||||||||||||||||||
| */ | ||||||||||||||||||||
| ProIntfImportType type | ||||||||||||||||||||
| /* (In) | ||||||||||||||||||||
| The type of file to be imported. | ||||||||||||||||||||
| */ | ||||||||||||||||||||
| ProMdlType create_type | ||||||||||||||||||||
| /* (In) | ||||||||||||||||||||
| The type of model to create. This could be part, assembly, or drawing (for STEP associative drawings). | ||||||||||||||||||||
| */ | ||||||||||||||||||||
| ProName new_model_name | ||||||||||||||||||||
| /* (In) | ||||||||||||||||||||
| The name of the new top level import model. | ||||||||||||||||||||
| */ | ||||||||||||||||||||
| ProIntfimportLayerFilter filter_func | ||||||||||||||||||||
| /* (In) | ||||||||||||||||||||
| Callback to a function that determines how to display and map layers from the imported model. If this is NULL, the default layer handling will take place. | ||||||||||||||||||||
| */ | ||||||||||||||||||||
| ProAppData application_data | ||||||||||||||||||||
| /* (In) | ||||||||||||||||||||
| The application data to be passed to the filter function. Can be NULL. | ||||||||||||||||||||
| */ | ||||||||||||||||||||
| ProMdl* created_model | ||||||||||||||||||||
| /* (Out) | ||||||||||||||||||||
| Handle to the top level created model. This could be a part, assembly, or drawing. | ||||||||||||||||||||
| */ | ||||||||||||||||||||
| ) | ||||||||||||||||||||
| Returns | ||||||||||||||||||||
|
||||||||||||||||||||