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 Code and Export Code 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
- Select Export Code at the top of the Blockly workspace.
- Choose the location where you want to save the file, then select 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.
- Select Import Code at the top of the Blockly workspace.
- 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.