Mimic 'select' in custom tool
-
Hi,
I am writing a script where I want the user to be able to select some entities, have code do something with those entities, then ask the user to select some more entities, have the user do something with those entities, and so-on.
The best way to do this is by using a tool - have the user use the tool to select items, press a command to execute the ruby script, the tool will re-set itself and the user can select more items. However, I'm not sure how to have the user select within a custom tool.
Thanks,
--
Karen -
Duh, brain fart - use onMButtonDown to detect user's selection of objects...
-
An easier way is to make menu macros for the context menus (the right-click popup and the Edit menu's selection submenu.)
FYI: I posted a boilerplate sample
Advertisement