formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Editing Operations

# fz_objt_edit_convert_cntrl

Description

Converts a controlled object of one type to a controlled object of another type. If the object passed in is not a controlled object, or it cannot be converted to the requested control type, an error is returned. The function can be used to find out whether an object can be converted to a given type.

Plugin Prototype

fzrt_error_td fz_objt_edit_convert_cntrl(

fzrt_int | windex,
fz_objt_ptr | obj,
fz_objt_cvrt_to_otype_num_enum | cnvrt_to_type )

Parameters

windex [Input]

project window index

obj [Input, Result]

object to convert

cnvrt_to_type [Input]

type to convert to

Returns

Error codes

Availability

5.0.0.0

Example Files

util_objt_topo.fsl

See Also

Function Set

fz_model_fset

Defined in

fz_objt_api.h