About Arch structure and structural nodes:
All Arch Structure objects have a Node property, which holds a list of 3D vectors. These vectors define a polyline or a face (in case of slabs). It would be easy, I believe, to make all the studs independently, then join them all into one structural object. But the Node property won't be able to express the different studs correctly, because it only stores a simple list of 3D vectors. I can imagine 3 possible paths:
1) We change the Node property so it can show more complex situations like this one, but I don't know how
2) Each stud would be one arch structure
3) We change the Arch structure object so a sketch or any other 2D object can be used instead of the Node vectors. This would be by far the most powerful solution, but it will be more work to keep the sketch updated...
Now I'm going to test this macro..
*EDIT* Amazing work! One small defect I saw, editing the Windows property directly in the Property editor gives errors because the string is split into different numbers.
Also looking at how it works, I'm not sure the Arch Structure thing above makes much more sense. Better add a method to your object that outputs the 2D lines. Then we can see how to use that to for ex. generate Arch Structure nodes or export to dxf directly...