Author Topic: Ellipse Major and Minor radius..  (Read 8016 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
Ellipse Major and Minor radius..
« on: December 07, 2005, 03:11:22 PM »
Hi all,

I'm trying to find where the Major Radius and Minor Radius comming from...
any idea ??
Keep smile...

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Ellipse Major and Minor radius..
« Reply #1 on: December 07, 2005, 03:17:57 PM »
yes.

Select object: ; IAcadEllipse: AutoCAD Ellipse Interface
; Property values:
;   Application (RO) = #<VLA-OBJECT IAcadApplication 00b9d604>
;   Area (RO) = 28274.3
;   Center = (937.04 703.597 0.0)
;   Document (RO) = #<VLA-OBJECT IAcadDocument 01231f90>
;   EndAngle = 6.28319
;   EndParameter = 6.28319
;   EndPoint (RO) = (1037.04 703.597 0.0)
;   Handle (RO) = "10F"
;   HasExtensionDictionary (RO) = 0
;   Hyperlinks (RO) = #<VLA-OBJECT IAcadHyperlinks 0618ede4>
;   Layer = "0"
;   Linetype = "ByLayer"
;   LinetypeScale = 1.0
;   Lineweight = -1
  MajorAxis = (100.0 0.0 0.0)
  MajorRadius = 100.0
;   MinorAxis (RO) = (0.0 90.0 0.0)
  MinorRadius = 90.0
;   Normal = (0.0 0.0 1.0)
;   ObjectID (RO) = 2130161912
;   ObjectName (RO) = "AcDbEllipse"
;   OwnerID (RO) = 2130091256
;   PlotStyleName = "ByLayer"
  RadiusRatio = 0.9
;   StartAngle = 0.0
;   StartParameter = 0.0
;   StartPoint (RO) = (1037.04 703.597 0.0)
;   TrueColor = #<VLA-OBJECT IAcadAcCmColor 0618ed70>
;   Visible = -1


Select entity to display its DXF value data:
(-1 . <Entity name: 7ef7b0f8>)
(0 . "ELLIPSE")
(330 . <Entity name: 7ef69cf8>)
(5 . "10F")
(100 . "AcDbEntity")
(67 . 0)
(410 . "Model")
(8 . "0")
(100 . "AcDbEllipse")
(10 937.04 703.597 0.0)
(11 100.0 0.0 0.0)
(210 0.0 0.0 1.0)
(40 . 0.9)
(41 . 0.0)
(42 . 6.28319)
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Ellipse Major and Minor radius..
« Reply #2 on: December 08, 2005, 08:54:38 AM »
thanks...but this is not telling me where the Major and Minor radius comming from..

 :|
Keep smile...

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Ellipse Major and Minor radius..
« Reply #3 on: December 08, 2005, 08:59:30 AM »
As in how to draw an ellipse using major and minor?
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

Chuck Gabriel

  • Guest
Re: Ellipse Major and Minor radius..
« Reply #4 on: December 08, 2005, 09:10:49 AM »
thanks...but this is not telling me where the Major and Minor radius comming from..

 :|

The information is there.  He even marked the appropriate ActiveX property names and group codes in bold for you.

Bob Wahr

  • Guest

LE

  • Guest
Re: Ellipse Major and Minor radius..
« Reply #6 on: December 08, 2005, 09:42:38 AM »
Also if you can, find the web site of master Paul Turvil, he has an specific routine for that....

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Ellipse Major and Minor radius..
« Reply #7 on: December 08, 2005, 05:23:46 PM »
thanks...but this is not telling me where the Major and Minor radius comming from..

 :|

The information is there.  He even marked the appropriate ActiveX property names and group codes in bold for you.


Nope Chuck !  sorry but he's just showing me the same result in diffrent way...
I need to know how the Major and minor coming from..

eg: Can I create the same ellipse with the same Major and Minor radius ?
if yes....how ?
 :|
Keep smile...

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Ellipse Major and Minor radius..
« Reply #8 on: December 08, 2005, 05:26:49 PM »
Andrea, can you create a circle using VLisp ActiveX ?
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Ellipse Major and Minor radius..
« Reply #9 on: December 08, 2005, 06:37:45 PM »
Andrea, can you create a circle using VLisp ActiveX ?

i'm better in lisp..but not expert..

why ?
Keep smile...

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Ellipse Major and Minor radius..
« Reply #10 on: December 08, 2005, 06:55:15 PM »
OK, Can you draw a circle using DXF codes ?
.. ie with entmake ..
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Ellipse Major and Minor radius..
« Reply #11 on: December 08, 2005, 07:08:13 PM »
I cant wait around all day for you, so ..
Code: [Select]
(defun c:MakeCircle (/ doc mspace CenPt CenPt3d rad)
  (setq doc     (vla-get-activedocument (vlax-get-acad-object))
        mspace  (vla-get-modelspace doc)

        CenPt3d (vlax-3d-point
                  (setq CenPt (getpoint "Specify center point: "))
                )
        rad     (getdist "Specify Radius: " CenPt)
  )
  (vla-addcircle
    mspace
    CenPt3d
    rad
  )
)

(defun c:MakeEllipse (/         cenPt   doc       majoraxis
                      majorpt   minorpt   mspace    ratio     tmp
                     )
  (setq doc     (vla-get-activeDocument (vlax-get-acad-object))
        mspace  (vla-get-modelSpace doc)
        CenPt (getpoint "Specify center point: ")
        majorpt (getpoint "Specify endpoint of Major axis: " CenPt)
        minorpt (getpoint "Specify endpoint of other axis: " CenPt)
  )
  ;; swap if the major axis is smaller than the minor axis
  (if (< (distance majorpt CenPt) (distance minorpt CenPt))
    (setq tmp     majorpt
          majorpt minorpt
          minorpt tmp
    )
  )

  (setq majorAxis (list
                    (- (car majorpt) (car CenPt))
                    (- (cadr majorpt) (cadr CenPt))
                  )
        ratio     (/ (distance CenPt minorpt) (distance CenPt majorpt))
  )
  (vla-addEllipse
    mspace
    (vlax-3d-point CenPt)
    (vlax-3d-point majorAxis)
    ratio
  )
)
« Last Edit: December 08, 2005, 07:11:24 PM by Kerry Brown »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Ellipse Major and Minor radius..
« Reply #12 on: December 08, 2005, 08:17:34 PM »
thanks Kerry,..

But maybe I wasn't clear..
let me try a diffrent way...
is this image correct ?

if yes...

the Major and Minor value in the propreties dialog box do not seem to be right.
Keep smile...

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Ellipse Major and Minor radius..
« Reply #13 on: December 08, 2005, 08:35:26 PM »
The Major axis is the longer axis, irrespective of rotation or orientation.

Google : first hit

http://www.mathwords.com/m/major_axis_ellipse.htm
« Last Edit: December 08, 2005, 08:43:03 PM by Kerry Brown »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Dinosaur

  • Guest
Re: Ellipse Major and Minor radius..
« Reply #14 on: December 08, 2005, 08:57:16 PM »
If I remember correctly from my old geometry and drafting classes, the object Andrea shows in his illustration is an "isometric ellipse" rather than the true ellipse drawn by AutoCAD.  The isometric ellipse is what was used as a shortcut when doing isometric views with a compass.  I do not believe there is any portion of a true ellipse that is an arc segment.
That said, as for your original question, I have no idea what is meant by major and minor radii of an ellipse.  I have only see them drawn by methods using Kerry's major and minor axis references.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Ellipse Major and Minor radius..
« Reply #15 on: December 08, 2005, 09:04:40 PM »
See if this makes it an clearer

kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Ellipse Major and Minor radius..
« Reply #16 on: December 08, 2005, 10:31:41 PM »
See if this makes it an clearer



GOD !!  Kerry..your very good help !!

mucho gracias !!!!!
 :roll:
Keep smile...

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Ellipse Major and Minor radius..
« Reply #17 on: December 09, 2005, 12:57:04 AM »
My pleasure to be able to help.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.