Hello Dan,
I know Sketchup not coding, and my coder buddy has just started to code for sketchup. I insisted on him to ask a forum but he was so stubborn and now i know why. It’s more complicated than i thought.
Maybe these links can give some clue to him;
I write a custom move tool.
When moving the component, the InputPont show the inference point itself.
[custom_move_tool]
But the builtin move tool don’t show the inference point itselt.
[builtin_move_tool]
how to do it?
The code is follow, Copy it and run in the bulitin ruby console:
class CustomMoveTool
def onMouseMove(flags, x, y, view)
@mouse_ip = view.inputpoint(x, y)
if @mouse_ip.valid?
# create component instance from builtin components
if @component_instance.n…
Yes, but this is advanced programming and you should get more than limited knowledge of SketchUp, and learn Ruby basics.
Start by learning how to do simple things, before attempting complex things. Learning SKetchUp Ruby is the subject of many topics here (especially in the Ruby API sub-category. (Use forum search features, magnifying glass icon, top right.)
There is no actual built-in means of “stickiness” between lines and components in SketchUp.
This is mainly because SketchUp is a surfa…
Am i close?