Donate Now Goal amount for this year: 2500 USD, Received: 1869 USD (75%)

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
Like Tree8Likes

Thread: Element.GetParameterValueByName Use

  1. #1
    New Member
    Join Date
    June 6, 2017
    Posts
    4
    Current Local Time
    07:30 AM

    Element.GetParameterValueByName Use

    I'm trying to get the height of walls by Element.GetParameterValueByName
    But it doesn't work
    I tried the same way used for windows (it worked for windows but not walls)
    Photos are in Attachements
    Attached Thumbnails Attached Thumbnails Element.GetParameterValueByName Use-fonctionne-mais-donne-valeures-nulles.png   Element.GetParameterValueByName Use-essai-avec-family-instance-get-type.png   Element.GetParameterValueByName Use-fonctionnelle-pour-fen%EAtres.png  

  2. #2
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    08:30 AM
    Hello Anasanas,

    I'm not sure what it will be in another language beyond English, but in the English version we use Unconnected Height to give us the height of a wall.

    As showcased below:

    Attached Thumbnails Attached Thumbnails Element.GetParameterValueByName Use-revitforumquery_wallheight.jpg  

  3. #3
    New Member
    Join Date
    June 6, 2017
    Posts
    4
    Current Local Time
    07:30 AM

    I still have the problem maybe i have to load another version of Dynamo than 1.3?

    Quote Originally Posted by amoursol View Post
    Hello Anasanas,

    I'm not sure what it will be in another language beyond English, but in the English version we use Unconnected Height to give us the height of a wall.

    As showcased below:
    Problem still exists, For info I can use the parameters in english without problem. Thank you
    Attached Thumbnails Attached Thumbnails Element.GetParameterValueByName Use-capture.png  

  4. #4
    Moderator cellophane's Avatar
    Join Date
    August 9, 2011
    Location
    Louisville, KY
    Posts
    6,164
    Current Local Time
    03:30 AM
    You need to capitalize the parameter name: Unconnected Height, not Unconnected height.
    amoursol likes this.

  5. #5
    New Member
    Join Date
    June 6, 2017
    Posts
    4
    Current Local Time
    07:30 AM
    The problem is still here, do you think I have to load another version of Dynamo than 1.3? I take the same program as amoursol and it gives me a null list

  6. #6
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    08:30 AM
    As Cellophane mentioned, when you type in Dynamo is is very case sensitive. As per your image, you need to use a capital letter for the word Height. Please fix that first and see if it works.

  7. #7
    New Member
    Join Date
    June 6, 2017
    Posts
    4
    Current Local Time
    07:30 AM
    Quote Originally Posted by amoursol View Post
    As Cellophane mentioned, when you type in Dynamo is is very case sensitive. As per your image, you need to use a capital letter for the word Height. Please fix that first and see if it works.
    it did not actually. it is weird
    Attached Thumbnails Attached Thumbnails Element.GetParameterValueByName Use-suppp1.png   Element.GetParameterValueByName Use-suppp2.png   Element.GetParameterValueByName Use-supp3.png  

  8. #8
    jmk
    jmk is offline
    Forum Addict jmk's Avatar
    Join Date
    December 31, 2012
    Location
    NM, USA
    Posts
    1,431
    Current Local Time
    12:30 AM
    If you use element.parameters does the value you wish to pull show in the list?

  9. #9
    Moderator Robin Deurloo's Avatar
    Join Date
    July 7, 2011
    Location
    Rotterdam, Holland
    Posts
    1,250
    Current Local Time
    09:30 AM
    It looks like you are using a French Revit, so I guess that you need to use "Hauteur non contrainte" for your parameter name instead of just "hauteur" or Unconnected Height. You need to use the exact text that shows up in your properties window, language and the capitals included.

    Element.GetParameterValueByName Use-hauteur-non-contrainte.png
    Last edited by Robin Deurloo; June 8th, 2017 at 09:38 PM.
    amoursol and boucher57 like this.

  10. #10
    Junior Member
    Join Date
    June 20, 2017
    Posts
    9
    Current Local Time
    07:30 AM
    I agree with Robin and...

    i'm french user!
    But let me suggest you to start writing your code in english...

    Sent from my SM-N910W8 using Tapatalk

Page 1 of 2 12 LastLast

Similar Threads

  1. Copy Rebar from element to element
    By Nsync in forum Structure - General Questions
    Replies: 1
    Last Post: March 31st, 2017, 02:21 PM
  2. Replies: 1
    Last Post: January 16th, 2016, 04:49 PM
  3. Switching element type to Curtain element.
    By MPwuzhere in forum Architecture and General Revit Questions
    Replies: 7
    Last Post: February 27th, 2015, 10:07 PM
  4. Replies: 0
    Last Post: February 12th, 2015, 01:15 AM
  5. element Id and element Type Id
    By Patrick in forum Third party Add-Ins, API and R&D
    Replies: 6
    Last Post: July 6th, 2012, 10:50 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
  •