Grasshopper plugin to import and export ESRI Shapefile. Plugin written in pyhton and using pyshp module. So GhPython and pyshp are needed to be installed.
- 2017-10-12 Decimal number support, more examples
- 2017-08-27 Initial version
Download last version from food4rhino http://www.food4rhino.com/app/ghpython. Tested with 0.6.0.3.
To install:
-
In Grasshopper, choose File > Special Folders > Components folder. Save the gha file there.
-
Right-click the file > Properties > make sure there is no "blocked" text
-
Restart Rhino and Grasshopper
Plugin developed for using in native python environment while Grasshopper is using IronPython. So installation of the module requires a bit of creativity.
-
Download pyshp zip achive https://github.com/GeospatialPython/pyshp/archive/1.2.12.zip
-
Extract it to C:\Users\%USERNAME%\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts. Final path to shapefile.py should be ...Rhinoceros\5.0\scripts\shapefile.py
Then copy user object files, add to layout and check that it works.
-
Download zip archive https://github.com/Hiteca/ghShp/archive/master.zip
-
In Grasshopper, choose File > Special Folders > User Objects folder. Save two .userobject files from zip into this folder.
-
New buttons will appears at "Extra" tab
Have any questions or ideas - please write to alex@hiteca.ru
Feel free to add bug issues and submit pull requests.
Before this code was published here it have already been implemented in some of the projects by many people. Thank you for participation and feedback.
A "core" of the code is pyshp module. We thank the people who develop it