Synopsis

PDX_MSGT ijam_MakeJAMA(long option, int in_model, int out_model)

Purpose

Create JAMA-IS model from IGES model.

Description

This function creates a JAMA-IS model from a IGES model. An output model must be allocated before this function is called.

Note: This function utilizes iges_MapEntity. The caller must invoke iges_MapInitialize at some point before calling ijam_MakeJAMA and must call iges_MapTerminate afterwards.

If the IJAM_DELETE_NON_JAMA option is specified, top level entities in in_model which conform to JAMA-IS will be copied into out_model with proper DE information. If IJAM_MAP_NON_JAMA is specified, JAMA-IS and JAMA-IS acceptable top level entites will be copied into out_model. For NON-JAMA entities to process, it will be mapped by iges_MapEntity, and the NON-JAMA entities will be copied into out_model. However, the certain entities (i.e. 308:0, 402:13, 408:0, 314:0, 406:1) will be mapped no matter what option is specified.

.RS 5 .TS tab (/); l l . Mapping Table _ 108:1 -> 128:0 118:0 -> 128:0 118:1 -> 128:0 120:0 -> 128:0 122:0 -> 128:0 130:0 -> 126:0 140:0 -> 128:0 143:0 -> 144:0

Special Cases _ 102 -> 126 (if non-JAMA child entity) 104:0 -> appropriate form set 126:* -> 126:0 128:* -> 128:0 308:0 -> decomposed 314:0 -> replaced by approximated color 402:13 -> decomposed 406:1 -> replaced by the entity's first level number 408:0 -> decomposed Start Section -> JAMA/IS line Global Section -> fields copied with JAMA/IS field changes .TE .RE

Input

option

IJAM_DELETE_NON_JAMA

Copy only toplevel entites which conforms to JAMA-IS.

IJAM_MAP_NON_JAMA

Attempt to map NON-JAMA entities, and copy all entites on success of mapping.

IJAM_JAMAOLD

Invoke the subsystem for the 'old' JAMA/IS version. Currently, this is defined by the 1.0.2 version of the JAMA/IS specification.

in_model

IGES model

out_model

JAMA-IS model

Return

IJAM error code