GDML
GDML copied to clipboard
Unable to create new geometry in GDML workbench
Thank you for your response to my previous question,and I have a new problem.I feel like I have successfully installed the GDML workbench. I can import gmsh and lXML from the freecad command line, but when I create any geometry in the workbench, this error will be reported.
11:58:20 Running the Python command 'EllipsoidCommand' failed:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Roaming\FreeCAD\Mod\GDML\.\freecad\gdml\GDMLCommands.py", line 1201, in Activated
GDMLEllipsoid(obj, 10, 20, 30, 0, 0, "mm", material)
File "C:\Users\Administrator\AppData\Roaming\FreeCAD\Mod\GDML\.\freecad\gdml\GDMLObjects.py", line 1050, in __init__
setMaterial(obj, material)
File "C:\Users\Administrator\AppData\Roaming\FreeCAD\Mod\GDML\.\freecad\gdml\GDMLObjects.py", line 160, in setMaterial
rebuildMaterialsList()
File "C:\Users\Administrator\AppData\Roaming\FreeCAD\Mod\GDML\.\freecad\gdml\GDMLObjects.py", line 108, in rebuildMaterialsList
addMaterialsFromGroup(doc, MaterialsList, "Materials")
File "C:\Users\Administrator\AppData\Roaming\FreeCAD\Mod\GDML\.\freecad\gdml\GDMLObjects.py", line 87, in addMaterialsFromGroup
buildDefaultGDMLDoc(doc)
File "C:\Users\Administrator\AppData\Roaming\FreeCAD\Mod\GDML\.\freecad\gdml\GDMLObjects.py", line 94, in buildDefaultGDMLDoc
processGDML(
File "C:\Users\Administrator\AppData\Roaming\FreeCAD\Mod\GDML\.\freecad\gdml\importGDML.py", line 3365, in processGDML
preProcessLoops.preprocessLoops(root)
File "C:\Users\Administrator\AppData\Roaming\FreeCAD\Mod\GDML\.\freecad\gdml\preProcessLoops.py", line 97, in preprocessLoops
for loop in root.getroot().iterdescendants(tag="loop"):
'xml.etree.ElementTree.Element' object has no attribute 'getroot'
'''