
References: Just as with most projects, you will be referencing other libraries.This file contains the meta-data (author, version, etc). Properties contains the AssemblyInfo.cs source file.The project that was created for us by the RhinoCommon Plugin template wizard earlier. csproj) has the same name as its parent solution. Use the Solution Explorer to expand the Solution (.Also note there is a command status in Rhino’s command prompt when the command ends: The HelloRhinoCommonCommand command added one line to the document.Finish the command by selecting a start point and and end point.Notice there is also a command status in Rhino’s command prompt when the command begins: The HelloRhinoCommonCommand command will add a line right now.The HelloRhinoCommonCommand command begins and prompts you to Please select the start point.Enter the HelloRhinoCommonCommand command.Click OK to close the Rhino Options dialog. The HelloRhinoCommon plugin is now installed.Browse to the HelloRhinoCommon.rhp file (in our case, this is in C:\dev\repositories\HelloRhinoCommon\HelloRhinoCommon\bin\) and click Open.rhp file is compiled in the bin subdirectory of the project directory.) In the Rhino command prompt type the PlugInManager command. (The RhinoCommon template has set things up so when you compile the solution an. Since this is the first time you are running the plugin, you need to “install” it.Click Start (play) button in toolbar corner of Visual Studio (or press F5) to Start Debugging… We’ll just build the boilerplate Plugin template. Before we do anything, let’s build and run HelloRhinoCommon to make sure everything is working as expected.A new solution called HelloRhinoCommon should open….For the purposes of this guide, we will accept the defaults and click Finish….This dialog allows you to Configure your new plugin project, as well as select which RhinoCommon references to use and which debug version of Rhino you would like to launch… The New RhinoCommon Plug-In dialog appears.Note: You don’t have to add the project to source control for this demo. Note: This is optional depending on how you want to structure your projects. Browse and select a location for this plugin on your disk… At the bottom of the window, fill in the Name field. For the purposes of this Guide, we will name our demo plugin HelloRhinoCommon.In the central list, select the RhinoCommon Plug-In template… In the left column, find the Installed > Visual C# > Rhinoceros section. If you have not done so already, launch Visual Studio (for the purposes of this guide, we are using Visual Studio 2017 Community Edition and C#).We are presuming you have never used Visual Studio before, so we’ll go through this one step at a time. The executive summary: create a new Solution using the RhinoCommon template, build and run, and then make a change. If you are familiar with Visual Studio, these step-by-step instructions may be overly detailed for you. We will use the RhinoCommon Templates to create a new, basic, command plugin called HelloRhinoCommon. If you are not there yet, see Installing Tools (Windows). It is presumed you already have the necessary tools installed and are ready to go.
VISUAL STUDIO 2017 WINDOWS FORMS TEMPLATE WINDOWS
This guide walks you through your first plugin for Rhino for Windows using RhinoCommon and Visual Studio.
