Regular API function

simCopyPasteObjects (remote API equivalent: simxCopyPasteObjects)

Description Copies and pastes objects, together with all their associated calculation objects and associated scripts. See also simRemoveObject and simRemoveModel.
C synopsis simInt simCopyPasteObjects(simInt* objectHandles,simInt objectCount,simInt options)
C parameters
objectHandles: array containing the handles of the objects to copy and paste. The same array will receive the copied object handles.
objectCount: the number of handles contained in the objectHandles array.
options: bit-coded. If bit0 is set (i.e. 1), then whole models will be copied. In that case, all specified objects should be flagged as model base..
C return value
-1 if operation was not successful, otherwise the number of handles returned in the objectHandles array.
Lua synopsis table copiedObjectHandles=simCopyPasteObjects(table objectHandles,number options)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page