[FIXED] Ticket #4451: cant open Openscad file *.scad
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
[FIXED] Ticket #4451: cant open Openscad file *.scad
Discussion thread for issue #4451: cant open Openscad file *.scad
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Ticket #4451: cant open Openscad file *.scad
From the ticket
JIm
if i try open some scad files with operation hull it will not successfully ended but traceback is
Hi Keith, I wonder if you would be interested in looking at this? No pressure, just thought you might.keithsloan52 wrote:ping

JIm
Re: Ticket #4451: cant open Openscad file *.scad
Anyone have a test .scad file where this fails.
The current https://github.com/FreeCAD/FreeCAD/blam ... es.py#L502 import looks like a new style "namespace" import but the OpenSCAD WB hasn't been ported to this style.
The reporter's fix appears valid, but I don't have a .scad file using "hull" to test.
"fight the good fight"
Re: Ticket #4451: cant open Openscad file *.scad
Is this one suitable? It was attached to the ticket, I think you would have noticed so I suspect isn't suitable?sgrogan wrote: ↑Thu Oct 15, 2020 9:48 pmAnyone have a test .scad file where this fails.
The current https://github.com/FreeCAD/FreeCAD/blam ... es.py#L502 import looks like a new style "namespace" import but the OpenSCAD WB hasn't been ported to this style.
The reporter's fix appears valid, but I don't have a .scad file using "hull" to test.

I downloaded it and then attached it to this post.
Jim
-
- Veteran
- Posts: 2710
- Joined: Mon Feb 27, 2012 5:31 pm
Re: Ticket #4451: cant open Openscad file *.scad
I have a new style namespace version of the OpenSCAD WB in my GitHub repro ( Now made private) and it appears OpenSCADFeatures.py got contaminated with some code from it, sorry about that.sgrogan wrote: ↑Thu Oct 15, 2020 9:48 pmAnyone have a test .scad file where this fails.
The current https://github.com/FreeCAD/FreeCAD/blam ... es.py#L502 import looks like a new style "namespace" import but the OpenSCAD WB hasn't been ported to this style.
The reporter's fix appears valid, but I don't have a .scad file using "hull" to test.
-
- Veteran
- Posts: 2710
- Joined: Mon Feb 27, 2012 5:31 pm
Re: Ticket #4451: cant open Openscad file *.scad
I have a new style namespace version of the OpenSCAD WB in my GitHub repro ( Now made private) and it appears OpenSCADFeatures.py got contaminated with some code from it, sorry about that.sgrogan wrote: ↑Thu Oct 15, 2020 9:48 pmAnyone have a test .scad file where this fails.
The current https://github.com/FreeCAD/FreeCAD/blam ... es.py#L502 import looks like a new style "namespace" import but the OpenSCAD WB hasn't been ported to this style.
The reporter's fix appears valid, but I don't have a .scad file using "hull" to test.
Re: Ticket #4451: cant open Openscad file *.scad
Hi, Importing the hull.scad file, I get this
All the main components cube/sphere/cylinder are imported OK, but the fiddly bits seem to fail. (I find it quicker to rough out the shape in openscad, import to freecad for filleting and otherwise finish, and export as stl. Exporting back to openscad for further editing is very iffy.
Best Wishes, Ray
I get the same for importing a minkowski19:52:00 Traceback (most recent call last):
File "C:\Users\Ray\freecad19\FreeCAD_0.19.22284-Win-Conda_vc14.x-x86_64\Mod\OpenSCAD\OpenSCADFeatures.py", line 502, in execute
import Part, freecad.OpenSCAD.OpenSCADUtils
<class 'ModuleNotFoundError'>: No module named 'freecad.OpenSCAD'
Code: Select all
$fn =50;
minkowski() {
cube([10, 10, 1]);
cylinder(1);
}
Best Wishes, Ray
Re: Ticket #4451: cant open Openscad file *.scad
Are you going to make a pull request. I can if you don't have time.keithsloan52 wrote: ↑Fri Oct 16, 2020 8:09 am I have a new style namespace version of the OpenSCAD WB in my GitHub repro ( Now made private) and it appears OpenSCADFeatures.py got contaminated with some code from it, sorry about that.
"fight the good fight"
-
- Veteran
- Posts: 2710
- Joined: Mon Feb 27, 2012 5:31 pm
Re: Ticket #4451: cant open Openscad file *.scad
Have a lot on my plate at the moment, eldest daughter passed her due date etc etc, so if you could do it that would be great.sgrogan wrote: ↑Fri Oct 16, 2020 7:19 pmAre you going to make a pull request. I can if you don't have time.keithsloan52 wrote: ↑Fri Oct 16, 2020 8:09 am I have a new style namespace version of the OpenSCAD WB in my GitHub repro ( Now made private) and it appears OpenSCADFeatures.py got contaminated with some code from it, sorry about that.
Re: Ticket #4451: cant open Openscad file *.scad
Good luck and best wishes!keithsloan52 wrote: ↑Fri Oct 16, 2020 8:26 pm Have a lot on my plate at the moment, eldest daughter passed her due date etc etc
pull/3971
"fight the good fight"