Fist of all, I;m talking about a simple frames, that lie on one plane. And all of the components have only one cutting face at each end.
There's no need for something extremely complex. Assume that all weldment sketches are on top plane, and there is no complex corners where more than two profiles meet. Just a simple frame.
The best way we could think of, is to select those two cut face of each component, then get theyr normal vectors, and calculate the angle between lets say right plane and those vector by pure math.
The problem is that we cannot think of the way for a macro to select only those cut faces of each of the component.
the structure would be something like:
Select component 1>select face 1 > get vector > calculate angle> select face 2 > get vector > calculate angle > select component 2 and so on...
but how to differentiate those two cut faces?