BeforeTransformObject, not allow the transfer of an object

Hi, is it possible to know the destination point position of an object in the BeforeTransformObject Event ?, i need to avoid the object transform depending of destination position.

hello, you used c++, c#, python ?

Sorry, c#

in C # I don’t know how to know the target position.
but after the transformation is done, the ReplaceRhinoObject event exposes an OldRhinoObject field

if the position does not meet a condition, I guess you can delete the new object and restore the previous one