Hello,
Are you sure your function is correct ?
In order to use Sweep2 you need to actually build the curve, that is construct some points using X and Y coordinates.
However the values are in the 10^13 range… (tried in mm and in m)