Runtime error (NotImplementedException): The method or operation is not implemented

Hi guys,

I get this error only by writing this code:

import rhinoscriptsyntax as rs
import Rhino.Geometry as rg
sketches = rs.GetObjects(“select sketch”)

Is something to do with Rhino 6?
Any help? below the copy-pasted error.

Thanks!
Manuel

Runtime error (NotImplementedException): The method or operation is not implemented.

Traceback:
line 397, in GetObjects, “C:\Users\Lolo\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\selection.py”
line 16, in script

many of the “get” functions are not in ghpython. you have to switch scope to rhino doc

from Rhino.RhinoDoc import ActiveDoc as rhdoc
import scriptcontext as sc
sc.doc = rhdoc
# put all your 'get' functions here
# ...
# end of your 'get' functions
sc.doc = ghdoc

Make sure you wrap your ‘get’ also in a if statement and feed a boolean to run it. otherwise every time this component runs the rhino will prompt for input.

Nooo, and they shouldn’t!

You can use the variable that comes in from the inputs. You do NOT need the GetX() functions in GhPython, they are against its philosophy of native Grasshopper integration.

Please read this documentation page by Scott.

1 Like