See the top rated post in this thread. Click here

Results 1 to 2 of 2

Thread: How to make Ellipse

  1. #1
    100 Club
    Join Date
    2011-08
    Location
    Vadodara, India
    Posts
    147
    Login to Give a bone
    0

    Default How to make Ellipse

    Hi!

    I am having two polar point,

    1st is for center and 2nd is for major axis and radius ratio is 0.5

    how to draw ellipse in the drawing using this two points and radius ratio.

    Please help me on this.

  2. #2
    I could stop if I wanted to
    Join Date
    2007-08
    Posts
    201
    Login to Give a bone
    1

    Default Re: How to make Ellipse

    Hi,

    The Ellipse class have an overloaded constructor which takes arguments corresponding to the data you have.

    From docs:
    public Ellipse(
    Point3d center,
    Vector3d unitNormal,
    Vector3d majorAxis,
    double radiusRatio,
    double startAngle,
    double endAngle
    );


    So, you can create the ellipse this way:
    Code:
    Ellipse ellipse = new Ellipse(pt1, Vector3d.Zaxis, pt2 - pt1, 0.5, 0.0, Math.PI * 2.0);

Similar Threads

  1. Ellipse - Offseted as Ellipse, not as a spline.
    By harilalmn in forum VBA/COM Interop
    Replies: 1
    Last Post: 2009-06-09, 03:34 PM
  2. How to make ellipse into a polyline
    By frank.150569 in forum AutoCAD General
    Replies: 4
    Last Post: 2007-10-16, 01:52 PM
  3. Ellipse
    By fabrice in forum VBA/COM Interop
    Replies: 3
    Last Post: 2007-06-20, 03:42 PM
  4. Can't Make Ellipse Roof by Extrusion
    By ctc in forum Revit Architecture - General
    Replies: 3
    Last Post: 2006-03-15, 06:12 AM
  5. Ellipse
    By Jack Carson in forum Revit Architecture - General
    Replies: 1
    Last Post: 2004-10-26, 08:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •