💡 LightUp 7.1 | SketchUp's only real-time renderer that uses object-based rendering
Download Trial
Tool Development - Polyline Creation
-
I'm trying to put together a tool within my plugin that allows the user to select a string of lines (point by point) and then draws a foundation wall along it. If the user closes the polygon created by these lines this is easy enough to detect since I just check if the original point is selected each time I detect another point. However what I would like it to be able to do is have the user right click the mouse to end or terminate the line entry and then have the plugin proceed with the geometry creation without requiring a closed polygon. I'm sure I can eventually figure this out but I am wondering if there is already some code out there that is floating around that will allow me not to reinvent the wheel on this one.
Advertisement