Hi,
I wanted to convert my Revit.DB.Point list to dynamo point list.
The list I am trying to iterate is this.
I get the list length connected to IN[1].
List iteration
# Load the Python Standard and DesignScript Libraries
import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# Import RevitAPI
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *
# The inputs to this node will be stored as a list in the IN variables.
revit_xyz=IN[0]
pointlist_ListCount=IN[1]
# Place your code below this line
i=0
outputList=[]
for i in range(pointlist_ListCount):
outputList.append(revit_xyz.ToPoint()) # I get error here.I can't get any attribute.
i=i+1
# Assign your output to the OUT variable.
OUT = outputList
I get this error: on this line of the code [ outputList.append(revit_xyz.ToPoint()) ] - AttributeError: ‘list’ object has no attribute 'To Point"
Could you please help me finding my mistake here?