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

**URL:** <https://discourse.mcneel.com/t/runtime-error-notimplementedexception-the-method-or-operation-is-not-implemented/72677>\
**Category:** Scripting\
**Tags:** ghpython, ghpythonlib, rhino6\
**Created:** [October 9, 2018, 1:27am UTC](https://discourse.mcneel.com/t/runtime-error-notimplementedexception-the-method-or-operation-is-not-implemented/72677 "2018-10-09T01:27:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuelr](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/manuelr/32/173054_2.png) [@manuelr](https://discourse.mcneel.com/u/manuelr)\
**Post date:** [October 9, 2018, 1:27am UTC](https://discourse.mcneel.com/t/runtime-error-notimplementedexception-the-method-or-operation-is-not-implemented/72677/1 "2018-10-09T01:27:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Will\_Wang](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/will_wang/32/513624_2.png) [@Will\_Wang](https://discourse.mcneel.com/u/Will_Wang)\
**Post date:** [October 10, 2018, 2:01pm UTC](https://discourse.mcneel.com/t/runtime-error-notimplementedexception-the-method-or-operation-is-not-implemented/72677/2 "2018-10-10T14:01:44Z")

</div>

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

```auto
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.

---

<div class="post-metadata">

**Author:** ![piac](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/piac/32/769366_2.png) [@piac](https://discourse.mcneel.com/u/piac)\
**Post date:** [October 10, 2018, 4:52pm UTC](https://discourse.mcneel.com/t/runtime-error-notimplementedexception-the-method-or-operation-is-not-implemented/72677/3 "2018-10-10T16:52:47Z")

</div>

> [@Will\_Wang](#):
>
> many of the “get” functions are not in ghpython

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](https://developer.rhino3d.com/guides/rhinopython/ghpython-component/) by Scott.
