Synopsis
PDX_MSGT s203_InitModelInfo(long option, MDA_MODEL_INFO *model_info)
Purpose
Setup model to contain STEP data.
Description
The model information structure is filled in with the appropriate defaults for the STEP interface. The model_info struct should first be initialized by calling mda_GetModelDefaults. The model information will be set so that mda_ParseFile invokes the STEP interface function safp_ParseFile and mda_FormatFile invokes saff_FormatFile. See the appropriate manual page for more information on these functions. Only the following fields in model_info can be modified by the application after this function is called:
.nf modelnam validate backptrs allocate Free setcur udata .fi
The ddf will automatically be set up to use the IS version of the AP 203 schema.
The backptrs field is set to on (1) by default.
Input
option
S203_E2
Initialize the model for AP203 edition 2, the default is AP203 IS
S203_EXT
Initialize the model for AP203 IS with extensions for colors, layers, geometric validation properties, associated text and associated dimensions
model_info
The model defaults returned from mda_GetModelDefaults
Output
model_info
Model information initialized for the STEP interface
Return
STEP_NOERR