Ironpython error while coding in ghpython

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?

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

/Nathan

Yes you are right Nathan. Thanks for your help.

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


Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

1 Like

Thanks Giulio.I will mention it.