Donate Now Goal amount for this year: 3000 USD, Received: 1207 USD (40%)

Results 1 to 7 of 7
Like Tree1Likes
  • 1 Post By amoursol

Thread: Dynamo area units

  1. #1
    Senior Member chris.macko's Avatar
    Join Date
    April 12, 2011
    Location
    Chicago, IL
    Posts
    523
    Current Local Time
    11:36 PM

    Dynamo area units

    Ok, this seems like it should be a really simple answer, but I'm having a lot of trouble getting it to work properly. I'm trying to create a graph to find rated doors that have glazing and make sure that glazing is not more than the 100 square inches allowed by code. I can get the doors and pull the glazing areas out, but I can't seem to figure out how to input a number as an area to compare the parameter to, or strip the units off the area just to compare numbers to numbers. What am I missing here?

    Thanks in advance...

  2. #2
    Member
    Join Date
    May 30, 2015
    Posts
    200
    Current Local Time
    11:36 PM
    Dynamo doesn’t make a distinction between “area” vs “length” they are both simple values.

    Share what you have done so far and maybe we can help further.


    Sent from my iPhone using Tapatalk

  3. #3
    Senior Member chris.macko's Avatar
    Join Date
    April 12, 2011
    Location
    Chicago, IL
    Posts
    523
    Current Local Time
    11:36 PM
    I got it to work by converting the area to a string, stripping the non-number characters out, and converting it back to a number, but this seems like a really clumsy way to do something that should be simple. When I try to check the area against the number with the > node, it just returns nulls.
    Dynamo area units-area-compare.png

  4. #4
    Senior Member chris.macko's Avatar
    Join Date
    April 12, 2011
    Location
    Chicago, IL
    Posts
    523
    Current Local Time
    11:36 PM
    I think I just figured out what the problem was. I was using the Parameter.ParameterByName node instead of the Element.GetParameterValueByName. That looks like it will simplify things a lot.

  5. #5
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    05:36 AM
    You could also use Parameter.Value and cut out your middle ground!
    cganiere likes this.

  6. #6
    Senior Member chris.macko's Avatar
    Join Date
    April 12, 2011
    Location
    Chicago, IL
    Posts
    523
    Current Local Time
    11:36 PM
    Is this what you're talking about? That seems like an extra step compared to Element.GetParameterValueByName unless I'm using it wrong.
    Dynamo area units-parameter-value.png

  7. #7
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    05:36 AM
    No you're totally right - I personally use the Element.GetParameterValueByName node also! Just saying that in lieu of string conversion you could have done it another way

Similar Threads

  1. Fixture Units Updates after updating units in families
    By edwardsdv in forum MEP - General
    Replies: 3
    Last Post: September 21st, 2017, 09:51 PM
  2. Find the surface area of structural beams using Dynamo BIM!
    By Simply Complex in forum Blog Feeds
    Replies: 0
    Last Post: December 19th, 2016, 08:16 AM
  3. Replies: 0
    Last Post: September 14th, 2015, 12:15 PM
  4. Area of Curtain System-Dynamo?
    By cliff collins in forum Dynamo BIM
    Replies: 4
    Last Post: August 20th, 2015, 10:08 AM
  5. Replies: 0
    Last Post: August 1st, 2014, 01:15 AM

Posting Permissions

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