-
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
Error during import #111
Comments
Not sure what is going on with import as the solid worldbox is defined in your gdml snip-it. I added gdml tag to your snipt-it and that does not work because the Materials are not defined by default. Are you able to supply the problem file? keith[at]sloan-home.co.uk |
The problem is that there are TWO solids sections in the file. One with a the solid tessellated T-bigAluBlock-0 and another with the box worldbox.
Did you use the workbench to create the GDML file? Plus as it loads in Geant4 okay, we should, also handle okay, so I will look at fixing. |
No, I obtained the GDML converting a STEP file using the MRADSIM tool. But since Geant4 opens it without complaining then I thought it was a valid GDML and thus it could be imported in the workbench. |
Okay I have pushed a new branch called worldSolid, which deals with multiple solid sections for this situation. There are number of other situations where solid information is retrieved that will/may need updating for multiple solid sections and wish to discuss with Munther before embarking on some code restructuring. Are you able to test the new branch( or do I need to push to Main branch) |
I'd need a bit of guidance about how to do that. I'm a new FreeCAD user and I don't know how to install the development version of the workbench. |
Sorry have been away for a couple of days. Okay - have merged the update into the Main repro. Will do some restructuring so that other times the solids section is accessed it should still work with multiple solid sections but that may take a while. Would appreciate any further testing and or reporting of problems. |
Hi Keith, I uploaded the workbench and now it can import the gdml file correctly, thank you very much! But I tried it also on different file obtained in the same way (conversion from step to gdml using MRADSIM, correctly imported by Geant4) and I get this error:
If you are interested in troubleshooting also this then I can send you this gdml. |
Yes please send file. |
Okay similar issue to previous file but this time the gdml file has materials Don't suppose MRADSIM tool has an option to create as flat xml structure, without repeats? |
The MRADSIM version I'm using is quite old, and I don't have access to a newer one. I don't see any option to tune the output file structure, so I guess it's not available at least in my version. To be clear, I don't have an urgent need to open that file with the GDML workbench; it works in Geant4 so I'm using it as is. It's just that during my first test with the workbench I stumbled upon this bug and thought it was a good idea to report it. But it's not disrupting my workflow at the moment, so it's ok if you decide to not work on it. |
Hi I have an idea for addressing this, please could you resend me the file as I am afraid I cannot now locate it. Thanks |
Hi Keith, I lost the track of this issue and I'm not 100% sure which was the last file I sent you, but if I correctly reconstructed the issue history from my email archive then it can be downloaded from here: https://basket.fi.infn.it:443/f/f6c0e53643/?dl=1 Thank you. |
Trying to import a GDML file I get this error in the report view:
and no element is then shown in the FreeCAD view. This is the relevant section of the GDML file:
The file is imported in Geant4 with no problem, so I guess it's an issue with the FreeCAD GDML workbench.
Ia am using FreeCAD 0.20.2 and just installed the workbench.
The text was updated successfully, but these errors were encountered: