Ironpython error while coding in ghpython

(Mahanmotamedi1991) #1

Dear all,
I was trying to start coding very simple defenition via python in grasshopper to connect two simple point as a line. while I was trying to import rhinoscriptsyntax I faced with wired error related to Ironpython. I tried to copy latest version of Ironpython (2.7.7) in diffetrent folders but it didn’t work at all.
Does anyone know how to solve this problem?

(Nathan 'jesterKing' Letwory) #2

Looks like you didn’t input a point to your component. This error doesn’t mean there is a problem with your IronPython.


(Mahanmotamedi1991) #3

Yes you are right Nathan. Thanks for your help.

(Giulio Piacentino) #4

You can add a large

if x and y:

encompassing all your code to make sure that it will always work without interruption.
Preventing error cases is also a responsibility of the good scripter & coder :slight_smile:


Giulio Piacentino
for Robert McNeel & Associates

(Mahanmotamedi1991) #5

Thanks Giulio.I will mention it.