Regular API function

simCopyPasteObjects / sim.copyPasteObjects

Description Copies and pastes objects, together with all their associated calculation objects and associated scripts. See also sim.removeObject and sim.removeModel.
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=sim.copyPasteObjects(table objectHandles,number options)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart
Remote API equiv.
B0-based remote API: simxCopyPasteObjects
Legacy remote API: simxCopyPasteObjects

All regular API functions on one page