Rhino Open Projects - Cannot find Meta.Numerics.dll

@gianpaolo_savio

I am trying to use the Mesh Curvature function in Rhino Open Projects and I get the error:

Message: file does not exist: C:\RhinoOpenSourceCode\Lib\Meta.Numerics.dll

Traceback:
line 30, in , “C:\RhinoOpenSourceCode\Mesh\MeshCurvature.py”

The offending bit of code is:

clr.AddReferenceToFileAndPath(r"C:\RhinoOpenSourceCode\Lib\Meta.Numerics.dll")

The file “Meta.Numerics.dll” is definitely there but rhino cant seem to find it.

Does anyone know a way around this? An alternate way to load it?

Hi Nicolas,
you can try to download and install metanumerics http://metanumerics.codeplex.com/downloads/get/716529.
It seems that in this way the bug is fixed.
If the bug persists, copy meta.numerics.dll from C:\Program Files (x86)\Meta.Numerics to C:\RhinoOpenSourceCode\Lib\Meta.Numerics.dll
Finally try to restart windows.
Let me know. Best,
g

1 Like

This did the trick!

Thanks for the quick response!

The error message is incorrect, because the file exists but is not loaded.
In fact, because you distribute by ZIP file, the DLL gets blocked by Windows during unzipping.
Right-click on the Lib\Meta.Numerics.dll file and select “Properties”, then click “Unblock”. The Python script will now load the DLL.