I had a quick look around google and similar topics, but I couldn’t find anything in a reasonable amount of time.
I am re-building a structural model and looking for a way to check which slabs have been drawn with the wall-constraints command, and also to group those associated walls with that slab in dynamo.
Here’s what I don’t know how to do:
Collect sketch and test if the sketch line is associated with a wall.
Get the wall associated with the sketch line.
Any help is appreciated…and unfortunately, I have zero python skills, aside from copy-pasting code between the dynamo forum and the script node.
I don’t, because there isn’t any sort of node (that i am aware of) to check if walls have been used as a constraint in the slab sketch mode. This is like the “pick-line” option when sketching.
There is a ConstrainedToWall Property, but it is part of the BuiltInFailures Class. I couldn’t begin to speculate how / if this might be leveraged to find constraints.
There are also some interesting looking methods under the Sketch Class.
CanBeLocked
GetGeneratingElementIds
GetMonitoredLocalElementIds
GetGeometryObjectFromReference
IsMonotoringLocalElement
Maybe this underlying relationship can’t be “exposed” by the API?
Again, I cannot (unfortunately) write scripts or code.