# Synopsis

PDX_MSGT step_LoadComponentGeometry(long option, int step_model, MAP_INFO *map_info, int gdx_model)

# Purpose

Convert the STEP component geometry to GDX.

# Description

Traverse the GDX components and map the corresponding STEP product geometry to GDX. If no GDX components are found, the entire STEP assembly and geometry will be converted to GDX.

The option SAFP_SAVE_HASH_TABLE must be used while parsing the STEP file in.

Attribute processing and external file references are supported with the file path included in the map_info->data field.

# Input

## option

### STEP_SINGLE_COMPONENT

Keep component if not assembly

### STEP_GDT

Map GD&T polylines

### STEP_NO_ATTRIBUTES

Don't map any attributes

### STEP_ALL_ATTRIBUTES

Map attributes for all entities

### STEP_SEMANTIC_GDT

Map semantic GD&T and polylines

### STEP_PFID_LABEL_ATTRIBUTES

Map STEP PFID to attribute label if STEP name is not set

### STEP_CREATE_ALTERNATE_COMPONENT

Create GDX alternate components if alternate shape and/or alternate representation is detected

## step_model

Model containing step entities

## gdx_model

Model that the gdx geometry will be created in

## map_info

Mapping info structure defining STEP to GDX

# Return

          SGDX_NOERR
          .fi