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

Results 1 to 7 of 7
Like Tree6Likes
  • 6 Post By DaveP

Thread: View Scales report differently

  1. #1
    Moderator DaveP's Avatar
    Join Date
    January 10, 2011
    Location
    St Paul, MN
    Posts
    2,949
    Current Local Time
    07:33 AM

    View Scales report differently

    Not sure if I should ask this here, or on the Dynamo forum, but it seems like more of a Revit question.
    I've got a graph that Aligns Views on Sheets.
    One of the first things it does is to filter down the Views so it only looks a Views with the same Scale as the one you're matching.
    It's been working fine for a while, but now I've got a project where some of the View are reporting a Scale of 1/8" = 1'-0", and others are reporting the Scale as 96.
    We (at least those of us in the US) would recognize those as the same, but Dynamo sees it as a string, so they're different.
    How and Why did some View get set up using the inches=feet style and some as just the scale number?
    And: any simple way to correlate the two?
    View Scales report differently-view-scales.png

  2. #2
    Moderator DaveP's Avatar
    Join Date
    January 10, 2011
    Location
    St Paul, MN
    Posts
    2,949
    Current Local Time
    07:33 AM
    There's a Core node named "Number From Feet and Inches", but it doesn't accept input.
    It only lets you type in a hard-coded value.
    Also looked at Springs.Fraction2Feet, but that's either not working (possibly because of leading blanks) or not able to pass thru the value if it's already just a number (96)

  3. #3
    Moderator DaveP's Avatar
    Join Date
    January 10, 2011
    Location
    St Paul, MN
    Posts
    2,949
    Current Local Time
    07:33 AM
    Found it! (I love answering my own questions )
    The "View Scale" parameter returns differently "united" values - some 1/8" = 1'-0", some 96, some just empty.
    Instead, I found the "Scale Value" parameter, which always returns the value as a number.
    That's not all, though.
    The parameter name is not just "Scale Value"
    The parameter name is "Scale Value 1:"
    Yes, there are spaces in between the Value and the 1. Four spaces to be exact. That took some trial and error
    AND there IS a colon at the end.

  4. #4
    Member
    Join Date
    May 30, 2015
    Posts
    200
    Current Local Time
    07:33 AM
    Quote Originally Posted by DaveP View Post
    There's a Core node named "Number From Feet and Inches", but it doesn't accept input.
    It only lets you type in a hard-coded value.
    Also looked at Springs.Fraction2Feet, but that's either not working (possibly because of leading blanks) or not able to pass thru the value if it's already just a number (96)
    Where are you pulling it from specifically, I’ve seen the difference but not in the same list as you show.


    Sent from my iPhone using Tapatalk

  5. #5
    Member
    Join Date
    May 30, 2015
    Posts
    200
    Current Local Time
    07:33 AM
    Quote Originally Posted by Mengelmn View Post
    Where are you pulling it from specifically, I’ve seen the difference but not in the same list as you show.


    Sent from my iPhone using Tapatalk
    Note to self - read full thread


    Sent from my iPhone using Tapatalk

  6. #6
    Moderator cellophane's Avatar
    Join Date
    August 9, 2011
    Location
    Louisville, KY
    Posts
    6,104
    Current Local Time
    08:33 AM
    Quote Originally Posted by DaveP View Post
    How and Why did some View get set up using the inches=feet style and some as just the scale number?

    Click image for larger version. 

Name:	View Scales.PNG 
Views:	12 
Size:	31.0 KB 
ID:	33828
    I'm curious about the fact that some come in as a fraction and some as a decimal.. I ran a quick test here and everything came in as a decimal value (96) no matter how I collect the value. I collected it using both Element.GetParameterValueByName and View.Scale (clockwork) and everything looked normal

  7. #7
    Moderator DaveP's Avatar
    Join Date
    January 10, 2011
    Location
    St Paul, MN
    Posts
    2,949
    Current Local Time
    07:33 AM
    The only thing I found in common was that the ones that showed feet and inches used View Templates, and the ones that had just a number did not have the Scale included in the VT.
    Didn't do a comprehensive comparison, but it looked that way at first glance.

Similar Threads

  1. Text acts differently
    By glkirk in forum Architecture and General Revit Questions
    Replies: 1
    Last Post: May 9th, 2018, 10:42 AM
  2. Graphic Scales
    By MrBIMtastic in forum Architecture and General Revit Questions
    Replies: 12
    Last Post: December 16th, 2015, 07:52 PM
  3. Hide at scales
    By anjali in forum Architecture and General Revit Questions
    Replies: 2
    Last Post: January 23rd, 2014, 02:08 PM
  4. Scales
    By gdoherty0102 in forum Architecture and General Revit Questions
    Replies: 7
    Last Post: January 22nd, 2013, 02:06 PM
  5. Naming every instance of a group differently
    By edmund in forum Architecture and General Revit Questions
    Replies: 1
    Last Post: May 4th, 2012, 09:27 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
  •