# Synopsis

PDX_MSGT s044_CreateLink(long option, char *id, char *name, char *desc, MDA_PTR prddfn_ptr, MDA_PTR prddfn2_ptr, MDA_PTR shprpr_ptr, MDA_PTR shprpr2_ptr, MDA_PTR a2pl3d_ptr, MDA_PTR a2pl3d2_ptr, int step_model)

# Purpose

Create link between 2 products.

# Description

This function will create the entities required to link a component to an assembly using the context dependent shape representation method or the mapped item method. .nf

CONTEXT DEPENDENT SHAPE REPRESENTATION METHOD

Assembly Link Component

PrdDfn <---- NAUO ----> PrdDfn ^ ^ ^ | | | PrDfSh PrDfSh PrDfSh ^ ^ ^ | | | ShDfRp CDSR ShDfRp | | | v v v ShpRpr <---- RprRlt ----> ShpRpr | | | v v v RprItm <---- ItDfTr ----> RprItm

MAPPED ITEM METHOD

Assembly Link Component

PrdDfn <---- NAUO ----> PrdDfn ^ ^ ^ | | | PrDfSh PrDfSh PrDfSh ^ ^ ^ | | | ShDfRp ShDfRp ShDfRp | | | v v v +-- ShpRpr +-- ShpRpr +-> ShpRpr | | | | | | | v | v | v | RprItm <-+-- +-> MppItm +-> RprItm | | | | +---------------------+ v | RprMp --+ .fi

# Input

## option

### S044_MAPPED_ITEM

Create mapped item version of assembly.

## id

ID for NAUO

## name

Name for NAUO

## desc

Description for NAUO

## prddfn_ptr

Database pointer of assembly PrdDfn

## prddfn2_ptr

Database pointer of component PrdDfn

## shprpr_ptr

Database pointer of assembly ShpRpr

## shprpr2_ptr

Database pointer of component ShpRpr

## a2pl3d_ptr

Database pointer of assembly A2Pl3D

## a2pl3d2_ptr

Database pointer of component A2Pl3D

## step_model

STEP model to create entities in

# Return

S044 error code