AnsweredAssumed Answered

Macro Feature, SetSelections2 won't update the MacroFeatureData object

Question asked by Jacob Corder on Feb 5, 2014
Latest reply on Nov 23, 2016 by Alexandre Gragnano

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

Outcomes