# Synopsis

PDX_MSGT mda_WriteAppData(MDA_APP_DATA *ad_ptr, MDA_PTR db_ptr, void *data)

# Purpose

Write application data associated with an entity.

# Description

The contents of data is associated with the specified entity. The data may be then retrieved by calling mda_ReadAppData. The specified pointer must have been allocated in the same model as the application data was allocated in.

# Input

## ad_ptr

The handle returned from mda_AllocateAppData

## db_ptr

The entity whose application data is to be written

## data

The application data for the specified entity

# Return

MDA error code