# Synopsis

PDX_MSGT s041_CreatePrdCnt(long option, MDA_PTR appcnt_ptr, MDA_PTR *PrdCnt_ptr)

# Purpose

Create the PRODUCT_CONTEXT entity.

# Description

Creates the PRODUCT_CONTEXT entity. The fields within this entity will be set from existing entities in the CFG model (if used) or set to appropriate default values.

Note that the PRODUCT_CONTEXT entity is not actually defined in part 41. It is however identical in structure for both AP203 and AP214. The function resides in the s041 subsystem only as a matter of convenience.

# Input

## option

Options (not used)

## appcnt_ptr

MDA pointer to application_context entity.

# Output

## PrdCnt_ptr

The database pointer of the resulting mechanical_context entity.

# Return

S041 error code