# Synopsis

PDX_MSGT gdx_EntitySetLevel(long option, MDA_PTR gdx_ent_ptr, MDA_COUNT num_of_levels, char **level)

# Purpose

Given a GDX entity, set the native level (layer).

# Description

Get the orig_db_ptr for the specified GDX entity and find the associated attribute entity. If an attribute is not found create one, if an attribute has multiple references, remove a reference and copy the attribute, otherwise just copy the specified level into the attribute.

# Input

## option

Options (not used)

## gdx_ent_ptr

GDX entity

## num_of_levels

Number of levels or '0'

## level

Array of level names or 'NULL'

# Return

          GDX_NOERR
          .fi