AnsweredAssumed Answered

Creating an Array based on Definition/Points

Question asked by JacobHorwitz on Oct 3, 2018
Latest reply on Dec 17, 2018 by bixb0012

I'm currently new to python and working on a Class Project trying to create multiple polylines based on the tracking of Rhinos. I have the approach right, but I somehow have the variables switched around.


The Rhino would be the key value, and the points would have to be added into it. The example would be "Rhino : {(Point 1),(Point 2)}".


Somehow I can't get it. I can get the polyline to form, but I only get one giant line and not a multiple set of polylines based on the Rhino.


Here is the script I have written down.(re-edited to just the definition of the function)


def rhinoTracker(Rhino, X, Y, dictionary):

XYCoord = (X, Y)

   if Rhino not in dictionary:
   dictionary[Rhino]= []