HI
So this works (2023 R1 and R2):
model = ExtAPI.DataModel.Project.Model
Parts = model.Geometry.GetChildren(DataModelObjectCategory.Part,True)
for Part in Parts:
for Body in Part.Children:
print(Body.Name)
Body.Dimension=ShellBodyDimension.Two_D
Body.Behavior=Model2DBehavior.PlaneStrain
See the ACT Start Page for examples on how to loop and get geometry.
Closing the post.
Erik