Synopsis

PDX_MSGT mda_SaveEntities(long option, char *file, long num_ptrs, MDA_PTR *db_ptrs)

Purpose

Save entities as an ASCII file.

Description

The specified entities and their children will be saved as an ASCII file that can be restored using mda_RestoreModel. All entities specified in db_ptrs must be in the same model.

See the mda_intro manual page for additional information about saving and restoring models.

Input

option

MDA_OVERWRITE

If the destination file already exists it is to be overwritten. The default is to return an error if the file already exists.

file

File to store model in

num_ptrs

Number of entities in db_ptrs to save

db_ptrs

Array of database pointers to be saved

Return

MDA error code