I have some problem with 0 line length. I have created script where I need to connect created lines to component in tekla to create reinforcement (tekla part is only a background). In line list I have one “Invalid Line” and due to that I can not connect it further. I can not remove that index because because it will mess whole downstream. How can I replace that “Invalid Line” to line with 0 length?
Zero-length lines are considered invalid. If you must replace them with valid lines, then you’ll have to create very short ones in the same location.
But ideally your algorithm would be flexible enough to be able to either remove invalids or replace them with nulls.