Python:Tuple is not Callable

Dear All

sorry for such a trival question . I am trying to create a simple script for a rectangle with theses parameters in ghpython
Plane: 0,0,0
X Size: 2
Y Size: 2
Radius: 1

the python script i used was :

  1. import ghpythonlib.components as gh
  2. rectangle= gh.Rectangle(gh.ConstructPoint(0,0,0),2,2,1)

however there was an error saying "Tuple is not Callable "
I use the same syntax for a circle at 0,0,0 and radius of 2 and it worked:

  1. import ghpythonlib.components as gh
  2. circle=gh.Circle (gh.ConstructPoint (0,0,0),2)

The script is attached and most grafteful for any help at all from the experts out there!

Yutakatuple not (9.1 KB)

1 Like

import ghpythonlib.components as gh

rectangle = gh.Rectangle(gh.ConstructPoint(0,0,0), 2, 2, 1)

Your code seems to be totally fine for me! Iā€™m on macOS though. Could this be a bug on Windows?

It works on Windows for me as well :slight_smile:

o dear thanks I will try to sort it out.

Thank you so much for checking at least I know its not the wrong code :sweat_smile: