I am developing a plugin for AutoCad.
In a command loop , user will select some text objects by clicking them or By window.
for example : text1
, text2
, text3
, text4
, text5
, text6
, text7
- User type command: multiselect
- user click on
text1
- user press on ALT key on the keyboard
- user click on
text2
- user click on
text3
- user select
text4
andtext5
by Window - user release ALT key
- user select
text7
- Press ENTER to end multiSelect command
Through this command I want to generate a list like this :
[
{string : "text1" , groupId : 1},
{string : "text2" , groupId : 2},
{string : "text3" , groupId : 2},
{string : "text4" , groupId : 2},
{string : "text5" , groupId : 2},
{string : "text6" , groupId : 3},
{string : "text7" , groupId : 3},
]
Could someone show me some hints on how to do this ?