formZ SDK | 5.0 API Reference | Project | Symbols

# fz_symb_def_copy

Description

Makes a duplicate copy of a definition. If the destination library (dst_lib) is passed as NULL, the definition is copied in the library it is located in. Otherwise the definition is copied into the destination library.
If the definition is copied into a different library, the new definition will have the same name as the original. If a definition with that name already exists in the destination library, a unique name will automatically be generated.
if the definition is copied within the same library, a unique name will always be generated.

Plugin Prototype

fzrt_error_td fz_symb_def_copy(

fzrt_int | windex,
fz_symb_def_ptr | src_def,
fz_symb_lib_ptr | dst_lib,
fz_symb_def_ptr * | new_def_ptr )

Parameters

windex [Input]

project window index

src_def [Input]

source definition

dst_lib [Input, Optional]

destination library

new_def_ptr [Result]

new definition

Returns

Error codes

Availability

5.0.0.0

Example Files

util_symb_test.fsl

Function Set

fz_symb_fset

Defined in

fz_symb_api.h