Donate Now Goal amount for this year: 2500 USD, Received: 1627 USD (65%)

Results 1 to 4 of 4
Like Tree2Likes
  • 1 Post By DanielHurtubise
  • 1 Post By Bross

Thread: Set calculated parameter of all type

  1. #1
    Member Bross's Avatar
    Join Date
    June 16, 2011
    Location
    The Netherlands
    Posts
    138
    Current Local Time
    02:13 PM

    Set calculated parameter of all type

    Hi There,

    I'm triyng to set a parameter of all types under one loadable family.
    All values are different and need to be increased by 5.
    So i've managed to create a srcript that does work, only for one type at a time.
    That leaves me to run the script for 30 times since i have that many types under this one family.

    I've also managed to select all the types under this one family.
    Only I can't feed the whole list into Element.SetParameterByName.
    I can see why, because it is Element and not Elements.

    So does anyone have an idea on how to run this for multiple types at once?Set calculated parameter of all type-setparameterbyname.png

  2. #2
    Moderator
    Join Date
    February 2, 2011
    Location
    Montreal/Paris
    Posts
    830
    Current Local Time
    07:13 AM
    If you have multiple elements you will need to create a sequence.

    Set calculated parameter of all type-pasted-image-2017_03_24-03_14-pm.png
    amoursol likes this.

  3. #3
    Member Bross's Avatar
    Join Date
    June 16, 2011
    Location
    The Netherlands
    Posts
    138
    Current Local Time
    02:13 PM
    Thanks for the reply.

    I'm pretty new to dynamo, so i kind of get you how to solve the problem.
    The sequence would mean that I tell Dynamo to run the script over and over again, untill it got pass all of the types then?

  4. #4
    Member Bross's Avatar
    Join Date
    June 16, 2011
    Location
    The Netherlands
    Posts
    138
    Current Local Time
    02:13 PM
    Set calculated parameter of all type-setparameterbyname_solution.png

    And then by surprise it seems I could just feed a list of multiple element in the get and setparameterbyname.
    And just that easy I have my solution.
    amoursol likes this.

Similar Threads

  1. Replies: 0
    Last Post: March 11th, 2016, 12:15 AM
  2. Type's parameter cannot recursively point to the type itself?
    By jeeenyuss in forum Architecture - Family Creation
    Replies: 4
    Last Post: March 27th, 2015, 06:02 PM
  3. Replies: 0
    Last Post: August 26th, 2013, 07:45 AM
  4. Including instance parameter in type parameter formula
    By sabari2504 in forum Architecture - Family Creation
    Replies: 2
    Last Post: August 12th, 2013, 02:54 PM
  5. select by parameter? curtain wall panels' materials by parameter, by type or family?
    By oompa_l in forum Architecture and General Revit Questions
    Replies: 1
    Last Post: January 24th, 2013, 02:20 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
  •