As it has been incredible challenging for me to dive into this field and try to understand how this process in going without loosing track of scope, the easiest thing for me is to make a constantly updated blog post with tutorials and codes I have used and their meaning.

Step 1:

text ‘rs is short for rhinospacesintax’

range(beginning, end, step) >> result:

The problem when you do things fragmented it that you come back to it after a while and you completely lost our train of thought, or that you even had a train.

import rhinoscriptsyntax as rs
start=rs.GetPoint("Start of line")
if start: 
    end=rs.GetPoint("End of Line")
    if end: rs.AddLine(start,end)
    

However fine and dandy this is .. this is not what I am looking for. I want to know how to make my own plug-in and get through the details as I progress .

Atempt no. 3 led me to another video tutorial which is:

requierments: visual studio it is a microsoft software that can be downloaded online.

Found a little better structure video

http://designalyze.com/course/developing-your-own-grasshopper-plugin

They recomend installing the grasshopper template files like this: https://marketplace.visualstudio.com/items?itemName=McNeel.GrasshopperAssemblyforv6

That option did not work for me at all – so I had to proceed to option two: https://developer.rhino3d.com/guides/grasshopper/installing-tools-windows/

The naming

public class UnicornComponent : GH_Component
    {
        /// <summary>
        /// Each implementation of GH_Component must provide a public 
        /// constructor without any arguments.
        /// Category represents the Tab in which the component will appear, 
        /// Subcategory the panel. If you use non-existing tab or panel names, 
        /// new tabs/panels will automatically be created.
        /// </summary>
        public UnicornComponent()
          : base("Horn", "Unicornhorn",
              "Unicorn horn component",
              "Unicorn", "Rainbow flavour")
        {
        }

## now, as follows, Unicorn is the name of the plug-in, rainbow flavour is the name of the category, Horn is the name displayed on the dropdown menu and unicornhorn is the display name
##when searching only horn will be displayed
atempt one to get things straing
second and successful atempt
namespace Unicorn
{
    public class UnicornComponent : GH_Component
    {
        /// <summary>
        /// Each implementation of GH_Component must provide a public 
        /// constructor without any arguments.
        /// Category represents the Tab in which the component will appear, 
        /// Subcategory the panel. If you use non-existing tab or panel names, 
        /// new tabs/panels will automatically be created.
        /// </summary>
        public UnicornComponent()
          : base("Unicornhorn", "Unicornhorn",
              "Unicorn horn component",
              "Unicorn", "Rain")
        {
        }

ok, got it …. I managed to get here, however there is a long way to go until I understand how to patch and deconstruct this type of tools.

https://developer.rhino3d.com/guides/grasshopper/simple-geometry-component/#overview

Leave a Reply

Your email address will not be published. Required fields are marked *