# Synopsis

PDX_MSGT mda_SetCurModel(int model)

# Purpose

Set the current model.

# Description

The current model is changed to the specified model number. New entities allocated with mda_AllocateEntity will be created in this model. By calling this function with MDA_NULL_MODEL for the model parameter, the database will be left in the same state as it was before any models were allocated (i.e. there is no current model).

# Input

## model

The model number to change the default to

# Return

MDA error code