Synopsis

PDX_MSGT iges_InitModelInfo(long option, MDA_MODEL_INFO *model_info)

Purpose

Setup model to contain IGES data.

Description

The model information structure is filled in with the appropriate defaults for the IGES interface. The model_info struct should first be initialized by calling mda_GetModelDefaults. The model information will be set so that mda_ParseFile invokes the IGES interface function iafp_ParseFile and mda_FormatFile invokes iaff_FormatFile. See the appropriate manual page for more information on these functions. Only the following fields in model_info can be modified by the application after this function is called:

.nf modelnam validate backptrs .fi

The validate field can be set to ievm_ValidateModel to have that function be called when mda_ValidateModel is invoked. This is not done by default to avoid loading all of the validation software when it is not needed by an application.

The backptrs field is set to off (0) by default so if the application wishes backpointers to be generated it must set the field to 1.

Input

option

Options (not used)

model_info

The model defaults returned from mda_GetModelDefaults

Output

model_info

Model information initialized for the IGES interface

Return

IGES error code