Run for all items in a given list

I’m working on a script where I want to get the Points of specific Point Codes from my corridor at given intervals. I’ve got no problem when the corridor contains a single Baseline, but when there are multiple Baselines issues arise.

I am using the Baseline.PointsByPointCodeAtNearestStation node and it will give me points for all the Point Codes that I’ve specified, it will however not give me the points for all Baselines, instead I will get Point Code A along Baseline 1, Point Code B along Baseline 2 and Point Code C and D along Baseline 3.

How do I manage to get Point Code A, B, C and D for all the Baselines? I’ve tried to chop the list for Baselines, played around with the Levels of the inputs and wether to keep list structure or not, and fiddled with the Lacing options. But to no avail. There is probably some extremely basic thing that I am missing, but I am just not finding it.

Hello, could you share the dyn because the image isn’t clear?
I think you need to modify the lacing.

Sure, here is the base of the script and a sample DWG.
Dyntest baselines.dwg (2.5 MB)
Points at Point Codes.dyn (21.8 KB)

It’s certainly not the perfect solution, but it resolves your problem.

I’ve solved it, and this was helpful, although not the entire solution. At least not for me. Your solution would group the points for every station value across the different Baselines. Although a Transpose solved that. But I also didn’t get the entire Baseline if the different Baselines had altering lengths.

The solution ended up looking like this:

Either way it works, thanks for the help!