Hello.
I get the coordinates of the point:
(setq pt (getpoint "\nPick point to extract surface elevation: "))
Then I get the surface level in the coordinates of this point:
(setq lavelTin (vlax-invoke (vlax-ename->vla-object (car (entsel))) 'FindElevationAtXY (car pt) (cadr pt)))
But if the coordinates of my point "pt" out of border surface - I get an error. And it is clear
How can I do so in this case my variable "lavelTin" was equal for example: "out_of_border"?
Thank you all for your attention.