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.
Export code
- Click the Export Code tool at the top of the Blockly workspace.
- Select the location where you want to save the file, then click Save.
Note
It's not possible to export the following types of measurements:
- User-Entered Data
- Calculation Data
- Timer Data from Photogates
- Video Analysis Data
- Snapshot Data from Scope, FFT, and Histogram displays
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.
- Click the Import tool 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.