currently the only available method to select an object, is to use GUI-interaction (mouse) or simulate this via "mouse"-messages to the canvas.
both things only work with gui enabled and have problems with overlapping objects.
the attached patch (against current svn) adds following messages to the canvas:
- select <id>
- deselect <id>
they allow programmatic selection of objects; <id> is the same object-id as used e.g. for the "connect" message.
this also allows programmatic deletion of objects-per-id, e.g. by sending a message "deselectall, select 14, cut" to the canvas.