Synopsis

PDX_MSGT gdx_DeleteEntityFromParents(long option, MDA_PTR db_ptr)

Purpose

Delete a GDX entity from all its parents

Description

This function is to delete an entity from all its parents. The entity can be removed from the model by choosing the option GDX_DELETE_ENTITY. See more details in the following option description. An option must be specified by a caller, otherwise an error would be returned.

Input

option

GDX_DELETE_ENTITY

An entity would be removed from all its parents and its model.

GDX_NO_DELETE_ENTITY

An entity would be removed from all its parents, but NOT its model. A user should be aware of that the entity would still be in the model.

db_ptr

The database pointer for the GDX entity

Return

      GDX_NOERR
      GDX_INVALIDMODEL
      Low level error return
      .fi