formZ SDK | 4.0 Call Back Reference | File Translator | Structured File Translator | Data Model Call Back

# fz_ffmt_cbak_data_model_write_can_do_ctrl

Description

A function used to determine if an object can be exported as a controlled object. This function is called to determine if the translator can export a specific object as a controlled object (i.e. sphere, cylinder, cone, torus, nurbs, text, etc.). If the object can be exported as a controlled object, this function should return TRUE. If the files format does not support controlled objects, this function pointer should be set to NULL and no implementation is necessary. In this case, all formZ ACIS objects will be written as smooth or facetted data.
If the translator set the FZ_FFMT_FORMAT_ATTR_SUPPORTS_NURBS_BIT, this function may be called twice. First to see if the controlled object can be exported as is. If this function returns FALSE, the object will be converted to a nurbs object and this function will be called again.

Plugin Prototype

fzrt_boolean fz_ffmt_cbak_data_model_write_can_do_ctrl(

fzrt_int | windex,
fz_ffmt_ref_td | ffmt_id,
void * | data,
fz_objt_ptr | obj,
fzrt_boolean | do_tmap,
fz_ffmt_data_model_write_cntl_meth_enum | cntl_method )

Parameters

windex [Input]

project window index

ffmt_id [Input]

The file format reference id.

data [Input]

A pointer to translator defined data.

obj [Input]

The object to export.

do_tmap [Input]

If TRUE, export texture, otherwise don't export textures.

cntl_method [Input]

Which method for exporting controlled objects.

Returns

TRUE if the object can be exported as a controlled object.
FALSE otherwise.

Availability

5.0.0.0

Function Set

fz_ffmt_cbak_data_model_fset

Defined in

fz_ffmt_api.h