Skip to main content

tsci export

Overview

tsci export can be used to convert a tsx file or circuit.json file into various output formats including schematics, PCB layouts, fabrication files, and more.

Export options in the web interface
Export options available in the web interface after running tsci dev

Usage

tsci export <file> [options]

Arguments

  • <file>: Path to the source file (.tsx or .circuit.json)

Options

  • -f, --format <format>: Output format (defaults to "json")
  • -o, --output <path>: Custom output file path

Supported Formats

The following export formats are supported:

FormatDescription
circuit-jsonCircuit JSON format
schematic-svgSchematic view as SVG
pcb-svgPCB layout as SVG
readable-netlistHuman-readable netlist
specctra-dsnSpecctra DSN format for autorouting

Examples

Export to circuit JSON:

tsci export circuit.tsx

Export as schematic SVG:

tsci export circuit.tsx -f schematic-svg

Export PCB layout with custom output path:

tsci export circuit.tsx -f pcb-svg -o my-pcb-layout.svg

Export to Specctra DSN format:

tsci export circuit.tsx -f specctra-dsn

Output Files

By default, the exported file will be saved in the same directory as the input file, with a filename based on the input filename and the chosen format. For example:

  • Input: my-circuit.tsx
  • Format: pcb-svg
  • Default output: my-circuit-pcb.svg

You can override the output location using the -o or --output option.