Grasshopper Import SHP in Rhino 8

Has any one else experienced issues importing SHP files in Grasshopper in Rhino8. i get the following error:

  1. Error while parsing nz-building-outlines: Could not load file or assembly ‘System.Data.OleDb, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The system cannot find the file specified.

But the same file works fine in Rhino7

Hi Richard -

Can you please upload that file that works in Rhino 7 but not in Rhino 8?
-wim

HI Wim, thanks for the reply but this forum won’t let me upload .shp files

I also get the same error. If you find a solution, please let me know.

Hi -

The “same” error means that it works fine in Rhino 7 but not in Rhino 8. Is that the case? If so, please post the file you are having issues with. Note that Shapefiles typically require a .shx and a .dbf file along with the .shp file.

Generally, I’d recommend using a plug-in such as Heron to import Shapefiles. Heron can be installed through the package manager.
-wim

hi @wim ,
i have the same error but for me it does not work in rhino 7 and rhino 8. could i send you the files and you can check it? this would be great
best regards, michael

Gebäude.dbf (134.5 KB)
Gebäude.shp (1.2 MB)
Gebäude.shx (41.5 KB)

Hi, I have find a solution from the forum. Here is the link:
Could not load file or assembly - Grasshopper - McNeel Forum
Plus, refer this link to use .net framework as runtime environment:
Rhino - .NET Core vs .NET Framework (rhino3d.com)

1 Like

Thanks for the work around, it’s usefull.

SHP component is throwing this error message when trying to load 3D shp.

Error while parsing MIO-92-ContourSite: Shapetype PolyLineZ is not implemented

Not so important as i can retrieve Z info from the db associated file, but is there a plan to update this component so it can get directly it’s contour line in 3D.
While processing sites i often use Qgis and it’s quite usual to get some shift between shp and db files wich needs manual edition of the db files.

Hi -

This is fixed in Rhino 8.9
RH-82504 Grasshopper: Import SHP - .NET Issue

There are no plans for new features or other enhancements of this standard Grasshopper component.
Have you tried the Heron or ShrimpGIS plug-ins to see if those handle 3D shp files?
-wim

Really quick to fix it :wink:

Yes tried Heron at least, but fall back on standard component for the moment, as it gives me more control.

Hello,
I get the same issue here. Import SHP file works fine in R7 but in R8 gives the following error:

  1. Error while parsing All Buildings 3: Could not load file or assembly ‘System.Data.OleDb, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The system cannot find the file specified.

Please see attached the file I’m trying to open.
Many thanks,
Yoav

All Buildings 3.rar (2.2 MB)

LIDAR, Qgis, SHP and Lands design component are just starting to deliver some astonishing stuff …