Rev 20 | Rev 4158 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
!if $wims_read_parm!=slib_header
!goto proc
!endif
slib_title=Component position information of a circuit type.
slib_parms=1\
,the type of circuit
slib_author=Gang Xiao
slib_out=A matrix
slib_example=9/br3close
slib_comment=Check the\
<a href="$wims_ref_name?module=tool/elec/circdraw">circuit draw tool</a>\
for details of available circuit and component types. <p>\
Output of the script: each row of 5 columns corresponds to a component.<p>\
Col. 1,2 = (x,y) of the component center <br>\
Col. 3,4 = (x,y) of annotation text <br>\
Col. 5 = orientation (0=horizontal, 1=vertical)
!exit
:proc
slib_type=!item 1 of $wims_read_parm
slib_c=!char 1 of $slib_type
!if $slib_c isin 123456789
slib_prefix=data/circuits
!else
slib_prefix=
!endif
slib_rec=$slib_prefix/$slib_type.data
slib_out=!record 3 of $slib_rec