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

# fz_objt_edit_copy_objt_to_windex

Description

Copies an object from one project (windex) to another. Unlike fz_objt_edit_copy_objt, this function copies between different projects. It also makes sure that all the referenced attributes are present in the destination windex. If unique_name is TRUE an new unique object name is created. Otherwise the name of the source object is copied. If the source object was part of the project's database, fz_objt_add_objt_to_project needs to be called to properly add the new object to the database.

Plugin Prototype

fzrt_error_td fz_objt_edit_copy_objt_to_windex(

fzrt_int | src_windex,
fz_objt_ptr | src_obj,
fzrt_int | dst_windex,
fzrt_boolean | unique_name,
fz_objt_ptr * | new_obj )

Parameters

src_windex [Input]

source project

src_obj [Input]

source object

dst_windex [Input]

destination project

unique_name [Input]

if TRUE, a new unique object name is created, otherwise the name of the source object is copied

new_obj [Result]

destination object

Returns

Error codes

Availability

5.0.0.0

See Also

fz_objt_edit_delete_objt, fz_objt_edit_copy_objt,, , fz_objt_edit_copy_objt_data_to_windex

Function Set

fz_model_fset

Defined in

fz_objt_api.h