Bare in mind that I’m very new to Dynamo.
Im trying to combine a list of witdhs with a list of the summed widths but I’m just not clever enough to make it work.
This is my script after many hours on this forum and youtube:
Followup question @Elie.Trad
Can I remove the dublicate name in the script?.
Now it comes out in excel as eks. 1 and I would like it to look like eks. 2.
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
OUT = IN[0][:1] + ["" for i in range(len(IN[0])-1)]
Hi, flute, it comes from the depth of the list, I’m not strong enough to do it from the phone (a loop will have to be added, I think)
i’m doing tonight
i’m on the go
Sorry
Cordially
christian.stan
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
cont=[]
cont2=[]
for j in range(len(IN[0][0])):
a=IN[0][0][j][:1] + ["" for i in range(len(IN[0][0][j])-1)]
cont.append(a)
cont2.append(cont)
cont2.extend(IN[0][1::])
OUT = cont2