Python Error output


#1

hello dears,
i have made this small script on python, to combine 2 lists, to get coordinate from x,y value
the problem is as seen in picture, i have 4 values for coordinate , only the third value is flipped, x is y & and y is x.
can anybody explain why this happened ? thanks in advance.


#2

Strange. Works fine on my end. Have you tried closing the file and re-running it?


Set Parameter Depend on the Levels with Dynamo
Python Nodes Basics
#3

dear nik,
i have notice from your work that i use { } instead of [ ], that is the problem , many thanks to you .


#4

It works with { } too. I’m guessing it just needed a refresh.


#5

maybe you are right, it’s worked with previous example, in another example one of them flipped , i will restart every thing


#6

yes nick, after restarting dynamo and revit, every thing works fine.
thanks man, appreciated


#7

and don’t use “;” in python…its not java;)


#8

hhhh ya i noticed that, i was C# programmer. thanks for this note :slight_smile: