Print Page | Close Window

Autolisp: vlax-curve

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=3263
Printed Date: 16.May.2026 at 13:15


Topic: Autolisp: vlax-curve
Posted By: mikey1970
Subject: Autolisp: vlax-curve
Date Posted: 01.Mar.2010 at 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 code

The return values is "nil"  with points very far from zero.
Somebody have solution?
Scuse me for my bad english



Replies:
Posted By: CarlB
Date Posted: 02.Mar.2010 at 00:34
I think the advice you got from CAB2k at http://discussion.autodesk.com/forums/message.jspa?messageID=6343101" rel="nofollow - http://discussion.autodesk.com/forums/message.jspa?messageID=6343101  is probably good, he's the lisp wiz :)
 
 



Print Page | Close Window