Hello Dynamites,
I’m looking to retrieve a list of elements connected to a beam. You know how, when you hover over a beam and press the Tab key, it magically reveals all the connected elements? Well, I’m curious if there’s a Dynamo solution that can replicate this.
Now, for MEP elements, there’s this MEPover package that gets the job done. But when it comes to structural elements, I’m in the dark. Is there a package or perhaps a method hiding in the Revit API that I don’t know about? If you’ve got the inside scoop, I’m all ears!"
Hi, the example is for all the elements connected to it, here I think we need to make a recurring function (it’s a chapter that I read, it doesn’t fit for the moment) step by step .
Sorry I can’t do better at this stage.
Sincerely
christian.stan
Just to be clear, the “magic” Tab-Select functionality does not get all elements connected to a particular Structural Framing element. It selects all Structural Framing that share a common endpoint.
Also, “Structural Joins” are different from geometric joins (as a structure person, I think of concrete elements as an example of geometric joins) that cut geometry of one element from another. They control a number of behaviors such as how the elements move in relation to one another and cut back (for steel or wood). I don’t know how the different joins are handled programmatically or in the API, but I would guess that is why the Rhythm node is not working on the steel beams in your example.
That doesn’t help answer your question, but it may help others trying to provide an answer.
I fixed it by searching here in the forum itself by modifying this line from your code c=IntersectionResultArray() to this c=clr.Reference[IntersectionResultArray]() and the StrongBox error was removed
But I couldn’t handle the second error which is happenng at this line( if d[0] == None: )of the function
Think it was dynamep, and for select it was rie, but can befound in many package i guess…btw it will only work in some cases as its actuelly just create a scaled BB box in the first selection…not sure at all but Genius Loci have a node "select joined element, havent tried but probably it could help, but will never be as tab select