Synopsis
PDX_MSGT igdx_GetGDXData(long option, MDA_PTR db_ptr, int model, MDA_PTR *gdx_db_ptr)
Purpose
Get the GDX definition data of the IGES entity.
Description
Gets the GDX definition data by creating 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 reuse 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 | GDX_PLANE |
| IGES_190_1 | GDX_RECT_TRIM_SURF -> GDX_PLANE |
| IGES_192_0 | GDX_CYLINDER |
| IGES_192_1 | GDX_RECT_TRIM_SURF -> GDX_CYLINDER |
| IGES_194_0 | GDX_CONE |
| IGES_194_1 | GDX_RECT_TRIM_SURF -> 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
IGDX_APPLYMTX
Apply the IGES entity matrix to the GDX entity
IGDX_KEEP_PARM
Convert and use the parm curve in the 141 even if parm is not prefered. Parm curves are likely to get deleted if 102's are present.
IGDX_KEEP_MODEL
Convert and use the model curve in the 141 even if the parm curve is prefered.
IGDX_USE_PARM
Override IGES 142 pref. flags. Use the parm curves. Delete the original model curves and regenerate them.
IGDX_USE_MODEL
Override IGES 142 pref. flags. Use the model curves. Delete the original parm curves.
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
IGDX_NOERR Low Level error return