Subversion Repositories wimsdev

Rev

Rev 15523 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
!if $wims_read_parm!=slib_header
13585 bpr 2
  !goto proc
20 reyssat 3
!endif
4158 bpr 4
 
4349 bpr 5
slib_author=Gang, XIAO
4158 bpr 6
 
20 reyssat 7
slib_example=5/br2out,2,6,blue,medium
4158 bpr 8
 
20 reyssat 9
!exit
10
 
11
:proc
12
!distribute items $wims_read_parm into slib_type,slib_lwid,slib_dwid,slib_color,slib_textsize
13
slib_c=!char 1 of $slib_type
14
!if $slib_c isin 123456789
13585 bpr 15
  slib_prefix=data/circuits
20 reyssat 16
!else
13585 bpr 17
  slib_prefix=
20 reyssat 18
!endif
19
slib_out=
20
!default slib_color=black
21
!bound slib_lwid between integer 1 and 10 default 1
22
!bound slib_dwid between integer 2 and 20 default 7
23
!bound slib_textsize within tiny,small,medium,large,huge default large
24
 
25
slib_rec=$slib_prefix/$slib_type.data
26
slib_wiring=!record 4 of $slib_rec
27
slib_dots=!record 5 of $slib_rec
28
!if $slib_wiring=
13585 bpr 29
  !exit
20 reyssat 30
!endif
31
slib_range=!record 2 of $slib_rec
32
slib_wiring=!replace internal _dot_ by $slib_dwid in $slib_wiring
33
 
34
slib_out=!replace internal _color_ by $slib_color in \
15531 bpr 35
linewidth $slib_dwid\
20 reyssat 36
points _color_,$slib_dots\
15523 bpr 37
linewidth $slib_lwid\
20 reyssat 38
$slib_wiring