Possibility for a List.Combine node in DesignScript

Hello everyone,

I am trying to make my script entirely into a single DesignScript code block.
I am having a slight problem with this, i need to use a list.combine node to make sure my start- and endpoints are combined together.

Thanks in advance :slight_smile:

I think you mean this?

Note I am using an older version, so my brackets look like {} instead of

l1 = Line.ByStartPointEndPoint(Point.ByCoordinates(0,0,0),Point.ByCoordinates(10,0,0));
l2 = Line.ByStartPointEndPoint(Point.ByCoordinates(0,5,0),Point.ByCoordinates(10,5,0));
l3 = Line.ByStartPointEndPoint(Point.ByCoordinates(0,10,0),Point.ByCoordinates(10,10,0));
l4 = Line.ByStartPointEndPoint(Point.ByCoordinates(0,15,0),Point.ByCoordinates(10,15,0));
t1 = {l1,l2,l3,l4};
point1 = Curve.PointAtParameter(t1,0);
point2 = Curve.PointAtParameter(t1,1);
out = List.Transpose({point1,point2});

I will try this, thank you for your quick response :slight_smile:

1 Like

If you select the nodes and use the function ‘Node to Code’ in the right mousebutton menu (not on the node but outside of it, there are two different menus), then you have the desired code in DesignScript.

1 Like

I know :), but this doesn’t work for the list.combine node.

1 Like

Hm weird, didn’t know that.