Skip to content

Import and Export Code

Import and export Blockly code to share between other SPARKvue or Capstone files.

Share a program created in the Code tool with another file by using the import and export tools at the top of the workspace. The Blockly code exports as a .pcbx file which you can import into a SPARKvue or Capstone file.

Note

This feature is not supported on iOS or Android devices.

Export Code

  1. Click Export at the top of the Blockly workspace.
  2. Select the location where you want to save the file, then click Save.

Note

It is not possible to export the following types of measurements:

  • User-Entered Data
  • Calculation Data
  • Timer Data from Photogates

Import Code

You can import code to a new file or to a file which already contains existing code. If the file contains existing code, the imported code is added to the workspace as a separate group of code.

  1. Click Import at the top of the Blockly workspace.
  2. Navigate to the location of the .pcbx file you want to import and click Open.

Note

If you are importing code that contains a block with a name identical to a block in the existing file, the imported block is renamed.