formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Editing Operations
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, |
src_obj, | |
fzrt_int | dst_windex, |
unique_name, | |
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
Defined in