if ( !!ce.type eq 'SLAB' and !!ce.Tmrf eq /newSytm ) then
var !xyposString xypos
!signX = 1
!signY = 1
!xpos = !xyposString.Split()[1].Real()
!ypos = !xyposString.Split()[2].Real()
if ( !xpos ge 0 ) then
!signX = -1
endif
if ( !ypos ge 0 ) then
!signY = -1
endif
!xpos = !xpos.Abs()
!ypos = !ypos.Abs()
!lengh = sqrt ( $!xpos * $!xpos + $!ypos * $!ypos )
-- the diameter circle of the template
!dia = 5
!beto = $!dia / $!lengh
!newXpos = !beto * !xpos * !signX
!newYpos = !beto * !ypos * !signY
cpoff $!newXpos $!newYpos