Internal error when adding polyline from variables

Use old type variables that can be obtained from the function block to which the parameters are added.