Floor span direction line extract

Hi All,

How would one extract floor span direction in a form of a line? I want to draw joist positions as polylines but I need to somehow extract the direction in which my lines are supposed to be running.

Thannk you for your help in advance!

Regards,

Jonas Blazinskas

Any idea why I am getting 6 ouputs when I only have 3 floors? As well as I only have 1 floor spanning in different direction out of 3 so not sure why i have 3 x a value of 0 or 1.57?

bump still not resolved

Messed around a bit and i found out per item in the list it checks the enitre list upto that item.

So if you have 1 floor, you get 1 output, 2 means 3 outputs, ect.

I think i fixed te code:

import clr

elist = IN[0]

elements = []
out_list = []


for i in range (0, len(elist)):
	elements=UnwrapElement(elist[i])
	angle = elements.SpanDirectionAngle
		
	out_list.append(angle)	

OUT = out_list