Thank you for your answers.
@Biscuits: Don't know anything about constrains in AutoCAD - will have to investigate this hypothesis.
@Joe Burke: No, I'm not allowed to do that.
@jromkes: At this time I cannot test this hypothesis in AutoCAD 2011, but the OSNAPCOORDS variable is available also in AutoCAD 2008 and that code works well in this version. Anyway, will investigate this ASAP.
Regards,
Mircea