Converting a Blocks Project to Text in VEXcode V5

A blocks project can easily be converted to a text project in VEXcode V5.


How to Convert a Blocks Project to Text

VEXcode V5 with a blocks project opened in the workspace.

Once you have a blocks project created in VEXcode V5, the project can be converted into a text project.

Thumbnail image for the Clawbot Drivetrain 2 motor, No Gyro template project.

Note: The blocks project shown in this article uses the Clawbot (Drivetrain, 2-motor, No Gyro) template.

VEXcode V5 Toolbar with the Code Viewer icon highlighted to the left of the Devices icon.

Open the Code Viewer by selecting the icon in the top right next to the Devices icon.

Code Viewer menu is open and showing a Python version of the Blocks project.

The Code Viewer shows the text version of the blocks project in the workspace.

The Code Viewer has two options to switch between viewing Python or C++ code. These buttons are located at the bottom left of the Code Viewer menu.

There is the option to convert the blocks project to either C++ or Python.

VEXcode V5 Code Viewer menu is shown with the Convert to Text Project button highlighted below.

Once you are ready to convert the blocks project to a text project, select the “Convert to Text Project” button in the bottom right of the Code Viewer.

The device's Save As menu is open and set to save to the Downloads folder. The project will be saved as a .v5blocks file.

If you have not yet saved your blocks project, a window will appear to prompt you to save your project as a .v5blocks file. For more information about saving a project, view the VEX Library articles on Saving a project (Windows, macOS, Chromebook).

The device's Save As menu is open and set to save to the Downloads folder. The project will be saved as a .v5python file.

Once the blocks project is saved, the text workspace will appear. You will be prompted to save your text project as a .v5python file. For more information about saving a project, view the VEX Library articles on Saving a project (Windows, macOS, Chromebook).

VEXcode V5 with a converted Python project successfully opened in the Workspace.

Once the project is saved, you can continue working on your text project or download the project to a V5 Brain.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: