Create the specific block at given station on alignment

Hi All,
I have an alignment. Then I have a list of blocks that need to be placed on the alignment.
I have a csv of alignment stations and name of blocks.
So finally what I want is placing these blocks on alignment as the specified locations.

It seems I got everything fine until create the block reference option.
When I create the block reference it only create the first block at all stations.
What have I done wrong?.


1 Like

The lists you are passing into BlockReference.Create have inconsistent levels. I think it will work if you first use List.Flatten on the list of stations so that you don’t have a nested list.


Thank you so much. That works perfect.


Can I get such types of script?