Hi. I'm having issues with replacing a selected face in my macro feature. I have a face that is selected and defines a features selected face similar to editing a 2d sketch's plane.
My code calls macrofeature.accessselections
Getselectedobjects
Replace the current face's selected object index with with the new face.
Setselectedobjects2
Macrofeature.modifydefinition
But it just doesnt work. I keeps the old selected face.
I can set selections to nothing and that updates but replacing that selectedobjects index fails.
Ill attach the code in the morning.
Thanks
SolidworksApi macros