2

I have 3 lists, each is the X, Y and Z coordinates of the points. I tried using Dynamo's Point.ByCoordinates nodes, however it doesn't accept list as input.

I try to create a Python script to assist me in this, however I'm very new to python, could someone assist me here?

import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN


a=[]
for i in IN:

a.append(Autodesk.Point.ByCoordinates(IN[0][i],IN[1][i],IN[2][i]))
a # the list with the new items.

#Assign your output to the OUT variable.
OUT = a

This is so far what I come out with, but I don't know how to process anymore. Thanks in advance!

Oleg
  • 560
  • 8
  • 19
Gregor Isack
  • 1,111
  • 12
  • 25

0 Answers0