I've just started writing an add-in, so perhaps I am missing something really obvious, but I seem unable to see all things selected in the project browser.
So far I've come up with three approaches, one yields all selected elements, which is handy for multiple selects, one yields the selected package (or containing package), but won't tell me all the selected packages (when you select more than one). One will let me see diagrams, attributes and methods, but again, in a multi select it won't tell me all.
And then there are some scenario's where it gets a little tougher, like when you select diagrams and elements (you can, at least my 11.1 allows this).
I was looking in the online help for something that would return a collection of sorts that contain all and I could work out (using object type seems easy enough) what's what. I see the GetTreeXML, but haven't found any docs on it. Even so, if it is what the name suggests it might not give what I want.
So how can I process multi selects on things other than elements?