Runtime Error (MissingMemberException):

Hi everyone,
I am new to Python scripting in Rhino 7.
My first few lines already causes error, but these lines of codes can’t be simpler as below

import System
import Rhino
import rhinoscriptsyntax as rs

points = rs.AllObjects()

The error shows:

Runtime error (MissingMemberException): 'CustomTable' object has no attribute 'GetObjectList'

Traceback:
  line 57, in AllObjects, "C:\Users\nguye\AppData\Roaming\McNeel\Rhinoceros\7.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\selection.py"
  line 5, in script

Does anyone have any idea how to fix this?

Cheers
Tricky!

1 Like

Hi @Tien_Nguyen,

Your script completes here with no errors. If you are not running the latest service release of Rhino 7, which is 7.30 (2023-6-12), you might want to update.

https://www.rhino3d.com/download/rhino-for-windows/7/latest

– Dale

thanks Dale for replying. That’s weird as I am running the latest version. Version 7 SR30
(7.30.23163.13001, 2023-06-12)
Evaluation

Tien

Hi,
I have the same issue with a simple code like this

import rhinoscriptsyntax as rs

# Retrieve all the objects in the active Rhino document.
objets = rs.AllObjects()

My version of Rhino is 7.34.23267.11001 2023-09-24

Can somebody help me please.

Eric.

Hi @Eric_Guillon,

I can repeat the error. I’ve logged the issue.

https://mcneel.myjetbrains.com/youtrack/issue/RH-78422

Thanks,

– Dale

Don’t you need to change the document space first?
scriptcontext.doc=RhinoDoc.ActiveDoc?