Synopsis

PDX_MSGT igdx_IgesToGdx(long option, char *igesFile, char *mapFile, int *igesModel, int *gdxModel)

Purpose

Translate IGES file to GDX

Description

This function will map the entities from the specified IGES file into a GDX model. An optional map file may be specified to use when mapping the entities. If a mapping file is not specified a default set of mappings will be used. The models may be pre-allocated in the calling routine or allocated in this function. If the models are allocated in this function, back pointers will be enabled in both. The model names, which are used for mapping, will be 'igesModel' and 'gdxModel' if allocated in this function. Attributes are not currently mapped and subfigures and groups are exploded.

Input

option

IGDX_MAP_ATTRIBUTES

Take the IGES Attributes into GDX

igesFile

Name of IGES file to translate

mapFile

Optional name of IGES to GDX mapping file (allocated model names will be 'gdxModel' and 'igesModel'). If NULL, default mappings will be used.

igesModel

Pre-allocated model or MDA_NULL_MODEL to allocate new model

gdxModel

Pre-allocated model or MDA_NULL_MODEL to allocate new model

Output

igesModel

IGES model containing parsed entities

gdxModel

GDX model containing mapped IGES entities

Return

Error or PDX_NOERR