I have a small concern about making a Python node.
I can not get the list out of the program. I obtain only an “Empty List”…
However, this is very simple block of code, it intended to create a list from the conditions imposed by two separate lists.
Code Below :
#2018/01/03
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# Import méthode extension
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
#Entry
A = IN [0]
B = IN [1]
C = IN [2]
#Definition
i=0
j=0
x=0
imax=len(A)
jmax=len(C)
l = []
#Creation
for j in range(jmax):
for i in range(imax):
if C[j]==A[i]:
C[j]=B[j]
break
#Exit
OUT = l
ah. Can you post them to a dropbox, google drive, or other file share service? Even if you could just post the formatted python code (use the </> button in the toolbar of the reply composition box) it helps us help you.
#2018/01/03
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# Import méthode extension
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
#Entry
A = IN [0]
B = IN [1]
C = IN [2]
i=0
j=0
imax=len(A)
jmax=len(C)
l = []
for j in range(jmax):
for i in range(imax):
if C[j]==A[i]:
C[j]=B[j]
break
#Exit
OUT = l