# Synopsis

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

# Purpose

Read application data associated with an entity.

# Description

The application data associated with the specified entity is copied to the location pointed to by data. If no application data was written with mda_WriteAppData the resulting data will be undefined. If the MDA_ZERO_DATA option was specified in the call to mda_AllocateAppData, the resulting data will be zeroes. 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 returned

# Output

## data

The application data for the specified entity

# Return

MDA error code