Another fix is to use clr.AddReferenceToFileAndPath("path_to_dll_file"). This does work with the new .NET Core 7 of Rhino 8.
For some reason using clr.AddReference() does not find the Windows Assembly folder containing the .dll files for Interop Assemblies (such as Office, etc.)
Hi there. I tried the method you mentioned in Rhino 8 (python 3) but it says the Name Attribute module ‘clr’ has no attribute ‘AddReferenceToFileAndPath’. It’s not working actually
I tried to do that but I failed. I’m not sure which part I’m doing wrong. I’m trying to import Excel Application Class as shown in the picture below but in Rhino 8 the old method is not working.