formZ SDK | 5.0 API Reference | Project | File Formats | Structured File Translator | Data Model
Description
Begin export of symbols. This function iterates over all symbol definitions in the project referenced by windex. For each symbol to be exported, the data model write functions defined in fz_ffmt_data_cbak_fset are called. Which functions are called depends on the object type of the symbol definition and the parameters passed into this function. The values for most of the parameters to this function should be obtained from the data model write options. They are passed through here as parameters in case the translator needs to override any of the options when writing symbols.
Plugin Prototype
fzrt_error_td fz_ffmt_data_model_write_sdefs(
fzrt_int | windex, |
ffmt_id, | |
sym_method, | |
fzrt_int | flags, |
do_tmap, | |
grup_method, | |
fact_method, | |
smod_method, | |
cntl_method, | |
double | angle, |
mat, | |
void * | data, |
triang_type, | |
non_planar_only, | |
strict_planarity, | |
floc ) |
Parameters
windex [Input]
project window index
ffmt_id [Input]
The file format reference id.
sym_method [Input]
The symbol export method.
flags [Input]
The export options flags. Usually obtained by calling fz_ffmt_data_model_write_opts_parm_get with FZ_FFMT_DATA_MODEL_WRITE_OPTS_PARM_FLAGS as the which parameter.
Bit Flag Type: fz_ffmt_data_model_write_opts_flags_enum
do_tmap [Input]
If TRUE, export texture maps. If FALSE don't export texture maps.
grup_method [Input]
The grouping method.
fact_method [Input]
The Facetted objects export method
smod_method [Input]
The Smooth (ACIS) objects export method.
cntl_method [Input]
The Controlled objects export method.
angle [Input]
The smooth shading angle.
mat [Input]
The transform matrix.
data [Input]
A pointer to translator defined data.
triang_type [Input]
Decomposition option: The type of triangulation.
non_planar_only [Input]
Decomposition option: if TRUE, only the non planar faces are triangulated, otherwise all faces are triangulated.
strict_planarity [Input]
Decomposition option: if TRUE, the triangulation process is more sensitive to smaller disturbances in the planarity of a face.
floc [Input]
The file to write the symbol definitions to.
Returns
FZRT_NOERR on success. An error otherwise.
Availability
5.0.0.0
Function Set
Defined in