Rhino3dmIO (File3dm.Objects.ToList() returns the right count but with all null values)

I am reading Rhino file using Rhino3dmIO module inside Revit. It reads the file but upon calling File3dm.Objects.ToList() returns all objects as nulls. I want to get InstanceReferenceGeometriy and InstanceDefinitionGeometry even after using filter it returns only nulls.

It seems there is a problem with my computer…same code worked on another computer :thinking:dont know what’s happening exactly.

find attached image.


Could it be a possible conflict between the 3dm reader that is shipped with Revit, and the one that is loaded with Rhino.Inside.Revit?

it seems that Rhino.RhinoDoc.ActiveDoc.Object.ToList() always returns null values but if you foreach or do something like Rhino.RhinoDoc.ActiveDoc.Object.Select(x=>x) it works fine.


1 Like