--- In innoveda_users@y..., Brent Klingforth <bklingforth@c...> wrote:
> Does anybody know if the ePD product ships with documentation that explains
> the format of the schematic files for ViewDraw? Can I please get a copy if
> someone does have this.
I read your message with some delay, but...
While making scripts I digged out most of the schematic and symbol formats. They
are not complete but the existing stuff should be quite accurate. At least my
scripts work when they parse the files according to it.
If you have questions, please ask.
Juha Manninen
The Format how ViewDraw stores schematics :
-----------------------------
Schematics are in ASCII text format.
They share several lines with the symbol file format.
In the beginning of each line there is a letter which indicates the object in
question.
V : version 1 fields.
Eg. V 50
Other fields : internal version number
K : license 2 fields.
Eg. K 199811641700 RESU
Other fields : ? OriginalName
Y : Symbol type. 1 field.
Eg. Y 0
Other fields : SymbolType
D : Symbol size. 4 fields.
Eg. D 0 0 60 40
Other fields : xpos ypos Width Height
Z : Sheet size. 1 field.
Eg. Z 10
Other fields : SheetSize
i : ? 1 field.
Eg. i 6
Other fields : ?
I: Component. 7 fields
Eg. I 3 Lm7805 1 550 480 0 1 ' # must have trailing '
Other fields: component id, symbol name, sheet number, xpos, ypos,
orientation, scale
L : Label for the previous component. 9 fields.
L 670 930 14 0 4 0 1 0 DIO-GEN2-CC.1
Other fields : Xpos Ypos FontSize NotUsed Orientation Locality Visible
Inverted Name
A : attribute. 7 fields. # attribute line
directly follows the component or pin or net it belongs to.
Eg. A -3 10 10 0 7 0 REFDES=N?
Other fields : X Y FontSize NotUsed Orientation Visibility Name(=Value)
C: Pin. 4 fields # Pin of the above component.
Eg. C 4 4 29 0
Other fields: ? ? InternalPinNumber ?
X: Pin. 2 fields # Pin of the above component.
Eg. X 23 0
Other fields: InternalPinNumber ?
Q : Defines font, line type and color definition. Affects the previous object.
Eg. Q 1 5 0
Other fields : ?
N: Net 1 field
Eg N 8
Other fields: NetNumber
J: Joint 3 fields # joint relating to above net
Eg J 530 540 3
Other fields: xpos, ypos, JointType
S: Segment 2 fields # segment of above net
Eg S 2 1
Other fields: LowJointID, HighJointID
B: Bus 2 fields
Eg B 2 4
Other fields: ? ?
E : End
Values of some fields :
-----------------------
SymbolType : 0 = Composite
1 = Module
2 = Annotate
3 = Pin
SheetSize : 0 = A
1 = B
...
5 = A4
...
10 = Z (defined by the user)
Visibility : 0 = Invisible
1 = Visible
2 = Name
3 = Value
Orientation : 1 = Upper left
2 = Middle left
3 = Lower left
4 = Upper center
5 = Middle center
6 = Lower center
7 = Upper right
8 = Middle right
9 = Lower right
Locality : 0 = Local
1 = Global
InvertPin : 0 = Not inverted
1 = Inverted
JointType : 2 = Wire connects to a component pin.
3 = A corner in the wire.
5 = Wire connects to a segment of another wire (shown with a
dot).
The Format how ViewDraw stores symbols :
------------------------------------------
Symbols are in ASCII text format.
In the beginning of each line there is a letter which indicates the object in
question.
V : version 1 fields.
Eg. V 50
Other fields : InternalVersionNumber
K : license 2 fields.
Eg. K 199811641700 RESU
Other fields : ? OriginalName
Y : Symbol type. 1 field.
Eg. Y 1
Other fields : SymbolType
D : Symbol size. 4 fields.
Eg. D 0 0 60 40
Other fields : xpos ypos Width Height
Z : Sheet size. 1 field.
Eg. Z 10
Other fields : SheetSize
i : ? 1 field.
Eg. i 6
Other fields : ?
U : Symbol attribute. 7 fields.
Eg. U 0 -10 14 0 3 0 ITEM#
Other fields : XPos YPos FontSize RotMir Orientation Visibility
Name(=Value)
Q : Defines font, line type and color definition. Affects the previous object.
Eg. Q 1 5 0
Other fields : ?
P : Pin. 8 fields.
Eg. P 1 0 20 12 20 0 2 0
Other fields : InternalPinNumber X1 Y1 X2 Y2 ?? ?? InvertPin
A : Pin's attribute. 7 fields.
Eg. A -3 10 10 0 7 0 PINTYPE=BI
Other fields : Xpos Ypos FontSize RotMir Orientation Visibility
Name(=Value)
L : Label for the previous Pin. 9 fields.
Eg. L -3 25 10 0 2 0 0 0 N1
Other fields : Xpos Ypos FontSize RotMir Orientation Locality LVisible
Inverted Name
T : Text. 6 fields.
Eg. T 0 0 14 0 3 testtext
Other fields : Xpos Ypos FontSize RotMir Orientation Text
b : Box. 4 fields.
Eg. b 14 16 50 28
Other fields : X1 Y1 X2 Y2
l : Line. 5 fields. Seg# tells how many endpoints the line has.
Eg. l 2 6 4 18 32
Other fields : Seg# X1 Y1 X2 Y2...Xn Yn
a : Arc. 6 fields.
Eg. a 18 32 0 19 22 20
Other fields : ? ? ? ? ? ?
c : Circle. 3 fields.
Eg. c 8 34 4
Other fields : Xpos Ypos r
E : End
Values of some fields :
-----------------------
SymbolType : 0 = Composite
1 = Module
2 = Annotate
3 = Pin
SheetSize : 0 = A
1 = B
...
5 = A4
...
10 = Z (defined by the user)
Visibility : 0 = Invisible
1 = Visible
2 = Name
3 = Value
RotMir : 0 = Not rotated
1 = Rotated 90 degrees
2 = Rotated 180 degrees
3 = Rotated 270 degrees
4 = Mirror horizontal
6 = Mirror vertical
LVisible : 0 = Invisible
1 = Visible
Orientation : 1 = Upper left
2 = Middle left
3 = Lower left
4 = Upper center
5 = Middle center
6 = Lower center
7 = Upper right
8 = Middle right
9 = Lower right
Locality : 0 = Local
1 = Global
InvertPin : 0 = Not inverted
1 = Inverted
-----------------