# Synopsis

PDX_MSGT s044_CreateAssembly(long option, int step_model, OTM_TREE *assy_tree, OTM_TREE **step_tree)

# Purpose

Create assembly from tree.

# Description

Traverse the specified assembly tree and create the product information for each component (see s044_CreateProduct). Each child component is linked to it's parent (see s044_CreateLink). Products are tracked to avoid duplication. The returned step_tree contains the product definition and shape representation created for each component.

# Input

## option

Options (see s044_CreateLink)

## step_model

STEP model

## assy_tree

Assembly tree (output from s044_ParseFile)

# Output

## step_tree

Step tree

# Return

S044_NOERR or error.