Jump to content

Recommended Posts

Posted

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.

Posted

What do you mean from Normal to Ellipse ?

 

Is it from Circle to Ellipse ?

 

Tharwat

Posted

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))

Posted

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.

Posted

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)
)

Posted
problematangenciaaelips.jpg Sorry, I'm a rookie tender and finger walking fast.
Posted

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 ....:unsure: 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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...