Hello,
I found this code here but don't quite understand how to change it to match my use case.
https://www.cnblogs.com/opencascade/p/4634374.html
#
# make helix curve in OpenCASCADE.
# Shing Liu(eryar@163.com)
#2015-07-08 22:00
#
upload MODELING VISUALIZATION
cylinder a cylinder 6
line...