I am focusing on “List 1” for this example (highlighted above) as it has quite a few pipes to sort out.
The script is getting the angle from the centre of the circle to the end point of each pipe. I’ve tried reversing the vectors before getting the rotation but that hasn’t worked.
@Vikram_Subbaiah Thanks for the response, sorry I’ve been pretty swamped today so I haven’t managed to have a lengthy play around.
I did try your normalized method but the values stayed the same. What I did see in your script was the Vector.YAxis node inputting to “othervector”. This did change the values to but only by 360 - “the value”. Still not correct as it’s calculating between the same points - wishful thinking!
I can’t access the model at the moment so I can’t give you accurate angles, but what I’m expecting is something along the lines of:
Expected angle from centre of circle to end point of pipe:
A angle = 10°
B angle = 90°
C angle = 190°
D angle = 280°
Current:
C angle = 349°
D angle = 348.117°
B angle = 348.115°
A angle = 347°
I’ll have another play around when I get the chance but deadlines are looming at the moment. I’ll try and get on tonight and let you know how it goes.
@Tom_James If it still doesn’t work see if you could post a dynamo definition along with a small revit file. Would help us understand your problem better.
@Tom_James Thanks for posting this. I was able to reverse engineer your logic and make a door renumbering graph. Instead of just numbering from 12 o’clock, I have a conditional that allows you to define the numbering start point by using a yes/no parameter along with Bakery’s “Replace Item if True” node. See blue group 3/4 of the way to the right. Hopefully it’ll be of some use.