Hello,
I found a way to draw a spiral without using script, it's a lot tortuous but it works !!
1) draw a point like below then select Transform/polar array copy

2) for this example I use 100 points and I want 2 turn (720°) with 2mm between A and B centered on 0,0



the parameters:
0,0,7.2,0.02
0,0 = rotation x and y -> none
720° / 100 points = 7.2° per increment for Z rotation
the last parameter, the scale, define distance between A and B point -> 100 points * 0.02 = 2mm
3) We must then obtain a point list instead of separated points ; with all points selected, use Edit/joint with anything for joint value, you obtain a unique point object.
4) convert it to polyline, you must have this

5) Explode the object to remove the line between A and B points then joint again the lines to create a spiral polyline.

to reverse the winding direction, use negative value for the angle
++
David