See the top rated post in this thread. Click here

Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Draw a Box around an Ellipse

  1. #1
    Member greypaw's Avatar
    Join Date
    2005-03
    Posts
    45
    Login to Give a bone
    0

    Question Draw a Box around an Ellipse

    Can someone please explain why, when trying to draw a box around a rotated ellipse - per the attached drawing, I have a lot of difficulty in getting "tangent" snaps to work?

    I start with the rotated ellipse and then draw a vertical line to the right.
    I now want to draw a tangent from the ellipse to a perpendicular snap on the line...
    If I cannot get a "tangent" snap, I draw any line to intersect the ellipse. Now I can get a tangent, but not a TRUE tangent, just some point on the ellipse. If I continue drawing more and more lines as tangents, in the end I get the desired effect (it generally takes about six lines). Does anyone have any similar experience of ellipses?

    BTW I know that I can draw an approximated "polyline" ellipse, but this is not what I want.

    Many thanks

    gp. (aka "confused of ellipseville"!)
    Attached Files Attached Files

  2. #2
    AUGI Addict madcadder's Avatar
    Join Date
    2000-11
    Location
    Too far from the beach
    Posts
    1,054
    Login to Give a bone
    0

    Default Re: Draw a Box around an Ellipse

    I don't have it... but I'd swear that I've seen a lisp that draws a rectangle around selected objects. Maybe someone here has this timesaver and will upload it.

  3. #3
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Draw a Box around an Ellipse

    I suppose the math is just too complicated since the ellipse is an arc of constantly varying radius so it doesn't have a single, locatable centre at each end. It's just a pity you can't use the polyline version.

  4. #4
    100 Club bmonk's Avatar
    Join Date
    2005-11
    Location
    ...1st & 1st...Im at the nexis of the universe...
    Posts
    159
    Login to Give a bone
    0

    Default Re: Draw a Box around an Ellipse

    Quote Originally Posted by greypaw
    Can someone please explain why, when trying to draw a box around a rotated ellipse - per the attached drawing, I have a lot of difficulty in getting "tangent" snaps to work?

    I start with the rotated ellipse and then draw a vertical line to the right.
    I now want to draw a tangent from the ellipse to a perpendicular snap on the line...
    If I cannot get a "tangent" snap, I draw any line to intersect the ellipse. Now I can get a tangent, but not a TRUE tangent, just some point on the ellipse. If I continue drawing more and more lines as tangents, in the end I get the desired effect (it generally takes about six lines). Does anyone have any similar experience of ellipses?

    BTW I know that I can draw an approximated "polyline" ellipse, but this is not what I want.

    Many thanks

    gp. (aka "confused of ellipseville"!)

    GP, I tried DL'ing the dwg, but it didn't work, however, I think I replicated the example well enough from your description. I drew a rotated ellipse, with a vertical line to the right.

    The only way to get a line tangent to ellipse and perp to line is to:

    1) copy ellipse to other side of line.
    2) type "xline" (construction line)
    3) snap tangent from ellipse to ellipse.
    4) trim appropriately.

    and if its a box your after, then just copy in all 4 directions, rinse and repeat.

    HTH

    Brian

  5. #5
    Member greypaw's Avatar
    Join Date
    2005-03
    Posts
    45
    Login to Give a bone
    0

    Default Re: Draw a Box around an Ellipse

    Brian.
    Hi.
    Thanks for your interest.
    I'm sorry the dwg didn't work. (It was an ACAD2007 format file...)
    - if you are still interested, I've saved the file as a 2004 format now. attached here.
    I tried what you describe, but still cannot get "tangent" snaps to work!
    In fact although I can get (some sort of a) tangent using the line command, xline does not work at all.
    I guess this may become one of life's unsolved mysteries!
    Attached Files Attached Files

  6. #6
    AUGI Addict madcadder's Avatar
    Join Date
    2000-11
    Location
    Too far from the beach
    Posts
    1,054
    Login to Give a bone
    2

    Default Re: Draw a Box around an Ellipse

    SOLUTION!

    Yesterday, I didn't think BOXTEXT.lsp would work on anything but text. Today, I actually tried it on a 50x25 ellipse rotated 45 and it worked.

    This is my modified copy of the routine.
    It will create and use a layer called Z-ANNO-NPLT.
    There should be no ill effects other than the added layer.
    Attached Files Attached Files

  7. #7
    100 Club bmonk's Avatar
    Join Date
    2005-11
    Location
    ...1st & 1st...Im at the nexis of the universe...
    Posts
    159
    Login to Give a bone
    0

    Default Re: Draw a Box around an Ellipse

    Quote Originally Posted by greypaw
    Brian.
    Hi.
    Thanks for your interest.
    I'm sorry the dwg didn't work. (It was an ACAD2007 format file...)
    - if you are still interested, I've saved the file as a 2004 format now. attached here.
    I tried what you describe, but still cannot get "tangent" snaps to work!
    In fact although I can get (some sort of a) tangent using the line command, xline does not work at all.
    I guess this may become one of life's unsolved mysteries!
    Sorry to hear you still had problems. For me to get it to work, I had to snap tangent to first ellipse, and then when I snapped tangent to the second ellipse, I had to move the cursor PAST the point of where the tangent would actually be. If that makes any sense.

    Anyway, maybe its a 2007 issue, I am using '06.

    However, Madcadder's lisp routine seems to work great. Thanks MC, I will be adding it to my Lisproutines.

  8. #8
    Member greypaw's Avatar
    Join Date
    2005-03
    Posts
    45
    Login to Give a bone
    0

    Cool Re: Draw a Box around an Ellipse

    Thanks to both of you!
    Unfortunately at THIS place of work (I work elsewhere too!), I use LT2007, which clearly won't be able to try the lisp!
    I'll report back on Friday, when I'm at a "full-AutoCAD" office!
    Further, I tried the xline solution in LT2005 and still cannot get any tangent snaps to work...
    Maybe full-ACAD is different --
    I think ellipse geometry is just a bit too complex for CAD to cope with predictably.
    Still, if MC's lisp works I'll be a "Happy Bunny"!

    gp (aka slightly less confused of ellipseville!!)

  9. #9
    Member greypaw's Avatar
    Join Date
    2005-03
    Posts
    45
    Login to Give a bone
    0

    Thumbs up Re: Draw a Box around an Ellipse

    The lisp works great!
    Just one question...
    Does the box actually TOUCH the ellipse? I can't get an intersect snap to work...
    With my laborious method, I can, and when I try to trim the ellipse, the command line tells me that it doesn't intersect the line(s) twice -- which is what I'd expect.
    Not being "picky", here, guys, just curious!
    Thanks again for the help.

    gp

  10. #10
    AUGI Addict madcadder's Avatar
    Join Date
    2000-11
    Location
    Too far from the beach
    Posts
    1,054
    Login to Give a bone
    0

    Default Re: Draw a Box around an Ellipse

    Quote Originally Posted by greypaw
    The lisp works great!
    Just one question...
    Does the box actually TOUCH the ellipse? I can't get an intersect snap to work...
    With my laborious method, I can, and when I try to trim the ellipse, the command line tells me that it doesn't intersect the line(s) twice -- which is what I'd expect.
    Not being "picky", here, guys, just curious!
    Thanks again for the help.

    gp
    It's off 0.00000001.

    The box has a z el of -0.00000001
    :dunno:

    Help file was no help; will have to look into it more.

    [EDIT: apparent intersection works for now]
    Last edited by madcadder; 2007-01-28 at 07:23 PM.

Page 1 of 2 12 LastLast

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. Ellipse
    By cganiere in forum Revit Architecture - General
    Replies: 4
    Last Post: 2008-08-12, 12:12 AM
  3. Replies: 1
    Last Post: 2008-06-18, 03:05 PM
  4. ellipse
    By glen.85659 in forum Revit Architecture - Wish List
    Replies: 3
    Last Post: 2005-06-25, 03:25 PM
  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
  •