Make 2D Missing Silhouette line

I made a script for setting Make 2D line property following an online tutorial. In the tutorial, everything seems to be fine. On my side, it sets a line into a wrong category. Like the image I attached shows, the “Make 2D” component failed to recognize one line as a Silhouette Boundary.I tried both Rhino 6 and Rhino 7. The results are the same. Can someone let me know why?

give a link to the tutorial