- Qucs -
Quite Universal Circuit Simulator

Schematic File Format

This document describes the schematic file format of Qucs. This format is used for schematics (usually with suffix ".sch") and for data displays (usually with suffix ".dpl"). The following text shows a short example of a schematic file.

<Qucs Schematic 0.0.6>
<Properties>
  <View=0,0,800,800,1,0,0>
</Properties>
<Symbol>
  <.ID -20 14 SUB>
</Symbol>
<Components>
  <R R1 1 180 150 15 -26 0 1 "50 Ohm" 1 "26.85" 0 "european" 0>
  <GND * 1 180 180 0 0 0 0>
</Components>
<Wires>
  <180 100 180 120 "" 0 0 0 "">
  <120 100 180 100 "Input" 170 70 21 "">
</Wires>
<Diagrams>
  <Polar 300 250 200 200 1 #c0c0c0 1 00 1 0 1 1 1 0 5 15 1 0 1 1 315 0 225 "" "" "">
    <"acnoise2:S[2,1]" #0000ff 0 3 0 0 0>
      <Mkr 6e+09 118 -195 3 0 0>
  </Polar>
</Diagrams>
<Paintings>
  <Arrow 210 320 50 -100 20 8 #000000 0 1>
</Paintings>


The file contains several section. Each of it is explained below. Every line consists of not more than one information block that starts with a less-sign "<" and ends with a greater-sign ">".

Properties

The first section starts with "<Properties>" and ends with "</Properties>". It contains the document properties of the file. Each line is optional. The following properties are supported:

Symbol

This section starts with "<Symbol>" and ends with "</Symbol>". It contains painting elements creating a schematic symbol for the file. This is usually only used for schematic files that meant to be a subcircuit.

Components

This section starts with "<Components>" and ends with "</Components>". It contains the circuit components of the schematic. The line format is as follows:
<type name active x y xtext ytext mirrorX rotate "Value1" visible "Value2" visible ...>

Wires

This section starts with "<Wires>" and ends with "</Wires>". It contains the wires (electrical connection between circuit components) and their labels and node sets. The line format is as follows:
<x1 y1 x2 y2 "label" xlabel ylabel dlabel "node set">

Diagrams

This section starts with "<Diagrams>" and ends with "</Diagrams>". It contains the diagrams with their graphs and their markers.
<x y width height grid gridcolor gridstyle log xAutoscale xmin xstep xmax yAutoscale ymin ystep ymax zAutoscale zmin zstep zmax xrotate yrotate zrotate "xlabel" "ylabel" "zlabel">

Paintings

This section starts with "<Paintings>" and ends with "</Paintings>". It contains the paintings that are within the schematic.

back to the top