Win7 x64 Professional, SolidWorks 2015
I have created an add-in that let the user to select same sketches.
How can I get the sketches from SelectionBox?
Use the SelectionManager.GetSelectedObject6
For the Index, use the PropertyManagerPageSelectionBox.SelectionIndex(0)
Dim selMgr as SelectionManager
Set selMgr = Part.SelectionManager
Dim myFeat as Feature
Dim mySketch as Sketch
Dim i as Integer
For i = 0 To mySelectionBox.ItemCount - 1
Set myFeat = selMgr.GetSelectedObject6(mySelectionBox.SelectionIndex(i), -1)
Set mySketch = myFeat.GetSpecificFeature2
Thanks for your help
It is what I was looking for
Retrieving data ...