Regular API function

simRemoveDrawingObject / sim.removeDrawingObject

Description Removes a previously added drawing object. See also sim.addDrawingObject and sim.addDrawingObjectItem
C synopsis simInt simRemoveDrawingObject(simInt objectHandle)
C parameters
objectHandle: handle of a previously added drawing object. sim_handle_all removes all drawing objects from the scene
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis number result=sim.removeDrawingObject(number objectHandle)
Lua parameters
objectHandle: handle of a previously added drawing object. sim.handle_all removes all drawing objects from the scene, that were created in a script (drawing objects created from the C interface are not removed)
Lua return values
Same as C-function

All regular API functions on one page