0% found this document useful (0 votes)
37 views5 pages

Prepare Before C# Workshop

This document outlines the steps for setting up a C# development environment using Visual Studio Community 2022 for engineers working with Rhino 7. It includes instructions for installing necessary components such as the .NET framework, RhinoCommon, and Grasshopper templates, as well as guidance on creating and building a C# project. The document emphasizes the importance of running Visual Studio as an administrator and provides troubleshooting tips for ensuring the plugin appears in Rhino's Grasshopper interface.

Uploaded by

gaju_scribd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views5 pages

Prepare Before C# Workshop

This document outlines the steps for setting up a C# development environment using Visual Studio Community 2022 for engineers working with Rhino 7. It includes instructions for installing necessary components such as the .NET framework, RhinoCommon, and Grasshopper templates, as well as guidance on creating and building a C# project. The document emphasizes the importance of running Visual Studio as an administrator and provides troubleshooting tips for ensuring the plugin appears in Rhino's Grasshopper interface.

Uploaded by

gaju_scribd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

C# COURSE BY C# for engineers working in AAD

MARCIN LUCZKOWSKI

VISUAL STUDIO
for the purpose of this course we recommend to install visual studio community 2022
or relevant. It is important to of course install the C# IDE, but I would also recommend
some additional ones which are presented in the below scheme

in general you need install .NET


framework at least 4.8 to run
codes for Rhino 7

Install also universal platform


development, just to train some
simple codes in classic C# run
application mode.

after installation, please run the


visual studio without code...
and remember to always open
visual studio as administrator
C# COURSE BY C# for engineers working in AAD
MARCIN LUCZKOWSKI

VISUAL STUDIO
if you open the visual studio without code please go to Extension on your toolbar and
open Manage Extensions

nice! you are almost there. On the right side you will find browser, type there "rhino" and
install RhinoCommon and Grasshopper templates for Rhino 7

after restarting visual studio... yes, you need to close software and reopen it... and here
again, please do it as administrator! You should see the possibility of creating new
Rhino/GH project!!!

choose the C#
version not VB
C# COURSE BY C# for engineers working in AAD
MARCIN LUCZKOWSKI

VISUAL STUDIO
lets try to make our first project!

create the project name

control the folder, you should have


access to it, and I am not
recommending cloud folders
(google or opendrive are lagging)

here you can setup a lot of basic


information of the project, which
will be already visible in GH, but on
the beginning leave everything
with default settings, we can
always change them later (I will
show you later how)

we have our first environment to create code, but before we will build our solution,
please remember your folder address with Rhino7/Plug-ins, mine is for example like this:
C:\Program Files\Rhino 7\Plug-ins
C# COURSE BY C# for engineers working in AAD
MARCIN LUCZKOWSKI

VISUAL STUDIO
before we will build and make our first plugin please open
Project>MyFirstProject Properties
here MyFirstProject can have a different name, depending on your setup

in properties please find location of your Rhino7/Plug-ins folder, from now the .gha file
with your plugin will be build in this location. Let's test it, click Build Solution (F5) !

In the output
window, you should
find information that
your gha file has
been generated in
the correct folder!
C# COURSE BY C# for engineers working in AAD
MARCIN LUCZKOWSKI

VISUAL STUDIO
the last verification if your setup is correct is to run solution, please click the play button
in the middle top of your visual studio ribbon

after doing it your Rhino should automatically start, after opening GH you should see
also you first plugin!

if you do not see it! It happen sometimes, please in Rhino7 type


GrasshopperDeveloperSettings and add folder with your Plugins, exatlcy the same
which we used in properties of the project in VS

restart Rhino and try to run the solution from VS,


let me know if it worked!

You might also like