Page 1 of 2 12 LastLast
Results 1 to 10 of 11
Like Tree1Likes

Thread: Using a formula to map mounting height to a label

  1.    #1
    Junior Member
    Join Date
    January 9, 2019
    Posts
    9
    Current Local Time
    10:50 PM

    Using a formula to map mounting height to a label

    I have an outlet family. Typically the mounting height of this family is 18", but in the case that it is not, I want the MountingHeightLabel to appear AND display what that height is (so contractors can easily see which outlets are atypical). I can get the label to show/not show with a NOT formula, but I'm not sure if there is a way to have the value displayed. So if MountingHeight is <>18" show MountingHeightLabel and MountingHeight value

    Currently I have:
    MountingHeight as an instance length parameter
    MountingHeightLabel is an instance yes/no parameter (not sure this is the only way)

    I have the label itself as part of the nested outlet symbol family.

  2.    #2
    Member
    Join Date
    January 19, 2012
    Posts
    301
    Current Local Time
    09:50 PM
    Is this family Face Based, Wall Hosted, or Un-Hosted?

    If Wall or Un-Hosted, then you can easily create a Shared Parameter for you designated Height to then include in a Tag with or without the Unit Suffix (followed by text in the suffix properties of the parameter) instead of a label within a family that will most likely someone will want to adjust to clean up the positioning of it. Using a Tag is the best solution than an immovable Label (or you'll have to create tons more visual parameters for positioning) within the family.
    Last edited by cftrevizo; January 9th, 2019 at 03:22 PM.

  3.    #3
    Junior Member
    Join Date
    January 9, 2019
    Posts
    9
    Current Local Time
    10:50 PM
    It is a face based family

  4.    #4
    Forum Addict Robin Deurloo's Avatar
    Join Date
    July 7, 2011
    Location
    Rotterdam, Holland
    Posts
    1,021
    Current Local Time
    04:50 AM
    That is why I made a separate height parameter in some of my families, to be able to schedule or label it.
    The problem is that you can not schedule or label the offset parameter that is the 'normal' way to place something at a certain height.
    So what I need to be sure of is that I keep the offset of those families at 0 and that I adjust the height with my own parameter.

    You need to make all those parameters as a shared parameter and you can use that in the label and in the family. That way you should be able to link the text of the label to the value of the parameter.

  5.    #5
    Junior Member
    Join Date
    January 9, 2019
    Posts
    9
    Current Local Time
    10:50 PM
    @Robin

    What type of parameter is the height parameter you create. That is currently what I have. So there is the Default Elevation parameter and then I added my MountingHeight parameter. Is that what you do?

    @cftrevizo I am also exploring the tag option

  6.    #6
    Junior Member
    Join Date
    January 9, 2019
    Posts
    9
    Current Local Time
    10:50 PM
    Also, I can link the text of the label to the parameter no problem, but I want to be able to turn that label off and on depending on what the value of the height is. I only want the value to show if it is not standard mounting height.

  7.    #7
    Forum Addict Robin Deurloo's Avatar
    Join Date
    July 7, 2011
    Location
    Rotterdam, Holland
    Posts
    1,021
    Current Local Time
    04:50 AM
    Yep, I made a Length parameter that I use for the MountingHeight (in your case). Be sure to make that a shared one, so you can use that to make a Generic Annotation with a label that displays that value. The standard Offset parameter should always stay at 0 or else the actual height would be wrong because the offset and your MountingHeight would be added together. I work by myself, so I know that I need to do that, when you have more people working with you you need to be sure they all understand that. I'm guessing a Dynamo scrips should be able to set all the offsets to 0 for you for example.

    I learned a trick from Aaron Maller to add the Generic Annotation to a Generic Model and add that Generic Model to your family. This way you can turn off the GM with the label with a filter if needed because you can not filter Generic Annotations.

    So you can build a formula that turns the visibility of that GM off when at a different value than the standard one.
    Last edited by Robin Deurloo; January 9th, 2019 at 09:32 PM.

  8.    #8
    Junior Member
    Join Date
    January 9, 2019
    Posts
    9
    Current Local Time
    10:50 PM
    I really like the filter idea. It would work, except I am using the MountingHeight parameter for multiple families. The outlets, for example, have a different mounting height than the light switches. So I wouldn't be able to apply a filter in that case. I think I might have to go down the tag route, and only use it when the mounting height is atypical. I was hoping to avoid manual placing for this situation, but I just don't know that there is a workaround

    Thanks!

  9.    #9
    Forum Addict Robin Deurloo's Avatar
    Join Date
    July 7, 2011
    Location
    Rotterdam, Holland
    Posts
    1,021
    Current Local Time
    04:50 AM
    No, you do not use the filter to set the data in the GA, you use the filter to turn off ALL the GA, in case you do not want to see them. You will be able to use a formula to turn off the GA when it is 'standard' height

    Make these:

    MountingHeight (length)
    DefaultHeight (length)
    TagVisible (Yes/No)

    Both TagVisible and MountingHeight would be Instance Parameters and the DefaultHeight can be a Type parameter you can set for each family (and also link to a global parameter if needed)

    In the last one place this formula Not(MountingHeight=DefaultHeight)

    This will turn the TagVisible parameter on or off depending on if both others are the same or not.
    Last edited by Robin Deurloo; January 10th, 2019 at 07:59 AM. Reason: typo

  10.    #10
    Junior Member
    Join Date
    January 9, 2019
    Posts
    9
    Current Local Time
    10:50 PM
    Got it! Thanks!
    Robin Deurloo likes this.

Page 1 of 2 12 LastLast

Similar Threads

  1. pier height anchor bolt height problem
    By Darius in forum Structure - Family Creation
    Replies: 5
    Last Post: November 20th, 2014, 09:26 PM
  2. How to Label the height of the receptacles?
    By Redtape in forum MEP - General
    Replies: 2
    Last Post: November 11th, 2014, 09:17 PM
  3. Family creation tip with Mounting Height
    By anthonyB in forum Architecture - Family Creation
    Replies: 0
    Last Post: September 5th, 2014, 06:56 AM
  4. Model height varies with project floor height
    By sabari2504 in forum Architecture and General Revit Questions
    Replies: 0
    Last Post: April 8th, 2014, 08:51 AM
  5. Walls - Full height or storey height is best?
    By john.warburton in forum Architecture and General Revit Questions
    Replies: 12
    Last Post: December 4th, 2012, 10: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
  •