Synopsis
PDX_MSGT s041_CMToCFG(long option, int step_model, char *cfg_file)
Purpose
Convert a STEP CM model to CFG and format the resulting CFG file.
Description
This function will output a cfg file from a step model. It will take all of the present cm data, adding default values where necessary, and convert it to cfg for the final formatting of the cfg file. A return code of S041_COMPLETE will be returned when all of the PRODUCT_DEFINITION entities are translated. This function much be called once for each PRODUCT_DEFINITION entity present in the step file.
Input
option
Options (not used)
step_model
Model to extract data from. If this is MDA_NULL_MODEL, then the default cm model will be translated to a cfg file.
cfg_file
File to store the CFG data in
Return
S041_COMPLETE or error