Grasshopper

algorithmic modeling for Rhino

Hello forum.

Is there any way to use lyrebird to set a parameter that requires a string input?

I have an adaptive component with 3 window nested inside it as family types and I would like to have gh control which family type is used but so far I cant get it to work.

I even renamed the families as just number named items but I still think revit reads it as a string??? any advice is helpful ... Thanks ! E

Views: 555

Replies to This Discussion

Hi Ethan!
We had already discussed this privately via direct messages but for the benefit of all Lyrebird users I will respond here again.
Yes, you can easily set string(text) parameters in Revit using Lyrebird. In this particular instance when you have a parameter that is allowing you to pick a Family Type nested inside of another family (a little drop down menu) it's not a Text (string) parameter but rather an ElementId parameter.
Now, I haven't tested this personally but I am going to guess that since ElmentId is Revit API specific object and doesn't exist in Grasshopper it might not be possible to set this parameter from grasshopper.
This might be a suggestion to Logan, if you are reading this. Converting integer or string to ElementId is easy enough so I am sure that you can add that functionality and allow users to set ElementId type parameter by feeding in integer/string. What I see problematic here is a method of procurement of such element id. Revit doesn't make this property obvious and requires that you have Revit Lookup installed and know what to look for since element type is referred to as symbol in Revit API jargon. Maybe it makes sense to expand Lyrebird tools with additional components that can query up family type and extract ElementId to later use it as input to Lyrebird Out component? Maybe if you want to keep this contained in one component, just say F**k it, you can't do it and that's it. I love that Lyrebird is such a straight forward tool, and adding more components to it might actually be more distracting. It's up to you.

Thanks Konrad for sharing these solutions with the forum!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service