How to modify mesh settings ?
Pernelle Marone-Hitz
Member, Moderator, Employee Posts: 871
✭✭✭✭
in Structures
How can I modify some mesh settings through scripting? I'd like to set the following:
Tagged:
0
Answers
-
The following code can be adapted:
mesh = ExtAPI.DataModel.Project.Model.Mesh mesh.UseAdaptiveSizing = False mesh.CaptureCurvature = True mesh.CurvatureNormalAngle = Quantity('30 [deg]')
To do this for all your Mechanical models, this script can be saved to a toolbar button, which will appear for all your Mechanical models in a specific Ansys version. More info in the Ansys Help here: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v242/en/wb_sim/ds_User_Defined_Buttons.html
0