forked from fsmMLK/inkscapeCircuitSymbols
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circuitSymbols_general.inx
229 lines (225 loc) · 12.6 KB
/
circuitSymbols_general.inx
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<_name>General</_name>
<id>fsmMLK.circuitSymbols.general</id>
<dependency type="executable" location="extensions">circuitSymbols.py</dependency>
<dependency type="executable" location="extensions">inkscapeMadeEasy_Base.py</dependency>
<dependency type="executable" location="extensions">inkscapeMadeEasy_Draw.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<param name="tab" type="notebook">
<page name="RLC" appearance="minimal" _gui-text="RLC">
<param name="bipoleRLC" type="optiongroup" appearance="minimal" _gui-text="Type:">
<_option value="resistor">Resistor</_option>
<_option value="capacitor">Capacitor</_option>
<_option value="jj">Josephson Junction</_option>
<_option value="squid">SQUID Loop</_option>
<_option value="capacitorPol">Polarized Capacitor</_option>
<_option value="inductor">Inductor</_option>
<_option value="pot2T">Potentiometer (2T)</_option>
<_option value="pot3T">Potentiometer (3T)</_option>
<_option value="genericBipole">Generic Bipole</_option>
</param>
<param name="bipoleRLCVal" type="string" _gui-text="Value (no $...$ needed)">R</param>
<param name="some_name" type="description">obs: You can use M, k, m, u, n, p to indicate multipliers</param>
<param name="bipoleRLCUnit" type="boolean" _gui-text="Include unit">0</param>
<param name="bipoleRLCRot" type="optiongroup" appearance="minimal" _gui-text="Orientation (deg):">
<_option value="0">0</_option>
<_option value="90">90</_option>
<_option value="-60">-60</_option>
<_option value="-45">-45</_option>
<_option value="-30">-30</_option>
<_option value="30">30</_option>
<_option value="45">45</_option>
<_option value="60">60</_option>
</param>
<param name="desc1" type="description" appearance="header">Annotation arrows</param>
<param name="bipoleRLCVolt" type="boolean" _gui-text="Add voltage arrow">0</param>
<param name="bipoleRLCCurr" type="boolean" _gui-text="Add current arrow">0</param>
<param name="bipoleRLCVoltName" type="string" _gui-text="V label (no $...$ needed)">v</param>
<param name="bipoleRLCCurrName" type="string" _gui-text="I label (no $...$ needed)">i</param>
<param name="bipoleRLCVoltCurrInvert" type="boolean" _gui-text="Invert V/I directions">0</param>
</page>
<page name="Microwave" appearance="minimal" _gui-text="Microwave">
<param name="uwType" type="optiongroup" appearance="minimal" _gui-text="Type:">
<_option value="tline">Transmission Line</_option>
</param>
<param name="uwVal" type="string" _gui-text="Value (no $...$ needed)">R</param>
<param name="uwUnit" type="boolean" _gui-text="Include unit">0</param>
<param name="uwRot" type="optiongroup" appearance="minimal" _gui-text="Orientation (deg):">
<_option value="0">0</_option>
<_option value="90">90</_option>
<_option value="-60">-60</_option>
<_option value="-45">-45</_option>
<_option value="-30">-30</_option>
<_option value="30">30</_option>
<_option value="45">45</_option>
<_option value="60">60</_option>
</param>
</page>
<page name="Indep. Source" appearance="minimal" _gui-text="Ind. Src">
<param name="source" type="optiongroup" appearance="minimal" _gui-text="Type:">
<_option value="voltIndep">Voltage source (General)</_option>
<_option value="voltIndepSinusoidal">Voltage source (AC)</_option>
<_option value="voltIndepDC">Voltage source (DC)</_option>
<_option value="voltIndepDCbattery">Voltage source (battery)</_option>
<_option value="currIndep">Current source (General)</_option>
</param>
<param name="sourceVal" type="string" _gui-text="Value (no $...$ needed)">E</param>
<param name="some_name" type="description">obs: You can use M, k, m, u, n, p to indicate multipliers</param>
<param name="sourceUnit" type="boolean" _gui-text="Include unit">1</param>
<param name="sourceRot" type="optiongroup" appearance="minimal" _gui-text="Orientation (deg):">
<_option value="0">0</_option>
<_option value="90">90</_option>
<_option value="-60">-60</_option>
<_option value="-45">-45</_option>
<_option value="-30">-30</_option>
<_option value="30">30</_option>
<_option value="45">45</_option>
<_option value="60">60</_option>
</param>
<param name="sourceMirror" type="boolean" _gui-text="Invert source direction">0</param>
<param name="desc1" type="description" appearance="header">Annotation arrows</param>
<param name="sourceVolt" type="boolean" _gui-text="Add voltage arrow">0</param>
<param name="sourceCurr" type="boolean" _gui-text="Add current arrow">0</param>
<param name="sourceVoltName" type="string" _gui-text="V label (current sources only)">v</param>
<param name="sourceCurrName" type="string" _gui-text="I label (voltage sources only)">i</param>
<param name="sourceVoltCurrInvert" type="boolean" _gui-text="Invert V or I direction">0</param>
<param name="some_name" type="description"> - voltage sources: current arrow is inverted
- current sources: voltage arrow is inverted</param>
</page>
<page name="Dep. Source" appearance="minimal" _gui-text="Dep. Src">
<param name="sourceControlled" type="optiongroup" appearance="minimal" _gui-text="Type:">
<_option value="volt">Voltage source</_option>
<_option value="curr">Current source</_option>
</param>
<param name="sourceControlledType" type="optiongroup" appearance="minimal" _gui-text="Type of control:">
<_option value="volt">Voltage</_option>
<_option value="curr">Current</_option>
</param>
<param name="sourceControlledGain" type="string" _gui-text="Gain (no $...$ needed)">\beta</param>
<param name="sourceControlledControlName" type="string" _gui-text="Control name (no $...$ needed)">v_c</param>
<param name="sourceControlledRot" type="optiongroup" appearance="minimal" _gui-text="Orientation (deg):">
<_option value="0">0</_option>
<_option value="90">90</_option>
<_option value="-60">-60</_option>
<_option value="-45">-45</_option>
<_option value="-30">-30</_option>
<_option value="30">30</_option>
<_option value="45">45</_option>
<_option value="60">60</_option>
</param>
<param name="sourceControlledMirror" type="boolean" _gui-text="Invert source direction">0</param>
<param name="desc1" type="description" appearance="header">Annotation arrows</param>
<param name="sourceControlledVolt" type="boolean" _gui-text="Add voltage arrow">1</param>
<param name="sourceControlledCurr" type="boolean" _gui-text="Add current arrow">1</param>
<param name="sourceControlledVoltName" type="string" _gui-text="V label (current sources only)">v</param>
<param name="sourceControlledCurrName" type="string" _gui-text="I label (voltage sources only)">i</param>
<param name="sourceControlledVoltCurrInvert" type="boolean" _gui-text="Invert V or I direction">0</param>
<param name="some_name" type="description"> - voltage sources: current arrow is inverted
- current sources: voltage arrow is inverted</param>
</page>
<page name="Switches" appearance="minimal" _gui-text="Switches">
<param name="switch" type="optiongroup" appearance="minimal" _gui-text="Type:">
<_option value="switch2T">Two contact switch</_option>
</param>
<param name="switchVal" type="string" _gui-text="Label (no $...$ needed)">S</param>
<param name="switchRot" type="optiongroup" appearance="minimal" _gui-text="Orientation (deg):">
<_option value="0">0</_option>
<_option value="90">90</_option>
<_option value="-60">-60</_option>
<_option value="-45">-45</_option>
<_option value="-30">-30</_option>
<_option value="30">30</_option>
<_option value="45">45</_option>
<_option value="60">60</_option>
</param>
<param name="switchFlagOpen" type="boolean" _gui-text="Open switch">1</param>
<param name="switchOpenClose" type="boolean" _gui-text="Draw open/close arrow">0</param>
<param name="switchOpenCloseText" type="string" _gui-text="Open/close text">t=1</param>
</page>
<page name="Signals" appearance="minimal" _gui-text="Signals">
<param name="nodal" type="optiongroup" appearance="minimal" _gui-text="Type:">
<_option value="custom">Custom</_option>
<_option value="GND">GND</_option>
<_option value="common">Common</_option>
<_option value="+vcc">+Vcc</_option>
<_option value="-vcc">-Vcc</_option>
<_option value="+5V">+5V</_option>
<_option value="-5V">-5V</_option>
<_option value="+15V">+15V</_option>
<_option value="-15V">-15V</_option>
<_option value="v_in">v_in</_option>
<_option value="v_out">v_out</_option>
</param>
<param name="nodalVal" type="string" _gui-text="Custom label (for 'Custom' type)">E</param>
<param name="nodalRot" type="optiongroup" appearance="minimal" _gui-text="Direction">
<_option value="0">North</_option>
<_option value="90">West</_option>
<_option value="-90">East</_option>
<_option value="180">South</_option>
</param>
<param name="nodalDrawLine" type="boolean" _gui-text="Draw line">0</param>
</page>
<page name="Arrow" appearance="minimal" _gui-text="Annotation">
<param name="arrow" type="optiongroup" appearance="minimal" _gui-text="Type:">
<_option value="voltage">voltage</_option>
<_option value="current">current</_option>
</param>
<param name="arrowVal" type="string" _gui-text="Label (no $...$ needed)">v</param>
<param name="arrowRot" type="optiongroup" appearance="minimal" _gui-text="Orientation (deg):">
<_option value="0">0</_option>
<_option value="90">90</_option>
<_option value="-60">-60</_option>
<_option value="-45">-45</_option>
<_option value="-30">-30</_option>
<_option value="30">30</_option>
<_option value="45">45</_option>
<_option value="60">60</_option>
</param>
<param name="arrowVSize" type="int" min="5" max="200" _gui-text="Arrow size (V only)">20</param>
<param name="arrowISize" type="int" min="5" max="200" _gui-text="Arrow size (I only)">10</param>
<param name="arrowInvert" type="boolean" _gui-text="Invert arrow direction">0</param>
<param name="arrowCurvaturDirection" type="boolean" _gui-text="Invert disposition">0</param>
<param name="some_name" type="description"> - voltage: invert arrow curvature
- current: text side</param>
</page>
<page name="Colors" appearance="minimal" _gui-text="Colors">
<param name="desc1" type="description" appearance="header">Current annotation color</param>
<param name="currColor" type="optiongroup" appearance="minimal" _gui-text="Color:">
<_option value="#FF0000">default current color</_option>
<_option value="picker">use color picker</_option>
</param>
<param name="colorPickerCurrent" type="color"/>
<param name="desc1" type="description" appearance="header">Voltage annotation color</param>
<param name="voltColor" type="optiongroup" appearance="minimal" _gui-text="Color:">
<_option value="#217B21">default voltage color</_option>
<_option value="picker">use color picker</_option>
</param>
<param name="colorPickerVolt" type="color"/>
</page>
<page name="Help" _gui-text="LaTeX Help">
<_param name="instructions" type="description" xml:space="preserve">
Useful LaTeX commands
\phase{} : for phasor angle symbol (steinmetz package needed)
siunitx package commands available, Ex:
\ohm,\farad,\henry,\ampere,\volt,\degree
Custom predefined functions:
\newcommand{\phasorName}[1]{ \ensuremath{ \boldsymbol{\hat #1} } }
\newcommand{\impedance}[1]{ \ensuremath{ \boldsymbol{#1} } }
\newcommand{\complexPol}[2]{\ensuremath{#1\phase{#2}}}
\newcommand{\complexPolDeg}[2]{\ensuremath{#1\phase{#2\degree}}}
</_param>
</page>
</param>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu _name="fsmMLK">
<submenu name="Circuit symbols"/>
</submenu>
</effects-menu>
</effect>
<script>
<command reldir="extensions" interpreter="python">circuitSymbols.py</command>
</script>
</inkscape-extension>