# Synopsis

PDX_MSGT s214_CreateExtFileRef(long option, int step_model, MDA_PTR shprpr_ptr, MDA_PTR prddfn_ptr, char *doc_id, char *doc_type, char *version_id, char *ext_file)

# Purpose

Create external file reference.

# Description

Create an external file reference conforming to the PDM schema usage guide (this is only valid for AP214 since some of the entities do not exist in AP203). The external file reference (ext_file) will be attached to the shape representation (shprpr_ptr) and product definition (prddfn_ptr) via several entities.

# Input

## option

Not used

## step_model

Model to create entities in

## shprpr_ptr

Database pointer of the shape representation entity

## prddfn_ptr

Database pointer of the product definition entity

## doc_id

Id attribute for document file entity

## doc_type

Product data type attribute for document type entity

## version_id

Assigned id attribute for applied external identification assignment entity

## ext_file

Source id attribute for external source entity

# Return

S214_NOERR or error