I am trying to assign the correct beam number to my lines loads that are in my model but they are not in the correct order.
I need help creating a code block statement that will do the following:
while holding the first value in my watch nodes (i.e. x1.1 , y1.1 , xx1.1 , yy1.1)
loop through the values that are part of the beam start and end X and Y coordinates with an if statement similar to below.
if x1=x1.1
&
if y1=y1.1
&
if xx1=xx1.1
&
if yy1=yy1.1
Once all the if conditions become true then I would like to get the number from SetIntersection.
For example:
When the 4th number that is part of the beam start and end X and Y coordinates become equal to the the 2nd number in my line load start and end X and Y coordinates I would like to obtain the number 7 in SetIntersection and assign it to a list.
The final list will be in the following order. 1,7,2,14,4