# Synopsis

PDX_MSGT gcr_ModelVar2(long option, MDA_PTR orig_db_ptr, int gdx_units, double precision, double angle_precision, double native_precision, char *header, int gdx_model, MDA_PTR *gdx_modelvar_ptr)

# Purpose

Create a GDX Model_Var Entity

# Input

## option

### GCR_NOVALIDATE

No validation will occur on the input data.

## orig_db_ptr

The original entities orig_db_ptr as obtained from the mda_GetOrigDbptr call, or MDA_NULL_PTR.

## gdx_units

Units for the GDX data.

## precision

Model space tolerance set in GDX.

## angle_precision

Angular Precision set in GDX.

## native_precision

Maximum linear precision in the native system.

## header

Header to associate with this model.

## gdx_model

The GDX model for entity creation.

# Output

## gdx_modelvar_ptr

GDX_MODEL_VAR Entity database pointer

# Return

          GCR_NOERR
          GCR_INVALID_MODEL
          Low level error return
          .fi