How can i get the meshgroups name in FEMMesh which import from UNV file?
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
How can i get the meshgroups name in FEMMesh which import from UNV file?
i import a FEMmesh from unv file,the meshobject in treeview have some attributes are liseted in propertiese table,included groups count,but no othor groups information like group name,How can I get them via python command?
Re: How can i get the meshgroups name in FEMMesh which import from UNV file?
I write like this:
but got:
Code: Select all
Fem.insert(filePath,FreeCAD.activeDocument().Name)
mesh = FreeCAD.ActiveDocument.FEMMeshGmsh.FemMesh
for g in mesh.Groups:
name = mesh.getGroupName(g)
print(name)
mesh.getGroupElementType(g)
mesh.getGroupElements(g)
Code: Select all
'App.Document' object has no attribute 'FEMMeshGmsh'
Re: How can i get the meshgroups name in FEMMesh which import from UNV file?
Code: Select all
mesh = FreeCAD.ActiveDocument.FEMMeshGmsh.FemMesh