Hi Erik,
Thanks a lot for your answer!
I try with a simple code, and it works!
I have two more questions:
1- Is there any documentation to easily get these informations ?
2- I try to create a displacement result for a named selection, but the record is incomplet I guess. I get the command bellow where the scoping method is "named selection", but I don't know how to affect a named selection.
total_deformation_45 = solution.AddTotalDeformation()
total_deformation_45.ScopingMethod = GeometryDefineByType.Component
Thanks a lot,
Jean
nb : I did not try the export for now.
Code example:
#----------------------------------------------------------------
solution = ExtAPI.DataModel.Project.Model.Analyses[0].Solution
#----------------------------------------------------------------
#----------------------------------------------------------------
resgr=[]
# Déplacement selon x, y, z, total
directional_deformation_global_x = solution.AddDirectionalDeformation()
directional_deformation_global_x.NormalOrientation = NormalOrientationType.XAxis
directional_deformation_global_y = solution.AddDirectionalDeformation()
directional_deformation_global_y.NormalOrientation = NormalOrientationType.XAxis
directional_deformation_global_z = solution.AddDirectionalDeformation()
directional_deformation_global_z.NormalOrientation = NormalOrientationType.XAxis
total_deformation_global = solution.AddTotalDeformation()
# Contraintes equivalentes Von Mises
equivalent_stress_global = solution.AddEquivalentStress()
resgr.append(directional_deformation_global_x)
resgr.append(directional_deformation_global_y)
resgr.append(directional_deformation_global_z)
resgr.append(total_deformation_global)
resgr.append(equivalent_stress_global)
dossier_global = ExtAPI.DataModel.Tree.Group(resgr)
dossier_global.Name = "Global"
#----------------------------------------------------------------