Hi
One can get and set the meshmetric (mesh) in the Mechanical UI.
To set the aspectratio:
mesh=ExtAPI.DataModel.Project.Model.Mesh
mesh.MeshMetric=MeshMetricType.AspectRatio
To get the maximum aspect ratio given in the mesh metric details in the UI:
El_qua_max=mesh.Maximum
Min:
El_qua_min=mesh.Minimum
Hope this is of help
Erik