SOFITO_SOFT Posted December 19, 2010 Posted December 19, 2010 Hi all: ¿ Someone knows how to solve the NORMAL TO ELLIPSE FROM A EXTERIOR (OUT) POINT in Alips and or Vlisp (2D) ? Thanks in advance. Quote
Tharwat Posted December 19, 2010 Posted December 19, 2010 What do you mean from Normal to Ellipse ? Is it from Circle to Ellipse ? Tharwat Quote
GP_ Posted December 19, 2010 Posted December 19, 2010 You mean the point on the ellipse closest to the external point? (setq ELL (vlax-ename->vla-object (car (entsel "Select Ellipse")))) (setq Pt_ext (getpoint "Exterior Point")) (setq Pt_ell (vlax-curve-getClosestPointTo ELL Pt_ext)) Quote
SOFITO_SOFT Posted December 19, 2010 Author Posted December 19, 2010 Tharwat Hello and greetings to everyone: Is a very common Geometric construction in my work and that works out fine with AutoCAD object snap "PER". But I want to calculate either Autolisp from one point ( out to ellipse ) a line perpendicular ("normal" according to the usual geometric terminology) to an ellipse. Not find useful references on Google for this problem geometric. Thanks for your interest. Quote
Lee Mac Posted December 19, 2010 Posted December 19, 2010 Something along these lines? (defun c:test ( / e p ) (vl-load-com) ;; Example by Lee Mac 2010 - www.lee-mac.com (if (and (setq e (car (entsel))) (not (vl-catch-all-error-p (vl-catch-all-apply 'vlax-curve-getEndParam (list e)) ) ) (setq p (getpoint "\nSpecify Point: ")) ) (entmakex (list (cons 0 "LINE") (cons 10 (trans p 1 0)) (cons 11 (vlax-curve-getClosestPointto e (trans p 1 0))) ) ) ) (princ) ) Quote
SOFITO_SOFT Posted December 19, 2010 Author Posted December 19, 2010 Sorry, I'm a rookie tender and finger walking fast. Quote
SOFITO_SOFT Posted December 19, 2010 Author Posted December 19, 2010 Hello everyone: Lee Mac's solution is perfect (and fast ... on a Sunday!!!) to continue with my program. But it has been the question of how to solve the problem in the classical manner ... with lines, angles, perpendicular and compass .... Thanks you all... from Madrid (Spain-UE) PD. In the drawing, for lovers of classical geometry : REED : SOLUTION TO SEARCH , GREEN : DATA, MAGENTA : AUXLIARS POSSIBLES LINES ?, BLUE : Known proportions. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.