Display full version of the post: Autolisp: vlax-curve

mikey1970
01.03.2010, 15:24
can somebody help me?The vlax-curve may fail if the point data is a very large number so this is unreliable;start code(vlax-curve-getDistAtPoint(vlax-ename->vla-object (setq ax (car (entsel))))(setq   spoint (vlax-curve-getClosestPointTo(vlax-ename->vla-object ax)(setq clikpoint (trans (getpoint "\nSpecify point: ") 1 0 ) ))));end codeThe return values is "nil"  with points very far from zero.

Somebody have solution?Scuse me for my bad english

CarlB
02.03.2010, 00:34
I think the advice you got from CAB2k at http://discussion.autodesk.com/forums/message.jspa?messageID=6343101 is probably good, he's the lisp wiz :)