formZ SDK | 4.0 Call Back Reference | formZ Notification
Description
This function is called when the unit type (English/Metric) or unit scale
(large/medium/small/miniature) for a project is changed. This happens when the user changes
the settings in the Working Units dialog or the function fz_proj_units_set_parm_data is called
to change the settings. When this notification is received, all project level dimensional
values should be converted to a reasonable setting for the current settings.
It is recommended that function be used to get proper dimensional
values (units and data scale) from default values for the specified pref_units and pref_scale.
The fz_fuim_convert_units function sets a double value to the current pref_units and pref_scale
given an English and metric default unit values for a specified scale.
Plugin Prototype
fzrt_error_td fz_notf_cbak_proj_units(
fzrt_int | windex, |
units, | |
scale ) |
Parameters
windex [Input]
project window index
units [Input]
preferences units to use. (when action == CMDS_DFLT_FLAG_TRUE_DFLTS or CMDS_DFLT_FLAG_UNIT_DFLTS)
scale [Input]
preferences scale to use. (when action == CMDS_DFLT_FLAG_TRUE_DFLTS or CMDS_DFLT_FLAG_UNIT_DFLTS)
Returns
Error codes
Availability
5.0.0.0
Function Set
Defined in