Been using the Buildbee 3D modeling tool --- extending it?

I’ve begun using @jfo8000 's nifty:

and had some questions (which I’ve posted to a couple of places and mailed in to their site and started a ticket on) and was hoping to pick up some information and maybe to pitch in and help out maybe.

Found this where it was listed on the curated code site:

at the beginning of the year, and finally had occasion to experiment with it.

It looks really cool, and is a nice fit for the way that I work, except I’m a bit puzzled over some things. I couldn’t see a way to raise an issue at:

so please pardon my asking these questions here (I also sent an e-mail to the address and as noted above, started a ticket).

If there’s some other venue to pose these questions, please let me know and I’ll redirect — looked, but couldn’t find a forum specifically for this (but was directed here from Reddit).

If I understand correctly, the Python code view is inherited from the base MakeCode project and there isn’t a way to run the code in Python? If that’s the case, what would be involved in adding support so that that would be feasible? If that was worked up, would there be some way to get the resultant program to show a graphical interface where the parameters could be adjusted?

It would be a nice fit for how I work, and looks to be a better option than BlockSCAD which I’ve been using:

It’s not possible to write out files, or get anything other than a 3D model from the code — would it be possible to add support for writing out text files? (or is that present and I’m not seeing it) Would it be possible to add support for writing out 2D versions of designs using DXFs or SVGs?

Yup you can use a very simplistic version of python called static python to code - what you do is flip the editor into Python mode by hitting the dropdown.

How it works is that no matter what you’re using (blocks, python, javascript) - it all translates back into the same language for me, and then from there I run your code as a script to generate 3d shapes.

Under the covers it’s using OpenJSCad v1 + a few extra libraries. So your python generates a JSCAD file and is executed in the simulator.

From there what happens is we run all your boolean operations to make and union shapes. Then when you hit save, it walks the shapes and figures out where all the edges are and saves that to a special file of points (called an STL) file. This file can be easily used for 3D printing and is compatible most of the 3D printing software out there.

Converting STL to DXF is really what you would be interested in, I’m imagining - which I admit is not my forte but I think what you can do is take the STL file and put it into FreeCAD - then export.

Love to know what you’ve got in mind!

Feel free to ask for new features at


OpenSCAD has a direct facility to export a DXF or SVG — you use the


command to allow for rendering a 2D version of the file. It looks like there’s an option for exporting to DXF form openjscad — if possible, adding support for that would be great.

I’ll try to put in feature requests for the things which I would find helpful:

  • support for a command like to projection() and exporting to a DXF or SVG
  • ability to save the .mkcd file locally and then to re-load it into a new file (I could see how to save to Downloads, but I couldn’t see how to open)
  • the ability to open a file for writing and to write to it and ultimately close it — I would use that to write out G-Code
  • a Python module which could be loaded into a file which would allow running the Python code locally in Python and writing out a .stl, and/or a .dxf, and/or the G-Code

Interesting. I didn’t know about the projection.

To import a mkcd file - just go back to the main screen and use the import button

What kind of GCODE are you making - for a CNC? You can run it through the BuildBee printing service to output a GCODE file for 3d printing purposes.

Am wondering if you’ve seen makerjs - it may or may not be a little bit closer to the CNC stuff you’re looking for?

1 Like

I am also assuming, but possibly not correctly so - that you’ve seen the STL export button

Thanks for the information about Import — missed that.

Yes, I’ve looked at Maker.js — it didn’t work out and isn’t a good fit for me — I need 3D and more control than it really affords.

Yes, know about exporting STLs, but it’s not a good fit for my work — I’m making geometry which I want to cut out using tools which most CAM tools don’t support — when I’ve made files which the CAM tool I’m using (Carbide Create) can use, it results in a lot of wasted/extraneous movement.