# Synopsis

PDX_MSGT sgdx_GetGDXData(long option, MDA_PTR step_db_ptr, int gdx_model, MDA_PTR *gdx_db_ptr)

# Purpose

Get the GDX data (in the specified model) corresponding to a STEP entity.

# Description

Gets the GDX definition data by creating a new GDX entity in the gdx_model model from the STEP entity definition. 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.

Note that STEP allows specification of angular units while GDX requires all angular units to be in radians. This function and its underlying functions assume that the current STEP plane angle unit has been specified by calling step_SetPlaneAngleUnit (the default is STEP_DEGREES) and conversions are done accordingly.

By default program converts STEP CURVE_BOUNDED_SURFACE entity to GDX CURVE_BOUNDED_SURACE entity. Need to specify SGDX_CRBNSR_TO_FACE option to convert that to GDX Face entity.

The GDX entities that result from the STEP entities are as follows:

STEP entity | GDX entity
–
CARTESIAN_POINT | GDX_POLYLINE
LINE | GDX_POLYLINE
CIRCLE | GDX_ARC
ELLIPSE | GDX_CONIC
HYPERBOLA | GDX_CONIC
PARABOLA | GDX_CONIC
POLYLINE | GDX_POLYLINE
UNIFORM_CURVE, QUASI_UNIFORM_CURVE, | GDX_NURB_CURVE
BEZIER_CURVE,
B_SPLINE_CURVE_WITH_KNOTS,
RATIONAL_UNIFORM_CURVE,
RATIONAL_QUASI_UNIFORM_CURVE,
RATIONAL_BEZIER_CURVE,
RATIONAL_B_SPLINE_CURVE_WITH_KNOTS
TRIMMED_CURVE | GDX_TRIM_CURVE
COMPOSITE_CURVE | GDX_COMP_CURVE
OFFSET_CURVE_2D, OFFSET_CURVE_3D | GDX_OFFSET_CURVE

STEP entity | GDX entity
–
PLANE | GDX_PLANE
CYLINDRICAL_SURFACE | GDX_CYLINDER
CONICAL_SURFACE | GDX_CONE
SPHERICAL_SURFACE | GDX_SPHERE
TOROIDAL_SURFACE | GDX_TORUS
DEGENERATE_TOROIDAL_SURFACE | GDX_REV_SURF
SURFACE_OF_LINEAR_EXTRUSION | GDX_EXT_SURF
SURFACE_OF_REVOLUTION | GDX_REV_SURF
UNIFORM_SURFACE, | GDX_NURB_SURF
QUASI_UNIFORM_SURFACE,
BEZIER_SURFACE,
B_SPLINE_SURFACE_WITH_KNOTS,
RATIONAL_UNIFORM_SURFACE,
RATIONAL_QUASI_UNIFORM_SURFACE,
RATIONAL_BEZIER_SURFACE,
RATIONAL_B_SPLINE_SURFACE_WITH_KNOTS
RECTANGULAR_TRIMMED_SURFACE | GDX_RECT_TRIM_SURF
OFFSET_SURFACE | GDX_OFFSET_SURF
CURVE_BOUNDED_SURFACE | GDX_FACE
| GDX_CURVE_BOUNDED_SURF
OPEN_SHELL
CLOSED_SHELL | GDX_SHELL
MANIFOLD_SOLID_BREP | GDX_SOLID
BREP_WITH_VOIDS

# Input

## option

### SGDX_CRBNSR_TO_FACE

- Default option Create a GDX face entity from CrBnSr entity.

### SGDX_CRBNSR_TO_CBS

- Not recommended Create a GDX CBS entity from CrBnSr entity.

## step_db_ptr

The STEP entity database pointer

## gdx_model

The GDX model to create the GDX entity in

# Output

## gdx_db_ptr

The GDX entity database pointer

# Return

          SGDX_NOERR
          SGDX_NOGDXENTITY
          SGDX_INVALIDGDXMODEL
          Low Level error return
          .fi