Subversion Repositories wimsdev

Rev

Rev 20 | Rev 4158 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
!if $wims_read_parm!=slib_header
2
 !goto proc
3
!endif
4
slib_title=Draw the fixed circuit wiring of a given circuit type.
5
slib_parms=5\
6
,the type of circuit\
7
1,line width\
8
7,dot width\
9
black,color name\
10
large,text size (tiny,small,medium,large or huge)
11
slib_author=Gang Xiao
12
slib_out=drawing commands for flydraw.
13
slib_example=5/br2out,2,6,blue,medium
14
slib_comment=Check the\
1043 bpr 15
<a href="$wims_ref_name?module=tool/elec/circdraw">circuit draw tool</a>\
20 reyssat 16
for details of available circuit and component types.
17
!exit
18
 
19
:proc
20
!distribute items $wims_read_parm into slib_type,slib_lwid,slib_dwid,slib_color,slib_textsize
21
slib_c=!char 1 of $slib_type
22
!if $slib_c isin 123456789
23
 slib_prefix=data/circuits
24
!else
25
 slib_prefix=
26
!endif
27
slib_out=
28
!default slib_color=black
29
!bound slib_lwid between integer 1 and 10 default 1
30
!bound slib_dwid between integer 2 and 20 default 7
31
!bound slib_textsize within tiny,small,medium,large,huge default large
32
 
33
slib_rec=$slib_prefix/$slib_type.data
34
slib_wiring=!record 4 of $slib_rec
35
slib_dots=!record 5 of $slib_rec
36
!if $slib_wiring=
37
 !exit
38
!endif
39
slib_range=!record 2 of $slib_rec
40
slib_wiring=!replace internal _dot_ by $slib_dwid in $slib_wiring
41
 
42
slib_out=!replace internal _color_ by $slib_color in \
43
linewidth=$slib_dwid\
44
points _color_,$slib_dots\
45
linewidth=$slib_lwid\
46
$slib_wiring
47