line = rs.GetObject(‘’, rs.filter.curve)
midpoint = rs.CurveMidPoint(line)
I have an object from where I create a dupedge. The curves Z-postition should be 0, but when running the code is says ‘9.53679008007e-09’. Where does that value come from? If i create a new line and select it it says 0.
Since there is a bit of fuzziness when working with floating point numbers it is best to take into account the epsilon. So if you need to delete above 0 you should check for 0+epsilon, where epsilon is a small value. 0.00001 could be a good value to start with.