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

fz_objt_edit_copy_objt

Description

Copies an object in place.
If unique_name is TRUE a 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(

fzrt_int

windex,

fz_objt_ptr

src_obj,

fzrt_boolean

unique_name,

fz_objt_ptr *

new_obj )

Parameters

windex [Input]

project window index

src_obj [Input]

source object

unique_name [Input]

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

new_obj [Result]

new object

Returns

Error codes

Availability

5.0.0.0

Example Files

util_objt_edit_genr.fsl

See Also

fz_objt_edit_copy_objt,,, fz_objt_edit_copy_objt_to_windex, fz_objt_edit_copy_objt_data_to_windex

Function Set

fz_model_fset


Defined in

fz_objt_api.h