Dynamo script nods problem

Are your nurbscurves completely straight? Couldn’t tell from the pics… If so extract the start and endpoint and create a new line out of them and feed that into the structural framing node.