Error to place adaptive component with 4 points or more

Thanks for your answer @Mostafa_El_Ayoubi.
I tried your solution and it work with one type of AC even if result seems to be strange compared to the dwg file. Now, I would like to place the Type in terms of the number of curves. I tried this but all component (rather 58/76 in fact) have the same base point and geometries are wrong:


I tried with list.map node but I didn’t achieve the result. but maybe I made a mistake in using it?
Extrait_DynamoBIM_260618.rvt (2.1 MB)
Place_AC_on_dwg_DynamoBIM_260618.dyn (10.3 KB)