Synopsis
(macro) int step_GetEnumDDFVal(int model, int def_value)
Purpose
Maps a #defined enumerated type to its corresponding DDF value.
Description
The #defined value, def_value, (from step_Interface.h) is mapped to its equivalent enumerated value in the DDF associated with the given model. This macro should be called wherever entity level operations on enumerated fields require conversion from the #defined values within step_Interface.h. The following example shows how the curve_form field within a STEP b_spline_curve could be set to represent a circular arc. .RS 3 .nf curve_form = step_GetEnumDDFVal (model, STEP_CIRCULAR_ARC); bspcr->curve_form = curve_form; .fi .RE
Input
model
The STEP model that owns the ddf
def_value
The #defined value from step_Interface.h
Return
The integer value associated with the enumerated value from the DDF