Results 1 to 4 of 4

Thread: Formula for parameter value from family type drop down

  1. #1
    Junior Member
    Join Date
    October 21, 2019
    Location
    Belgium
    Posts
    7
    Current Local Time
    06:51 AM

    Not allowed! Not allowed!

    Formula for parameter value from family type drop down

    Hello all,

    If have a question about the following problem i couldn't find on the net, explaining it with a simplified example:

    In my family i added a nested family (generic model) which has two types: 100mm and 50mm. After loading this nested family into the family i add a label named 'type' to the nested family. Now you have a parameter 'type' with a drop down list where you can choose '100mm' or '50mm'.

    Is it possible to write a formula when you choose '100mm' the actual number 100 is filled in as a value in a parameter, so you can use this also to calculate other parameters because the distance determines other values.

    Picture with the example
    Click image for larger version. 

Name:	Knip2.PNG 
Views:	96 
Size:	11.7 KB 
ID:	37903

    Greetingz
    Last edited by rbvb1; November 27th, 2019 at 09:47 AM.

  2. #2
    Member
    Join Date
    November 4, 2012
    Location
    Budapest, Hungary
    Posts
    147
    Current Local Time
    06:51 AM

    Not allowed! Not allowed!
    You have to create a new <family type...> parameter for each type of the nested family, than on the real parameter select the those parameters in the formula.

    In this screenshot, the nested family Family2 has two types, 100 mm and 200 mm, the correct type selected based on the Size parameter:
    Click image for larger version. 

Name:	2019-11-27_13-14-19.png 
Views:	126 
Size:	21.5 KB 
ID:	37904
    Not really convenient, and it's not easy to add more types to the nested family. My recommendation is to assign parameters of the nested family to parameters to the host family with the small grey 'associate family parameter' button.

  3. #3
    Forum Co-Founder Alfredo Medina's Avatar
    Join Date
    December 7, 2010
    Location
    Orlando, FL, USA
    Posts
    3,231
    Current Local Time
    12:51 AM

    1 Not allowed! Not allowed!
    Quote Originally Posted by rbvb1
    Is it possible to write a formula when you choose '100mm' the actual number 100 is filled in as a value in a parameter, so you can use this also to calculate other parameters because the distance determines other values.
    Welcome to the forum. It can be done like this:

    Click image for larger version. 

Name:	11272019-504pm.png 
Views:	158 
Size:	11.2 KB 
ID:	37908

  4. #4
    Junior Member
    Join Date
    October 21, 2019
    Location
    Belgium
    Posts
    7
    Current Local Time
    06:51 AM

    Not allowed! Not allowed!
    Thanks @Alfredo Medina!
    And this is what i need. Now the distance is connected which type you choose. Perfect!

    greetingz!

    @infeeeee also thanks for your reply, it helped but it was the other way around so the distance filled in automatic. grtz

Similar Threads

  1. Using family type parameters in visibility parameter formula
    By jensslofstra in forum MEP - Family Creation
    Replies: 1
    Last Post: November 23rd, 2018, 03:49 PM
  2. Force a "Family Type" parameter in a formula?
    By Jj Mac in forum Architecture - Family Creation
    Replies: 21
    Last Post: June 8th, 2018, 01:37 PM
  3. Can I Use Family Type Parameter in Conditonal Formula?
    By cordell in forum Structure - Family Creation
    Replies: 4
    Last Post: November 26th, 2014, 12:57 PM
  4. Formula driven Family Type Parameter
    By RaiderArch in forum Architecture - Family Creation
    Replies: 5
    Last Post: March 12th, 2014, 09:12 PM
  5. Including instance parameter in type parameter formula
    By sabari2504 in forum Architecture - Family Creation
    Replies: 2
    Last Post: August 12th, 2013, 02:54 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
  •