I’m trying to create a script that is supposed to place multiple elements from a parameter (number) and the coordinates of spaces in revit. Before using the “FamilyInstance.ByPointAndLevel” I need to make sure the script doesnt throw out all elements at once. Basically I want the user to use a schedule in Revit and specify the number of elements that is supposed to be created in the “space”.
Everything seems ok before the last “python script node”.
# Load the Python Standard and DesignScript Libraries
*from Autodesk.DesignScript.Geometry import **
# The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN
nr = IN
pts = IN
out = 
for i, j in zip(nr, pts):
- _temp = *
- for k, l in zip(i, j):*
# Assign your output to the OUT variable.
OUT = out
I get this “Error message”:
“Object cannot be intepreded as an index”
Does anyone have any suggestions how I can fix this?