Importing my block in a LEGO EV3 Project Pro Preview

When programming people try to reuse other programmers code. Either because that part of their project is too complicated or time consuming or because there is no need to write code, that it is already written. That allows you to focus on what matters. In our case in order to reuse code from one project into another we need My Blocks. Now we will take a look at how we can import a My Block in our projects.

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #768
  • 09 Mar 2018

First we open project properties from the tab with wrench on it in the upper left corner of the program:

Next, we select Import and a new window (file browser) will appear:

We locate the block, that we want to import and we select it. In our case it is called dummy_my_block:

And we have successfuly imported a new block in our project. Now, if we go back to one of the programs in the project, we will be able to find the new My Block under the teal palette (My Blocks). We take it and put it on the canvas and that's it, we are ready!

Finally, let us take a look at the whole process once again:

 

LEGO Mindstorms EV3 Dummy My Block

This is an example My block used in tutorials to demonstrate the process of creating, importing and editing My blocks. 

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for Instructors Remote Training
  • 136
  • 280:11
  • 156
Image for My Blocks
  • 8
  • 1
  • 10
  • 3d_rotation 1
Image for Robotics with LEGO - Level 2.0 - Robots in Factories
  • 44
  • 15:01
  • 129
Image for Lesson 3 - Telephone game
  • 9
  • 5
  • 21
  • 3d_rotation 1
Image for Level B1. "Spy gadgets". Robotics with LEGO
  • 30
  • 7:30
  • 108
Image for Level C1. "Transportation". Robotics with LEGO
  • 33
  • 1:03
  • 110
Image for Lesson 6 - Robotics car second version
  • 5
  • 4
  • 11
  • 3d_rotation 1