If I want to define a specific polyline in alibre script, I construct the list of points first in python spyder. So I can see the variables, use plot and debug more quickly. Of course alibre functions do not work in python, but i put these at the end of my script later.
(custom) function can be...