Dear friends,
By using onLButtonDown how can I select a group (Box) and find its position then edit it? Thank you in advance for your help…
Dear friends,
By using onLButtonDown how can I select a group (Box) and find its position then edit it? Thank you in advance for your help…
You can only use onLButtonDown()
from within a Tool
class instance.
Refer to the Ruby code examples for a Tool example.
You will likely have to write a picking tool that uses the Sketchup::Pickhelper
and Sketchup::InputPoint
classes.
Also, because a group is really a “special” kind of component instance, when you edit it with code, you are actually editing it’s definition’s entities collection.
Please post Ruby API questions in the Ruby API subcategory.
We will not write your code for you. You must at least try to write code, and then come and post questions for specific problems you encounter. (When you do, post in the correct category and post a the code snippet you are having problems with.)
Do you know an example program that on it for example we can select a box and make a hold on it or something similar?