https://github.com/fraguada/commondllexample
An example of sharing a Dll between a Rhino .rhp and a GH .gha.
https://github.com/fraguada/commondllexample
csharp dotnet grasshopper3d rhinocommon
Last synced: 2 months ago
JSON representation
An example of sharing a Dll between a Rhino .rhp and a GH .gha.
- Host: GitHub
- URL: https://github.com/fraguada/commondllexample
- Owner: fraguada
- Created: 2017-12-19T09:33:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-19T09:43:43.000Z (over 8 years ago)
- Last Synced: 2025-02-12T20:32:28.188Z (over 1 year ago)
- Topics: csharp, dotnet, grasshopper3d, rhinocommon
- Language: C#
- Size: 32.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Common Dll Example
This is an example to test the sharing of a common .net dll between a Rhino Plugin .rhp and a Grasshopper Add-On .gha.
The common dll just has one class that returns a string of the current time.
The .sln contains all three .csproj files. The Grasshopper Add-On project has a post-build event to copy the .gha to the same folder as the Rhino .rhp.
To test, start debugging (launches Rhino 6 BETA at the time of writing) and drag and drop the .rhp into Rhino (do this the first time).
Running the _Grasshopper command will show that the .gha is loaded from the location of the .rhp file.
Developed with Visual Studio 2017, Rhino 6 BETA. All projects .net Framework 4.5.
Rhino Plugin and Grasshopper Add-On based on the [templates provided by McNeel](https://marketplace.visualstudio.com/search?term=publisher%3A%22McNeel%22&target=VS&category=All%20categories&vsVersion=&sortBy=Relevance).
TODO: Add rhi / macrhi creation on Release Build.