So I’m building this script to place duct hangers at specific distances and the final step is to use the duct lines as driver of the direction of the hangers themselves.
Using this node Vector.AngleAboutAxis I’m getting the wrong angle values as you can see.
Would appreciate immensely any suggestion.
packages used:
- bimorphNodes
- Clockwork for Dynamo 2.x
- MEPover
Can’t really see what is off on this as we don’t have a source model or a way to see one ducts which is wrong. You can build such a sample with Dynamo using a line creation node (ByBestFitThoughPoints works easily enough, or ByStartPointEndPoint), and then a Line.Direction node to get the direction you drew it, and finally get the angle as before.
I also tried that at one point 
I still can’t tell where the angle is being calculated incorrectly here. We need a simple producible case such as four lines drawn in Dynamo giving you two or three angles which you think are incorrect.
1 Like