SUBSYSTEM OVERVIEW
S203 Interface (S203) Subsystem
The S203 subsystem provides functions specific to STEP AP 203. The S203 subsystem provides STEP dependent functions for creation of STEP information models as well as creation of a minimum set of configuration management entities.
GENERAL CONCEPTS
The s203_Initialize() and s203_Terminate() functions set up the required data structures. The function s203_Initialize must be called once before any other s203 function. The call to s203_Initialize must follow the step_Initialize call. Once processing is complete, the function s203_Terminate should be called prior to calling step_Terminate.
CREATING A STEP AP 203 MODEL
To create a STEP model that is ready to work with AP 203 IS entity structures, the following code sequence is used:
#include "ddf_Interface.h"
#include "mda_Interface.h"
#include "step_Interface.h"
#include "s203_Interface.h"
.
MDA_MODEL_INFO m_info;
int model;
.
pdx_Initialize (PDX_NOOPT);
step_Initialize (STEP_NOOPT);
s203_Initialize (S203_NOOPT);
.
mda_GetModelDefaults (MDA_NOOPT, &m_info);
s203_InitModelInfo (STEP_NOOPT, &m_info);
.
/* Other m_info fields set */
.
mda_AllocateModel (MDA_NOOPT, &m_info, &model);
The model is now ready to have STEP entities added. The model can be populated with the contents of a STEP Physical file by calling mda_ParseFile. The contents of a model can be written to a STEP Physical file by calling mda_FormatFile. The mda_intro manual page describes how additional entities are added to the model.