Clear FEM mesh with script

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
S-Y.Chen
Posts: 63
Joined: Tue Aug 27, 2019 4:33 pm

Clear FEM mesh with script

Post by S-Y.Chen »

Hi there,

I am using the following script the retrive the object of FEM Mesh

Code: Select all

for obj in App.ActiveDocument.Objects:
    print("Label =",obj.Label, ", Name =",obj.Name, ", TypeId =",obj.TypeId, "Docuement=",obj.Document )
    if obj.TypeId == "Fem::FemMeshObjectPython":
       femmesh_obj=obj
Then, how do I clear the mesh in the objective "femmesh_obj" ?

Thanks for the help.
Last edited by Kunda1 on Thu Apr 14, 2022 10:27 pm, edited 1 time in total.
Reason: put python in code tags to preserve identation
Post Reply