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

Results 1 to 6 of 6

Thread: Have a text parameter drive a family type

  1. #1
    Member
    Join Date
    March 27, 2014
    Posts
    119
    Current Local Time
    03:19 PM

    Have a text parameter drive a family type

    At the moment we have a parameter assigned to the status codes on our sheets for users to select the status code family on the sheet.

    I'm trying to change it to use a text parameter (user entered) to define which family to use in a title block for the status codes.

    I've used a similar formulea with a lenght value determining which bracket to use but I can't get the same logic working with a text parameter. The idea would be for the text parameter to stay constant if the sheet changed (from A1 to A3 Design) as some of our sheets have different title block depending on the size and if it's a sketch/drawing/etc.

    Below Is what I was hoping would work but doesn't, any idea?

    Attached Thumbnails Attached Thumbnails Have a text parameter drive a family type-parameter-drive-family.jpg  
    Last edited by Jozi; December 11th, 2018 at 12:39 PM.

  2. #2
    Forum Co-Founder Alfredo Medina's Avatar
    Join Date
    December 7, 2010
    Location
    Orlando, FL, USA
    Posts
    3,089
    Current Local Time
    10:19 AM
    Not possible. In Revit, a text value cannot be the condition to evaluate in an IF statement. Needs to be number, integer, length, or boolean (y/n).

  3. #3
    Member
    Join Date
    March 27, 2014
    Posts
    119
    Current Local Time
    03:19 PM
    Quote Originally Posted by Alfredo Medina View Post
    Not possible. In Revit, a text value cannot be the condition to evaluate in an IF statement. Needs to be number, integer, length, or boolean (y/n).
    I thought as much! Thats that option out the window then

  4. #4
    Moderator DaveP's Avatar
    Join Date
    January 10, 2011
    Location
    St Paul, MN
    Posts
    2,949
    Current Local Time
    09:19 AM
    If it's a fairly limited number of families, you could assign each family (or type) to a parameter, and then use a formula to assign those to the actual Family parameter used as a Label.
    Explained badly, but here's a better explanation
    https://www.revitforum.org/architect...tml#post196345

  5. #5
    Member
    Join Date
    March 27, 2014
    Posts
    119
    Current Local Time
    03:19 PM
    Quote Originally Posted by DaveP View Post
    If it's a fairly limited number of families, you could assign each family (or type) to a parameter, and then use a formula to assign those to the actual Family parameter used as a Label.
    Explained badly, but here's a better explanation
    https://www.revitforum.org/architect...tml#post196345
    Thats one way of doing it but we have more than a dozen status codes (following PAS1192-2). The neatest way is with a family type parameter associated to a family in the title block. We can't get them to stick when changing sheet families. Maybe not a problem and just something the user needs to be aware of!

  6. #6
    Mr. Revit OpEd
    Join Date
    December 14, 2010
    Posts
    2,861
    Current Local Time
    07:19 AM
    Quote Originally Posted by Jozi
    ...We can't get them to stick when changing sheet families...
    Maybe it should be a Project Parameter assigned to Sheets instead? This way the information is stored in the project but applied to sheets individually? If it is something that all sheets show the same value then assign it to Project Information so it is treated as a Type Parameter. Each title block family needs to have the parameter (shared parameter) so it all connects properly.

    In other words...let the project define it instead of using the correct title block type.

Similar Threads

  1. Label text as Type parameter
    By cnd in forum Architecture - Family Creation
    Replies: 3
    Last Post: October 5th, 2017, 07:32 AM
  2. text parameter = type parameter??
    By billiam in forum Architecture - Family Creation
    Replies: 5
    Last Post: August 16th, 2016, 11:22 PM
  3. Replies: 0
    Last Post: March 11th, 2016, 01:15 AM
  4. Material Instance Parameter with Type Text File
    By Revitista in forum Architecture - Family Creation
    Replies: 1
    Last Post: March 25th, 2014, 03:03 AM
  5. Replies: 0
    Last Post: October 29th, 2013, 06: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
  •