Synopsis
PDX_MSGT mda_AllocateEntity2(long option, int model, DDF_TF tf, void *ent, MDA_PTR *db_ptr)
Purpose
Allocate a new entity in a model.
Description
This function is identical to mda_AllocateEntity except that the entity will be allocated in model rather than in the current model.
Input
option
See the options for mda_AllocateEntity.
model
Model to allocate entity in (ignored if MDA_RESERVED is specified)
tf
The TF of the entity to be allocated
ent
The location of the pointer to the entity
db_ptr
Previously reserved database pointer (only required when MDA_RESERVED is specified)
Output
ent
The location of the entity
db_ptr
The database pointer of the newly allocated entity (unless MDA_RESERVED is specified in which case the value is left unchanged).
Return
MDA error code