Importing/exporting MyBlocks

The first MyBlock we need is steerCenter; we created this MyBlock in the last chapter. Fortunately, we can use the EV3 software's MyBlock import/export feature to save some time and avoid rewriting the MyBlock. This tool allows you to export a MyBlock from one EV3 project to a destination on your computer, then import the MyBlock into another EV3 project. This will allow us to copy the MyBlocks we wrote for the Falcon and use them for the GPS Car.

Follow these steps to copy a MyBlock from one EV3 project file to use it in another project:

  1. Open the project that contains the MyBlock you wish to reuse. For this chapter, we are copying the steerCenter MyBlock from the Falcon project, so open the Falcon's EV3 project ...

Get Building Smart LEGO MINDSTORMS EV3 Robots now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.