Synopsis

PDX_MSGT dgdx_GetGDXData(long option, MDA_PTR dxf_db_ptr, GDX_MATRIX gdx_mtx, int gdx_model, MDA_PTR *gdx_db_ptr)

Purpose

Create the GDX data (in specified model) corresponding to a DXF entity.

Description

Gets the GDX definition data by creating a new GDX entity in the gdx_model model from the DXF entity definition. Will apply "gdx_mtx" to resulting GDX entity. The GDX matrix can possibly include non-uniform scaling which will alter the entity mapping for arcs and conics.

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 DXF entities are as follows:

DXF entity GDX entity
DXF_3DFACE GDX_POLY_SHELL
DXF_ARC GDX_ARC
DXF_CIRCLE GDX_ARC
DXF_CURVE_FIT GDX_COMP_CURVE
DXF_ELLIPSE GDX_CONIC
DXF_LINE GDX_POLYLINE
DXF_POINT GDX_POLYLINE
DXF_2DPOLYLINE GDX_COMP_CURVE, GDX_POLYLINE, GDX_ARC
DXF_LWPOLYLINE GDX_COMP_CURVE, GDX_POLYLINE, GDX_ARC
DXF_3DPOLYLINE GDX_COMP_CURVE, GDX_POLYLINE, GDX_ARC
DXF_BEZIER_BSPLINE_SURF GDX_NURB_SURF
DXF_BSPLINE_CURVE GDX_NURB_CURVE
DXF_BSPLINE_SURF GDX_NURB_SURF
DXF_POLYFACE_MESH GDX_POLY_SHELL
DXF_POLYGON_MESH GDX_RECT_MESH
DXF_SPLINE_FIT GDX_NURB_CURVE
DXF_SPLINE GDX_NURB_CURVE
Any Extruded Entity GDX_EXT_SURF

Input

option

DGDX_FORM_0

Process the entity as form 0 of the given type.

dxf_db_ptr

The DXF entity database pointer

gdx_mtx

GDX matrix

gdx_model

The GDX model in which to create the GDX entity

Output

gdx_db_ptr

The GDX entity database pointer

Return

      DGDX_NOERR
      DGDX_NO_GDX_ENTITY
      Low Level error return
      .fi