Synopsis
PDX_MSGT s203_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 AP203 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
S203_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.
S203_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.
S203_CREATE_OPTIONS
Uses the cfg model, known as cm_model to determine the necessary options. This will set the options to either S203_NOOPT, or any combination of S203_CREATE_PDWAD and S203_CREATE_PRDFSH.
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
S203 error code