Regular API function

simSetObjectName / sim.setObjectName

Description Deprecated. See sim.setObjectAlias instead.
C/C++
synopsis
int simSetObjectName(int objectHandle,const char* objectName)
C/C++
parameters
objectHandle: handle of the object. By adding sim.handleflag_altname to the object handle, the object alternative name can be set. By adding sim.handleflag_silenterror to the object handle, errors linked to the naming can be suppressed from output.
objectName: name (or alternative name) of the object
C/C++
return value
-1 if operation was not successful
Lua
synopsis
int result=sim.setObjectName(int objectHandle,string objectName)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Similar to the C-function counterpart