Hello all.
I have a VB.NET AddIn that we've used for many years and have done quite a bit with it, including using the Selection Manager. What I have not done is detect 'things' the users selects dynamically on-the-fly, if you will. Let me explain.
For various reasons (having to do with our data as well as SolidWorks configurations) - we can not use SolidWorks BOM functionality. Currently our Item Bubbles are "Text" that we fill in manually. Let's not debate this .
I want to add functionality to our Add In that will show a non-modal form (easy enough) - then wait for the user to select components in a drawing view. I have developed our own 'Smart BOM' which will be on the drawing, and I can determine what component the user has selected and then add a 'dumb' Item Bubble to the drawing and annotate it with the correct text. I'd like the user to be able to do this indefinitely.
Where I'm struggling is in how to detect when the user has selected a component in a drawing view. This isn't an event I'm familiar with, or if it's even an event.
Are there any examples of dynamic selection while the form (I could also use a Property Manager page, or whatever, if that makes it more feasible) waits, then acts on the user's selection WITHOUT having to go back to the form and click any sort of button. I want to detect and act upon the click, and then what's selected.
Thanks in advance for any advice!
SolidworksApi macros