How to delete a meshed geometry in mechanical via scripting, because i want to import another gomtry
ramsaran
Member Posts: 11
**
i am using for loop to mesh multiple geometry so i want to delete meshed geometry to mesh another geometry, below code i am using
for i in range(4):
ExtAPI.Application.ImportGeometry('E:\DC_geometry\len_geometry\save{j}.scdoc'.format(j=i+1)) # to import geometry
mesh_15 = Model.Mesh mesh_15.GenerateMesh() ExtAPI.DataModel.Project.Model.Mesh.InternalObject.WriteFluentInputFile(r"E:\\DC_geometry\\3_meshed_geometry\\sav{j}.msh".format(j=i+1)) # to save meshed geometry
Tagged:
0
Best Answer
-
I believe this was answered here: https://discuss.ansys.com/discussion/840/how-to-create-a-button-to-clear-generated-mesh-in-a-faster-way#latest
0