# Synopsis

PDX_MSGT sgdx_StepToGdx(long option, char *stepFile, char *mapFile, int *stepModel, int *gdxModel)

# Purpose

Translate STEP file to GDX

# Description

This function will map the entities from the specified STEP 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 'stepModel' and 'gdxModel' if allocated in this function. Attributes are not currently mapped but product structure (assembly information) is maintained.

# Input

## option

### SGDX_MAP_ATTRIBUTES

Take the STEP Attributes into GDX

## stepFile

Name of STEP file to translate (only AP203 and AP214 currently supported)

## mapFile

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

## stepModel

Pre-allocated model or MDA_NULL_MODEL to allocate new model

## gdxModel

Pre-allocated model or MDA_NULL_MODEL to allocate new model

# Output

## stepModel

STEP model containing parsed entities

## gdxModel

GDX model containing mapped STEP entities

# Return

Error or PDX_NOERR