CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedAutolisp: vlax-curve

 Post Reply Post Reply
Author
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post Topic: Autolisp: vlax-curve
    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 is probably good, he's the lisp wiz :)
 
 
Back to Top
mikey1970 View Drop Down
Newbie
Newbie


Joined: 21.Jan.2009
Location: Italy
Using: Autocad2011
Status: Offline
Points: 1
Direct Link To This Post 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
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,078 seconds.