Synopsis
PDX_MSGT mda_AllocateModel(long option, MDA_MODEL_INFO *model_info, int *model)
Purpose
Allocate a model.
Description
The next available model will be allocated and initialized. Model specific information is passed in the model_info structure. This structure should be initialized with the function mda_GetModelDefaults and then application specific changes made in the structure before it is passed to this function. The number of the allocated model will be returned. By default the new model will become the current one unless the MDA_NOT_CURRENT option is used. If the setcur field in the model_info field is set to a value other than NULL, the referenced function will be invoked.
Input
option
MDA_MEMORY_MODEL
All entities resides in the memory (no temp file will be used).
MDA_NOT_CURRENT
Do not make the new model the current one. By default the new model will become the current model as if the function mda_SetCurModel had been called.
MDA_NO_DELAYED_WRITE
Do not use delayed write mechanism. This option is for compatibility, if you are using MDA_INVALIDATE.
model_info
Model information
Output
model
The new model number
Return
MDA error code