Couple issues
1) savevartoold is not a defined function
2) You never set the variable "filletrad". It's a drawing specific variable that should be set somewhere in your code before performing the fillet.
3) I'd either drop the fillet and just make a single polyline from the beginning, offset then delete or use the join command to join the two line segments then offset and delete.