CE3 file format
14 Apr 2012
1. BASICS
(1)Records
CE3 file consist of records which are separated by comma or line-break.
Space, TAB and line-break before beginning of the record is ignored.
Ex.1 and Ex.2 have same meaning.
Ex.1
+BCD, N:10, M:20, -BCD
Ex.2
+BCD
N:10
M:20
-BCD
(2)Block
If the record begins with "+", It means the start of a block.
Following word after "+" is a label for the block.
The block is terminated by -label .
Block will be added with version up of the software.
If BSch3V gets a beginning of an unknown label block, BSch3V skips until
end of the block.
Ex. bold - start of a block, italic - end of a block
+ABC
+BCD, N:10, M:20, -BCD
+BCD, N:12, M:15, -BCD
-ABC
(3)Data record
A data record consist of a variable-ID and value. They are separated by
colon.
Ex. bold - variable-ID, italic - value
RX:23
(4)Special characters in a record
In the value of the data record, characters listed below are replaced to %2 digit hexadecimal code.
Ex.
Actual value | description in the record |
1,000uF 20% 16V | 1%2C000uF%2020%25%2016V |
2. Structure of CE3 file
starts with
+BSCH3_DATA_V.1.0
and ends with
-BSCH3_DATA_V.1.0
It contains following element blocks.
element block | label of block |
Sheet information | SHEETINFO |
Component | COMPONENT |
Wire | WIRE |
Bus | BUS |
Decoration line | DASH |
Marker line | ALINE |
Junction | JUNCTION |
Bus entry | BENTRY |
Wire entry | ENTRY |
Tag | TAG |
Label | LABEL |
Comment | COMMENT |
Image | IMAGEOBJECT |
3. Element block
(1)Sheet information block
starts with
+SHEETINFO
and ends with
-SHEETINFO
Sheet information block contains following variables
variable | contents |
EL | Last edit layer: 0 to 7 |
VL | Visible layer: OR'ed bit. bit7 is Layer7, bit0 is Layer0. |
W | Width |
H | Height |
PROJ | reserved |
PAGES | reserved |
PAGE | reserved |
VER | Data version. Data version of CE3 file generated by BSch3V version 0.69.x is 68. |
INITPOS | reserved |
(2)Component block
starts with
+COMPONENT
and ends with
-COMPONENT
Component block contains following variables and blocks.
block | label | contents |
embedded library | +BSCH3_LIB_V.1.0 to -BSCH3_LIB_V.1.0 |
Please refer LE3 format |
variable | contents |
L | Layer |
X | Horizontal Position |
Y | Vertical Position |
LIB | name for calling external library. This variable is obsolate. |
DIR | Direction. 0 to 7. Lower 2 bit (bit1 and bit0) means rotation. bit2 meand horizontal mirror. |
BLK | block number of multi block component, such as 7400. |
N | Component name(value) |
ND | Direction of the component name. 1: horizontal 0: vertical |
NX | Horizontal Position of the component name. relative to component X. |
NY | Vertical Position of the component name.relative to component Y. |
NH | Hide flag of the component name. 0: visible 1: hide |
R | Reference number |
RD | Direction of the reference number |
RX | Vertical Position of the reference number. relative to component X. |
RY | Vertical Position of the reference number. relative to component Y. |
RH | Hide flag of the reference number |
NOTE | Note |
PKG | Package |
MFR | Manufacturer |
MFRPN | Manufacturer part number |
(3)Wire block
starts with
+WIRE
and ends with
-WIRE
Wire block contains following variables.
variable | contents |
L | Layer |
X1 | Horizontal position of start point |
Y1 | Vertical position of start point |
X2 | Horizontal position of end point |
Y2 | Vertical position of end point |
(4)Bus block
starts with
+BUS
and ends with
-BUS
BUS block contains following variables.
variable | contents |
L | Layer |
X1 | Horizontal position of start point |
Y1 | Vertical position of start point |
X2 | Horizontal position of end point |
Y2 | Vertical position of end point |
(5)Decoration line ( in old version it was called dash-line)
starts with
+DASH
and ends with
-DASH
Decoration line block contains following variables.
variable | contents | ||||||||
L | Layer | ||||||||
X1 | Horizontal position of start point | ||||||||
Y1 | Vertical position of start point | ||||||||
X2 | Horizontal position of end point | ||||||||
Y2 | Vertical position of end point | ||||||||
CURV | 0: straight 1:Bezier Curve | ||||||||
CTX1 | If Bezier Curve, control point X for stat point | ||||||||
CTY1 | If Bezier Curve, control point Y for stat point | ||||||||
CTX2 | If Bezier Curve, control point X for end point | ||||||||
CTY2 | If Bezier Curve, control point Y for end point | ||||||||
WDT | Width | ||||||||
LS | Line style
|
||||||||
SSTL | Start point style
|
||||||||
ESTL | End point style | ||||||||
EMS | Start and End point mark size |
(6)Marker line
starts with
+ALINE
and ends with
-ALINE
Marker line block contains following variables.
variable | contents |
L | Layer |
X1 | Horizontal position of start point |
Y1 | Vertical position of start point |
X2 | Horizontal position of end point |
Y2 | Vertical position of end point |
STL | reserved |
WDT | width |
CLR | Color. Decimal of 24bit value(Blue 8bit, Green 8 bit, Red 8bit) |
(7)Junction block
starts with
+JUNCTION
and ends with
-JUNCTION
Junction block contains following variables.
variable | contents |
L | Layer |
X | Horizontal position |
Y | Vertical position |
(8)Bus entry block
starts with
+BENTRY
and ends with
-BENTRY
BUS entry block contains following variables.
variable | contents |
L | Layer |
X1 | Horizontal position of start point |
Y1 | Vertical position of start point |
X2 | Horizontal position of end point |
Y2 | Vertical position of end point |
(9)Entry block
starts with
+ENTRY
and ends with
-ENTRY
Entry block contains following variables.
variable | contents |
L | Layer |
X1 | Horizontal position of start point |
Y1 | Vertical position of start point |
X2 | Horizontal position of end point |
Y2 | Vertical position of end point |
(10)Tag block
starts with
+TAG
and ends with
-TAG
Tag block contains following variables.
variable | contents | ||||||||
L | Layer | ||||||||
X | Horizontal position of start point | ||||||||
Y | Vertical position of start point | ||||||||
D | 1: horizontal 0: vertical | ||||||||
T | Frame type
|
||||||||
S | text |
(11)Label block
starts with
+LABEL
and ends with
-LABEL
Lable block contains following variables.
variable | contents |
L | Layer |
X | Horizontal position |
Y | Vertical position |
D | 1:horizontal 0: vertical |
S | text |
(12)Comment block
starts with
+COMMENT
and ends with
-COMMENT
Comment block contains following variables.
variable | contents |
L | Layer |
X | Horizontal position |
Y | Vertical position |
W | Width. If -1, Width is not set. |
S | text |
FN | Font name |
FS | Font size |
FF | B: bold, I: italic. They can be OR'ed. |
TAG | If 1, HTML like tag is enabled. |
(13)Image block
starts with
+IMAGEOBJECT
and ends with
-IMAGEOBJECT
Image block contains following variables and block.
variable | contents |
L | Layer |
X | Horizontal position |
Y | Vertical position |
MAG | Magnitude in percent. |
block | label | contents |
embedded lmage | +IMAGE_DIB to -IMAGE_DIB |
Image data encoded with BASE64. Note: In BASE64, value 62 is assigned "+", But in this block, 62 is assigned "!". |