# Synopsis

PDX_MSGT igeo_GetGDXData2(long option, MDA_PTR db_ptr, int model, MDA_PTR *gdx_db_ptr)

# Purpose

Get the GDX definition data of the IGES entity.

# Description

This function is being maintained for compatibility with previous versions. Use igdx_GetGDXData.

Gets the GDX definition data by create a new GDX entity definition from the IGES entity definition in the model model. The GDX entity should be deleted using the GDX function gdx_DeleteEntity after the application has finished using the GDX entity definition unless the application intends to re-use the GDX entity. The GDX entities that result from the IGES entities are as follows:

IGES entity | GDX entity
–
IGES_100_0 | GDX_ARC
IGES_102_0 | GDX_COMP_CURVE
IGES_104_0, IGES_104_1, IGES_104_2, | GDX_CONIC
IGES_104_3
IGES_106_11, IGES_106_12, IGES_106_13, | GDX_POLYLINE
IGES_106_63
IGES_110_0 | GDX_POLYLINE
IGES_112_0 | GDX_SPLINE_CURVE
IGES_116_0 | GDX_POLYLINE
IGES_126_0, IGES_126_1, IGES_126_2, | GDX_NURB_CURVE
IGES_126_3, IGES_126_4, IGES_126_5
IGES_130_0 | GDX_OFFSET_CURVE
IGES_141_0 | GDX_COMP_EDGE_CURVE
IGES_142_0 | GDX_COMP_EDGE_CURVE

IGES entity | GDX entity
–
IGES_108_0 | GDX_PLANE
IGES_108_1 | GDX_FACE
IGES_114_0 | GDX_SPLINE_SURF
IGES_118_0 | GDX_RULED_SURF
IGES_120_0 | GDX_REV_SURF
IGES_122_0 | GDX_EXT_SURF
IGES_128_0, IGES_128_1, IGES_128_2, | GDX_NURB_SURF
IGES_128_3, IGES_128_4, IGES_128_5,
IGES_128_6, IGES_128_7, IGES_128_8,
IGES_128_9
IGES_140_0 | GDX_OFFSET_SURF
IGES_143_0 | GDX_FACE
IGES_144_0 | GDX_FACE
IGES_190_0, IGES_190_1 | GDX_PLANE
IGES_192_0, IGES_192_1 | GDX_CYLINDER
IGES_194_0, IGES_194_1 | GDX_CONE
IGES_196_0, IGES_196_1 | GDX_SPHERE
IGES_198_0, IGES_198_1 | GDX_TORUS

IGES entity | GDX entity
–
IGES_186_0 | GDX_SOLID
IGES_514_1 | GDX_SOLID

# Input

## option

### IGEO_APPLYMTX

Apply the IGES entity matrix to the GDX entity

### IGEO_KEEP_PARM

Convert and use the parm curve in the 142 even if parm is not prefered. Parm curves are likely to get deleted if 102's are present.

### IGEO_KEEP_MODEL

Convert and use the model curve in the 142 even if the parm curve is prefered.

### IGEO_USE_PARM

Convert and use the Parm curves in the 142. Delete and regenerate the Model curves.

### IGEO_USE_MODEL

Convert and use the Model curves in the 142. Delete the Parm curve

## db_ptr

The IGES entity database pointer

## model

The GDX model to create the GDX entity in

# Output

## gdx_db_ptr

The GDX entity database pointer.

# Return

          IGEO_NOERR
          IGEO_NOGDXENTITY
          IGEO_INVALIDMODEL
          Low Level error return
          .fi