GetReal function

Hi,
Something happen that I don’t explain with the rhinoscriptsyntax module :
When I run this code :

import rhinoscriptsyntax
parameter = rhinoscriptsyntax.GetReal()

I got this message :
Message: ‘module’ object has no attribute ‘GetReal’

It seems that the function doesn’t exist in this module whereas it is documented :
http://rhinopython-docs.appspot.com/functions/getreal.html

There is a workaround doing it this way :

import rhinoscript.userinterface
parameter = rhinoscript.userinterface.GetReal()

Does anybody know what’s hapenning ?

Hi @BaptisteC, please check out this thread. Have you updated to SR12 ?

You might check if the module userinterface.py contains GetReal() under this location:

C:\Users\UserName\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript

c.

Hi @BaptisteC,

Here’s the explanation that hopefully solves your problem.

Indeed it does.
Thank you Alain and Clement