Results 1 to 2 of 2

Thread: How can I neutralise degrees of angle to be able to use trigonometry?

  1. #1
    Member
    Join Date
    2015-05
    Posts
    28
    Login to Give a bone
    0

    Default How can I neutralise degrees of angle to be able to use trigonometry?

    A/H = Cos (alpha), where A is adjacent side in mm units, H is hypotenuese in mm, and alpha is the angle between them for a right angle triangle.

    But Revit doesnt seem able to do this despite having the functions cos(), and acos()
    I assume acos() returns a result in angular degrees, whereas the sides are in mm.

    No matter how I try to set up this formula in a family parameter, I get an 'inconsistent units' error.
    A and H are in units of length, but alpha is in units of degrees.
    If I use alpha = acos(A/H) I get a 'Cannot evaluate function' error.

    So I assume I have to neutralise the mm/mm which is presumably then unitless by multiplying by degrees.
    There seems to be no way of saying that.
    I have tried setting up a parameter as an angle of 1 degree and multipling by that, or even dividing by that, but still get 'inconsistent units' error.

    Have searched the forums and internet generally...lots of people seem to want an answer to this, but no one seems to have ever answered!

    So does anyone know how trigonemetry can be used in Revit to derive the angle between two sides of a right angled triangle as a formula in a family parameter?
    Can you give an example?
    Does anyone know what unit angle needs to be expressed in , ie like mm or m for length?
    Hope someone can tell me how to do this.
    Thanks, Robin
    Last edited by robinhillrhca700396; 2019-03-17 at 07:22 PM. Reason: clarity of the formulae

  2. #2
    Member
    Join Date
    2015-05
    Posts
    28
    Login to Give a bone
    0

    Default Re: How can I neutralise degrees of angle to be able to use trigonometry?

    Sorry folks, turns out the values I was feeding it for A and H resulted in a value greater than 1, so this was greater than ACOS can evaluate, so yes that created a math error,
    and the 'inconsistent units' was a red herring I wasted time trying to solve.

    With Alpha as an angle parameter, and A and H as length parameters, Alpha=acos(A/H) works fine with no need to neutralise the degrees at all!

    so when you get an inconsistent units error, it may not be that at all! Just bad values used for the data!
    Thanks anyway to anyone who puzzled over this.
    Robin

Similar Threads

  1. Revit Trigonometry Problem
    By ThinkRevit in forum Revit Architecture - General
    Replies: 34
    Last Post: 2013-03-01, 12:56 PM
  2. creating views at an angle not 0 or 90 degrees
    By aqcadd in forum AutoCAD General
    Replies: 13
    Last Post: 2010-02-12, 01:36 PM
  3. Replies: 3
    Last Post: 2007-02-23, 02:50 PM
  4. dimension angle greater than 180 degrees?
    By patricks in forum Revit Architecture - General
    Replies: 6
    Last Post: 2006-09-13, 03:51 PM
  5. Replies: 2
    Last Post: 2006-04-24, 07:48 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
  •