Keith Sloan
Keith Sloan
"The OpenSCAD parser and lexer per se are about 1300 lines" For the FreeCAD CSG importer. I defined for CSG using ply.lex and ply.yacc We are then able to create...
Are you following https://github.com/KeithSloan/GDML/wiki/Model_Creation ? That is the workflow of Activate GDML Workbench New file Should give you a structure that looks like  From the...
I tried to recreate your problem by deleting the Materials Group and then using the Ellipsoid Command but it did not fail. Please could you send me a complete copy...
Again looking at the last error in your report ```` 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' ```` I am wondering...
"I can import gmsh and lXML from the freecad command line" Is lXML a typo? library should be lxml ( In lower case), maybe you are defaulting to xml rather...
""Would be good if you could confirm if your system correctly sets up the initial environment after activate Workbench, new file, does it process the Default.gdml file in resources and...
Not sure why my Mac version of lxml 4.9.2 is so far behind, latest is 5.2.2 as you have. I will try and upgrade to 5.2.2 to see if I...
I just tried 5.2.2 on my system and did not have a problem ` keithsloan@Keiths-iMac-2 gdml % pip3 install lxml -t /Applications/FreeCAD_0.22.app/Contents/Resources/lib/python3.10/site-packages Collecting lxml Downloading lxml-5.2.2-cp310-cp310-macosx_10_9_x86_64.whl.metadata (3.4 kB) Downloading lxml-5.2.2-cp310-cp310-macosx_10_9_x86_64.whl...
Thanks for report. view 16:21:55 Activated 16:22:05 running with xml.etree.ElementTree 16:22:05 processGDML type 1 16:22:05 Print Verbose : False 16:22:05 Import GDML file : C:\Users\Administrator\AppData\Roaming\FreeCAD\Mod\GDML\.\freecad\gdml\Resources/Default.gdml 16:22:05 ImportGDML Version 1.9b 16:22:05...
The messages and dropping to xml come from ```print("Parse : " + filename) try: from lxml import etree FreeCAD.Console.PrintMessage("running with lxml.etree \n") parser = etree.XMLParser(resolve_entities=True) root = etree.parse(filename, parser=parser) #...