3D Printing Project The “Hello World” of FabEngine

3D printing is a fabrication process that lets you make complex shapes in one simple fabrication step. This FabEngine Script 3D-prints one shape, puts it into a box and ships it to a static address. This is the Hello World of FabEngine.

To execute your code, simply upload it to your dashboard on FabEngine.com (how?). You can also install the FabEngine SDK and Python on your local machine (how?), but that's optional. To make things easy for you, this example script is preloaded into every new FabEngine account.

The Code

Things you might want to remember

  • You need to import FabEngine. You can import all of FabEngine or individual modules like FabEngine.Fabrication.ThreeDPrinting.
  • All function arguments must be named, therefore the order of arguments does not matter.
  • All variables in this example are of a type derived from FabEngine.Resource. Of course you are free to use other types of variables in your own code.
  • A FabEngine script must call FabEngine.Fulfillment.ship() on (or otherwise use) all products created throughout its execution. Put differently: If there are any unused variables of a type derived from FabEngine.Resource, your script is invalid and cannot be executed by the FabEngine.

What's next?

If you are only using one manufacturing process (like in the tutorial on this page), you are probably better served by working with a specialized service provider. What makes FabEngine unique is the ability to combine many different manufacturing processes into one simple script. That's what the next tutorial is about.


Continue to the Circuit Board Project Tutorial »