-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodelicapath.shape
153 lines (143 loc) · 4.11 KB
/
modelicapath.shape
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
##preamble \usepackage{mlsstyle}
##needs ..Shapes..Layout / centering-X
##needs ..Applications..Blockdraw
##lookin ..Shapes
##lookin ..Shapes..Graphics
##lookin ..Shapes..Geometry
##lookin ..Applications..Blockdraw
unnamedStyle: Traits..@width:0.15bp & Traits..@dash:[Traits..dashpattern 1.0mm 1.0mm]
directoryDot: [Graphics..fill [circle 1mm]]
dy: 1cm
IO..•page << Traits..@width:2bp | [Graphics..stroke (0cm,0cm)--(14cm,0cm)]
titlePoint: (7cm,1cm)
IO..•page << [putlabelAbove [TeX `\lstinline{MODELICAPATH}´] titlePoint 0]
IO..•page << Traits..@width:0.3bp | [Graphics..stroke titlePoint--(6.7cm,1bp) head:[ShapesArrow width:5bp ...]]
Traits..@width:0.3bp
|
{
Modelica:
{
Mechanics:
{
Rotational:
{
(newGroup
<< directoryDot
<< [putlabelBelow [TeX `\filename{Rotational}´] [bottompoint directoryDot] 0.5]
)
}
Translational:
{
(newGroup
<< directoryDot
<< [putlabelBelow [TeX `\filename{Translational}´] [bottompoint directoryDot] ~0.5]
)
}
c1: (~0.3cm,~dy)
c2: (0.7cm,~dy)
c3: (~1.3cm,~dy)
(newGroup
<< directoryDot
<< [putlabelRight [TeX `\filename{Mechanics}´] [rightpoint directoryDot] 1]
<< [[shift c1] Rotational]
<< [[shift c2] Translational]
<< [Graphics..stroke (0m,0m)--c1]
<< [Graphics..stroke (0m,0m)--c2]
<< unnamedStyle | [Graphics..stroke (0m,0m)--c3]
)
}
Blocks:
{
Interfaces:
{
(newGroup
<< directoryDot
<< [putlabelBelow [TeX `\filename{Interfaces}´] [bottompoint directoryDot] 0]
)
}
c1: (~0.5cm,~dy)
(newGroup
<< directoryDot
<< [putlabelRight [TeX `\filename{Blocks}´] [rightpoint directoryDot] 1]
<< [[shift c1] Interfaces]
<< [Graphics..stroke (0m,0m)--c1]
)
}
Math:
{
(newGroup
<< directoryDot
<< [putlabelRight [TeX `\filename{Math}´] [rightpoint directoryDot] 1]
)
}
Electrical:
{
c1: (~0.5cm,~dy)
c2: (0.5cm,~dy)
(newGroup
<< directoryDot
<< [putlabelRight [TeX `\filename{Electrical}´] [rightpoint directoryDot] 1]
<< unnamedStyle | [Graphics..stroke (0m,0m)--c1]
<< unnamedStyle | [Graphics..stroke (0m,0m)--c2]
)
}
c1: (~3cm,~dy)
c2: (~1.3cm,~dy)
c3: (1cm,~dy)
c4: (3cm,~dy)
c5: (~4cm,~dy)
(newGroup
<< directoryDot
<< [putlabelAbove [TeX `\filename{Modelica}´] [toppoint directoryDot] 0]
<< [putlabelAbove [TeX `\filename{C:\textbackslash{}library}´] ([toppoint directoryDot] + (0,5mm)) 0]
<< [[shift c1] Blocks]
<< [[shift c2] Electrical]
<< [[shift c3] Mechanics]
<< [[shift c4] Math]
<< [Graphics..stroke (0m,0m)--c1]
<< [Graphics..stroke (0m,0m)--c2]
<< [Graphics..stroke (0m,0m)--c3]
<< [Graphics..stroke (0m,0m)--c4]
<< unnamedStyle | [Graphics..stroke (0m,0m)--c5]
)
}
IO..•page << Modelica >> [shift (4cm,0)]
MyLib:
{
Pack1:
{
(newGroup
<< directoryDot
<< [putlabelBelow [TeX `\filename{Pack1}´] [bottompoint directoryDot] 0.3]
)
}
Pack2:
{
(newGroup
<< directoryDot
<< [putlabelBelow [TeX `\filename{Pack2}´] [bottompoint directoryDot] ~0.3]
)
}
c1: (~0.5cm,~dy)
c2: (0.5cm,~dy)
(newGroup
<< directoryDot
<< [putlabelAbove [TeX `\filename{MyLib}´] [toppoint directoryDot] 0]
<< [putlabelAbove [TeX `\filename{C:\textbackslash{}lib1}´] ([toppoint directoryDot] + (0,5mm)) 0]
<< [[shift c1] Pack1]
<< [[shift c2] Pack2]
<< [Graphics..stroke (0m,0m)--c1]
<< [Graphics..stroke (0m,0m)--c2]
)
}
IO..•page << MyLib >> [shift (9.7cm,0)]
ComplexNumbers:
{
(newGroup
<< directoryDot
<< [putlabelAbove [TeX `\filename{ComplexNumbers.mo}´] [toppoint directoryDot] 0]
<< [putlabelAbove [TeX `\filename{C:\textbackslash{}lib2}´] ([toppoint directoryDot] + (0,5mm)) 0]
)
}
IO..•page << ComplexNumbers >> [shift (12.5cm,0)]
}