Synopsis

PDX_MSGT s214_CreateMinCMModel(long option, int step_model, int cm_model, MDA_PTR *db_ptr, MDA_PTR *db2_ptr)

Purpose

Create minimum CM data in specified MDA model.

Description

Create the minimum CM entities (as specified by the AP214 doc.) in the step_model from data supplied in the cm_model. If the cm_model is MDA_NULL_MODEL or if it is invalid, then all CM entities will be be created with default values.

Input

option

S214_CREATE_PDWAD

Create a product_definition-with-associated-document entity instead of a product_definition entity (which is the default). If this option is specified, all of the cfg_product_definition fields should be set.

S214_CREATE_PRDFSH

Create the product_definition_shape entity. This entity points to the product_definition entity (or PDWAD). This entity should only be created if geometry will be added later.

S214_CREATE_OPTIONS

Uses the cfg model, known as cm_model to determine the necessary options. This will set the options to either S214_NOOPT, or any combination of S214_CREATE_PDWAD and S214_CREATE_PRDFSH.

S214_CD

Create the entities associated with the CD version of AP214 instead of the DIS version which is the default.

step_model

MDA model where STEP CM entities are to be created.

cm_model

MDA model which contains CM (part 44) entities. If MDA_NULL_MODEL is specified, then all CM entities will be created with default values.

Output

db_ptr

Database pointer of created product_definition, product_definition_with_associated_document, or product_definition_shape entity depending on the option.

db2_ptr

Database pointer of created product.

Return

S214 error code