SelectionBox and Macro Feature

I am trying to develop an Add In (in c#) for Solid Works which includes use of "SelectionBox" and "Macro Feature".

As per the api help found online, I was able to add a class which inherits "ISwComFeature"

and I am able to add a custom feature too with help of that, check below snapshot.


Now in my add in custom UI, I also have a Selection Box, which is used to select FACES, as below

Now my query is..

Is there a way to directly save this selection into the "macro feature" object getting created ?



SolidworksApi macros
Answers 1
AT
AT 2016-03-14 Best Answer

Yes, you need to use the 2015 SOLIDWORKS API Help - SetSelections2 Method (IMacroFeatureData)

Take a look at this thread regarding the mandatory arguments for this method: