How to delete a meshed geometry in mechanical via scripting, because i want to import another gomtry

Options
ramsaran
ramsaran Member Posts: 10
Name Dropper First Comment
edited January 9 in Structures

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 

Best Answer