I am relatively new AutoLISP user, and i need some help to make routine for finding closest (perpendicular) distance from point to line, i know its easy with "vlax-curve-getClosestPointTo" command i did it that way, but i need to go around that, and make code without using 'vlax' functions, because to my knowledge MicrosurveyCAD 2014 doesn's support it (maybe i'm wrong, I will be glad if someone corrects me about this) but i tried using routine that I made, works perfectly with AutoCad and Brics....but it fails with MScad.
If someone could give me an idea how to work around this, i will be very grateful.