# Synopsis

PDX_MSGT mda_SetTF(void *ent, DDF_TF tf)

# Purpose

Set the type and form of an entity.

# Description

The type and form of the ent will be set to tf. The calling code must make sure that the physical structure of the original TF and tf are the same. This means that they must both be derived from the same base entity type in the ddf. If ent exists in a model (i.e. it has a database pointer), it will be marked as having been modified so that when the caller unlocks it the option MDA_MODIFIED will be implicitly set.

# Input

## ent

Entity whose type and form is to be set

## tf

The entity's type and form

# Return

MDA error code