I have a Block Styler object selection that allows me to select some element faces. I would like to put these selected element faces in to a group. The group gets created, however it does not contain the element faces - it is empty.
element_faces = self.selection0.GetSelectedObjects()
group = self.workFemPart.CaeGroups.CreateGroup("element_faces ", 1, element_faces)
The group also does not appear in the Simulation Navigator/Groups. I can only see it if i right click - manage groups.
Manually creating a group of element faces works. The code in a recorded journal looks exactly the same.