I’m making an attempt to determine find out how to let the person of my extension choose an edge AND one of many endpoints of the sting so as to assemble some geometry with respect to that chosen level.
A dialog with 4 choices (left / proper / prime / backside) would do the trick as I’m working in 2D solely. Nonetheless, I want to implement a barely improved variation of that which includes the person choosing the sting after which having a mechanism to paint the endpoints. Thus, the dialog would solely current the person 2 choices as an alternative of 4.
To this finish, I used to be contemplating including development factors by way of the Ruby API however I used to be unable to customise them by way of the materials
and layer
attributes. I’d ideally like to vary the tiny plus that’s barely seen with some type of crammed dot of a given colour. Is that even attainable?
Or is there a greater option to clear up my unique downside?
Sure, nevertheless it is best to do that the Sketchy method.
This implies coding a customized Ruby device that leverages a PickHelper
or InputPoint
object. A device can draw to the viewport (your little endpoint bulbs) or simply use SketchUp’s native endpoint inferencing.
You must take a look at the instance instruments on GitHub:
1 Like
Thanks Dan! I’ll research these tomorrow.
At the moment I’ve a Command
as an alternative of a Device
because the person is meant to first choose the sting after which invoke the command by way of a menu merchandise. It feels like I’ve to transition all that code right into a Device
object as an alternative, proper?
1 Like