How can I define some mesh algorithms in mechanical using scripting, and assign them to a geometry?
#Mesh Branch mesh=ExtAPI.DataModel.Project.Model.Mesh
#Body Selection allBodies = ExtAPI.DataModel.GetObjectsByType(DataModelObjectCategory.Body) b1Tree = allBodies[0] b1Geo = b1Tree.GetGeoBody()
#Selection Tool b1Sel = ExtAPI.SelectionManager.CreateSelectionInfo(SelectionTypeEnum.GeometryEntities) b1Sel.Entities = [b1Geo]
#Apply Meshing Method multiMethod = mesh.AddAutomaticMethod() multiMethod.Location=b1Sel multiMethod.Method=MethodType.MultiZone
#Apply Body Sizing bodySiz = mesh.AddSizing() bodySiz.Location = b1Sel bodySiz.ElementSize=Quantity(100,"mm")