Hello @arnold55577,
I'm going to try to use the right language here but I don't have a programming background. The original script is the following:
--
fn drawLineBetweenTwoPoints pointA pointB =
(
ss = SplineShape pos:pointA
addNewSpline ss
addKnot ss 1 #corner #line PointA
addKnot ss 1 #corner #line PointB
updateShape ss
ss
)
newSpline = drawLineBetweenTwoPoints [10,20,30] [100,200,10]
--
So, to add to this we only need to do the following:
--
fn drawLineBetweenTwoPoints pointA pointB pointC=
(
ss = SplineShape pos:pointA
addNewSpline ss
addKnot ss 1 #corner #line PointA
addKnot ss 1 #corner #line PointB
addKnot ss 1 #corner #line PointC
updateShape ss
ss
)
newSpline = drawLineBetweenTwoPoints [10,20,30] [100,200,10] [160,20,30]
--
We could take it further as shown below. My X,Y,Z positions are just made up on the spot, so you'll want to find the right values there.
--
fn drawLineBetweenTwoPoints pointA pointB pointC pointD pointE pointF pointG pointH=
(
ss = SplineShape pos:pointA
addNewSpline ss
addKnot ss 1 #corner #line PointA
addKnot ss 1 #corner #line PointB
addKnot ss 1 #corner #line PointC
addKnot ss 1 #corner #line PointD
addKnot ss 1 #corner #line PointE
addKnot ss 1 #corner #line PointF
addKnot ss 1 #corner #line PointG
addKnot ss 1 #corner #line PointH
updateShape ss
ss
)
newSpline = drawLineBetweenTwoPoints [10,20,30] [100,200,10] [160,20,30] [180,200,30] [200,20,30] [250,200,30] [270,20,30] [290,200,30]
--
If you follow the color codes here, I think it makes it easier to add new points. I just want to repeat that the coordinates I put in at the bottom are just made up, you'll want to enter those yourself with the correct values. I hope this helps!
Best Regards,