Hello there,

I am trying to create Walls in Python using a nested list with curves, baselevel, toplevel and walltype, but i dont really know how to do it properly, i searched quite a lot and hoped, that someone could help me solving it.

I want a list with the same structure, which allready worked with another output but now that he always takes the same line, baselevel and toplevel for each element. How do i do that?

Here the Code

<

import clr

clr.AddReference(‘ProtoGeometry’)

from Autodesk.DesignScript.Geometry import *

```
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import *
# Die Eingaben für diesen Block werden in Form einer Liste in den IN-Variablen gespeichert.
TransactionManager.Instance.EnsureInTransaction(doc)
Curves = IN[0]
Level = UnwrapElement(IN[1])
TopLevel = UnwrapElement(IN[2])
type = UnwrapElement(IN[3])
output = []
x1 = 0
x2 = 0
x3 = 0
x4 = 0
x5 = 0
# Code unterhalb dieser Linie platzieren
for i in Curves:
list1 = []
for u in i:
list2 = []
for k in u:
list3 = []
for p in k:
list4 = []
for l in p:
list4.append(Wall.Create(doc, Curves[x1][x2][x3][x4][x5].ToRevitType() ,Level[x1][x2][x3][x4][x5], False))
x5 = x5 + 1
x5 = 0
list3.append(list4)
x4 = x4 + 1
x4 = 0
list2.append(list3)
x3 = x3 + 1
x3 = 0
list1.append(list2)
x2 = x2 + 1
x2 = 0
output.append(list1)
x1 = x1 + 1
x1 = 0
TransactionManager.Instance.TransactionTaskDone()
# Weisen Sie Ihre Ausgabe der OUT-Variablen zu.
OUT = output>
<
```