See the top rated post in this thread. Click here

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

Thread: Ellipse Perimeter Formula Help

  1. #1
    AUGI Addict
    Join Date
    2015-11
    Location
    Madison, WI
    Posts
    1,318
    Login to Give a bone
    0

    Default Ellipse Perimeter Formula Help

    Hi All,

    I am trying to write a formula for finding the perimeter of an ellipse. I found a good formula to get a approximation, but I'm not able to get Revit to except it as a formula. The error message I receive is, 'Parentheses expected after function name'. Any help would be appreciated.

    Thank you in advance,
    Jeff S.
    Attached Images Attached Images
    Last edited by jsteinhauer; 2011-12-27 at 10:45 PM.

  2. #2
    AUGI Addict
    Join Date
    2015-11
    Location
    Madison, WI
    Posts
    1,318
    Login to Give a bone
    0

    Default Re: Ellipse Perimeter Formula Help

    So if I make a number parameter for Pi and call it PIE, I can get the formula to work as expected. So I guess my next question is, can someone re-write the following formula to solve for b.

    P = Pi[3(a+b)-sqrt((3a+b)*(a+3b))/2

    Thanks,

    Jeff S.

  3. #3
    Active Member
    Join Date
    2015-08
    Posts
    84
    Login to Give a bone
    0

    Default Re: Ellipse Perimeter Formula Help

    I've heard of an ellipse, but what is an eclipse (in math terms)?

  4. #4
    AUGI Addict
    Join Date
    2015-11
    Location
    Madison, WI
    Posts
    1,318
    Login to Give a bone
    0

    Default Re: Ellipse Perimeter Formula Help

    Quote Originally Posted by contact.andrewk968454 View Post
    I've heard of an ellipse, but what is an eclipse (in math terms)?
    Sorry. I've got a newborn in the house. Sleep is in short supply.

  5. #5
    100 Club
    Join Date
    2009-12
    Location
    Albuquerque, NM
    Posts
    172
    Login to Give a bone
    0

    Default Re: Ellipse Perimeter Formula Help

    Wow, that is a nasty equation. Unfortunately I don't maths. (ahem) I mean, my understanding of complex algebra is insufficient to find a solution.

    It may help, however to know what you are trying to accomplish. I was recently trying to make a complex family work by using some ridiculous formulas until it was brought to my attention that I didn't need any of them if I just changed which parameter was controlled by user input...

    -LP

  6. #6
    Active Member
    Join Date
    2015-08
    Posts
    84
    Login to Give a bone
    0

    Default Re: Ellipse Perimeter Formula Help

    Are you sure you want to rewrite the equation to solve for the minor axis of the ellipse? I'd think you'd know both the major and minor axis and would want to just report the perimeter.

  7. #7
    AUGI Addict
    Join Date
    2015-11
    Location
    Madison, WI
    Posts
    1,318
    Login to Give a bone
    1

    Default Re: Ellipse Perimeter Formula Help

    So I am creating a operable canopy family. I have a truss built and a partial ellipse. I know the perimeter of the partial ellipse when it is fully extended, and I want to have the same perimeter when it is collapsed. Knowing both 'P' & 'a' for both instances I would like it to solve for 'b'. This would drive the ellipse of the canopy down to make it look like the canvas material was drooping when not fully extended.

    Thanks,
    Jeff S.
    Attached Images Attached Images

  8. #8
    100 Club
    Join Date
    2009-12
    Location
    Albuquerque, NM
    Posts
    172
    Login to Give a bone
    0

    Thumbs up Re: Ellipse Perimeter Formula Help

    Wow, that's a pretty ambitious project. I suggest you change your approach slightly. #1, don't get stuck trying to make it mathematically perfect. In this case the visual result is most important, not the exact dimensions. When the project goes out for construction you should be getting shop drawings with the true construction details.

    #2. determine Maximum Depth (front to back in your attached image) and Maximum Height parameters and set them equal. That would give you the maximum amount that the canvas would droop if it were fully closed. Add a third parameter for "open %" and 2 more for "actual depth" and "actual height".

    Link each actual parameter to a reference plane as a function of the % parameter. With this setup, as "open %" approaches 100, "actual depth" approaches "max depth" and as it approaches 0, "actual height" approaches "max height".

    Finally you just need to play with the length formulas and link them to the % parameter so that you get the elliptical droop rather than a semi-circle.

    If you were to take a virtual tape measure along the edge in your model it would grow and shrink between 0% and 100% open but the visual effect should still be achieved, and you don't need to do calculus to achieve it.

    -LP

  9. #9
    All AUGI, all the time Alex Page's Avatar
    Join Date
    2004-03
    Location
    Wellington, New Zealand
    Posts
    822
    Login to Give a bone
    0

    Default Re: Ellipse Perimeter Formula Help

    Quote Originally Posted by jsteinhauer View Post
    So if I make a number parameter for Pi and call it PIE, I can get the formula to work as expected. So I guess my next question is, can someone re-write the following formula to solve for b........
    Note that if you want to use the inbuilt value of "pi" - use "pi()" instead so your formula should read:
    P = Pi()*[3(a+b)-...etc

  10. #10
    I could stop if I wanted to
    Join Date
    2009-11
    Posts
    380
    Login to Give a bone
    0

    Default Re: Ellipse Perimeter Formula Help

    Quote Originally Posted by jsteinhauer View Post
    This would drive the ellipse of the canopy down to make it look like the canvas material was drooping when not fully extended.

    Thanks,
    Jeff S.
    Instead of reinventing the wheel, just have nucleus calc the gravity for you.

    http://labs.autodesk.com/utilities/nucleus/

Page 1 of 2 12 LastLast

Similar Threads

  1. Topo perimeter visibility
    By ctc in forum Revit Architecture - General
    Replies: 5
    Last Post: 2011-05-26, 08:31 PM
  2. Mapping Perimeter property
    By dublamby in forum QTO General
    Replies: 4
    Last Post: 2009-11-16, 12:09 PM
  3. 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
  4. Replies: 1
    Last Post: 2009-04-24, 02:18 PM
  5. Slab perimeter - Bug?
    By Jos Arpink in forum Revit Structure - General
    Replies: 2
    Last Post: 2007-03-14, 02:58 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
  •