-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not export old FreeCAD project... #148
Comments
Was the project created with FC 0.21.2? There is a regression in FC 0.21.2 where for PartFeaturePython Objects the Type is no longer stored in Proxy, i,e, Proxy.Type but in just Type. If you load your document into say FC 1.0 RC2 it will prompt that the doc needs a recompute and for me exports okay. |
Is this the same file as TelescopeIdea? The zip file I posted, I loaded your file into FC 1.0 RC and it prompted for recompute and the file in my zip is the recomputed one. What happens if you try it. The zip also contains the export gdml file. When you openend your file with FC 1.0 RC 2, did it suggest a recompute? I am on Mac OS: macOS 14.4
I assume you are on Windows |
Not that it helps your particular situation but here is the log of loadng the export gdml file into geant4 and screen shot. Maybe check you have the latest version of the workbench |
Please check your version of exportGDML.py with this one |
What is the difference between screenshot_1.jpg and screenshot_2.jpg? screenshot_2.jpg - looks correct, have you checked the file created D:/1/TelescopeIdea-world.gdml Your screenshots are of the python console and the second one shows no errors and an export to the file. |
I just switched on the GDML option : "Print debug information in the Console" to check if something new will and I see the same errors as with my old project as with your converted copy in TelescopoIdea.zip |
Are you able to try a branch? If yes try branch symmetric - we know it still has bugs which we are in the process of addressing but you may do better with it. |
If you wish to use the Gmsh facilities in the workbench - Gmsh and Gmsh Min then the workbench needs the gmsh python library, you also have to make the gmsh shared library available to FreeCAD see details in the README The Gmsh facilities in workbench use facilities available via the python library which are different from the API parts of Gmsh that Mesh and FEM use. If you don't use the Gmsh facilities in the Toolbar, you can skip gmsh. |
Another user reported a very similar problem and they resolved it by restarting their PC. |
Just few comments about this problem... It is funny, but sometimes the export works! Unfortunately, I could not find the magic sequence of action to get 100% reproduceable result yet. At present moment I installed official release of FC1.0 and the latest GDML Workbench. |
and final solution:
|
Not sure I understand why Gui.runCommand('Std_SetMaterial',0) Std_SetMaterial is FreeCAD's setting of the Material. The GDML workbench was started back at the time when FreeCAD was version 0.13. They introduced a new Materials system a short while back. At the time they were doing so we put in the requirements that we would need but unfortunately they were not addressed. Materials for FreeCAD in general are very different from GDML Materials which have a lot of Nuclear requirements rather than engineering. It is unfortunate that there are FreeCAD native way of setting the Material and with GDML you have to either use the Material in GDMLObject properties or the GDLML workbench toolbar - SetMaterial. Just wondering if you have tried to use the FC way to set the Material and this has caused the need for 'Std_SetMaterial',0) |
Hello all,
I decided to memorize how to create GDML file from FreeCAD project and tried to export the old trivial project, but it failed with message "GDMLBox" has no the attribute "Type". Something changed in the latest version of GDML Workbench???
In attachment I have put the screenshot of the message and my stupid project.
Sincerely Yours,
Vyacheslav
TelescopeIdeal.zip
The text was updated successfully, but these errors were encountered: