How to select feature by mouse click(API control)

I want to get the feature name/type by mouse clicking at therunning time of solidworks.

Does anybody have some examples or suggestions?

thanks in advance!SolidworksApi macros
Answers 5
SF
SF 2009-06-17 Best Answer
Hi qinghai

I am also interested in this.

Thanks
JB
JB 2009-06-17
Use the selection change event. There is a macro athttp://www.eng-tips.com/viewth...cfm?qid=241405&page=10that auto-measures on the selection change event.
SF
SF 2009-06-17
Thanks, Josh,

But it isn't exactly what i want .
I hope I could get feature or dimension name by mouse click andsend it into a database to store its information.
JB
JB 2009-06-17
Yes, you can do that. Are you asking someone to write all thecode for you? The macro I linked to is an example of how to makeyour macro/program receive the SelectionChangeNotify event. Thatevent will occur any time the user changes selections. All you needto do is change the code that runs when the user changesselections.
SF
SF 2009-06-17
it takes time to understand it.
I will come back if it fixed.