How can I export a PCB to SVG format in KiCad using Python?
To export a PCB to SVG format in KiCad using Python, you can use the pcbnew module. Here's a script:

```python
import pcbnew

# Load the current board
board = pcbnew.GetBoard()

# Define the output SVG file path
svg_file_path = 'path/to/your/output.svg'

# Create a plot controller
plot_controller = pcbnew.PLOT_CONTROLLER(board)

# Set the plot options
plot_options = plot_controller.GetPlotOptions()
plot_options.SetOutputDirectory('path/to/your/')
plot_options.SetPlotFrameRef(False)
plot_options.SetLineWidth(pcbnew.FromMM(0.35))

# Plot to SVG
plot_controller.OpenPlotfile('Board', pcbnew.PLOT_FORMAT_SVG, 'Board plot')
plot_controller.PlotLayer(pcbnew.F_Cu)
plot_controller.ClosePlot()
```

This script exports the current PCB to an SVG file.