Converting a Blocks Project to Text in VEXcode IQ

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


How to Convert a Blocks Project to Text

VEXcode IQ Blocks project is shown in the Workspace. The project has one stack that drives the robot forwards, waits 2 seconds, and then drives the robot backwards.

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

Clawbot Drivetrain 2 motor example project thumbnail.

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

VEXcode IQ 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.

VEXcode IQ with the Code Viewer menu opened and highlighted. The Code Viewer shows the user's Blocks project written out in C++.

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

VEXcode IQ Code Viewer menu with the Convert to Text Project button highlighted in the bottom right.

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 is saved as an .iqblocks file.

If you have not yet saved your blocks project, a window will appear to prompt you to save your project as a .iqblocks file. For more information about saving a blocks project in VEXcode IQ, 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 is saved as an .iqcpp file.

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

VEXcode IQ with a converted C++ project successfully opened in the Workspace.

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

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

Last Updated: