RSS

Tag Archives: Rhino

Rhino C# Development (V) : Create and dock Rhino Panels side-by-side


In my previous blog Rhino C# Development (III) : Add Winform UI to Rhino, I demonstrated how to create a dock bar with Winform User controls in Rhino3D.

In this blog I am to demonstrate how to use a similar approach to create Rhino panels, and then dock the panels side-by-side. Rhino panels, are tabbed containers where collection of controls can be hosted, as shown below.

tabbedpanel-001.png

To create such a panel, in Visual Studio, add a user control in the plugin project. If you don’t know how to create such a plugin project, refer to my previous blogs for details.

In this example, a UserControl called GeometryPanel is inserted into the project, and a few simple winform controls are added for illustrative purposes. Add a Guid attribute to the UserControl, as shown below.
 image

[System.Runtime.InteropServices.Guid(0b0c3a6e-7efb-47c9-b2e3-7d92788a9f74)]
public class MyPanelCommand : Command
{
    public MyPanelCommand()
    {
        Instance = this;
    }
}

Read the rest of this entry »

 
1 Comment

Posted by on June 12, 2014 in CAD, Dotnet/C#, General

 

Tags: , , , , , , , , , ,

Rhino C# Development (IV) :Using new RhinoCommon API to develop Rhino3D .net plugins


Rhino3D has changed its .net plugin development implementation. Although you can still use the Rhino.NET SDK to create Rhino plug-ins with the same capabilities as Rhino C++ SDK developers, however, Rhino.NET will NOT be available in Rhino 6. Rhino3D instead prefers using RhinoCommon if possible, and RhinoCommon is the new .NET plug-in SDK for Rhino 5+.

To see how to use the old Rhino.net approaches in Rhino3D plugin development, refer to my previous blogs:

  • Rhino C# Development (I) : Get Visual Studio Wizard ready
  • Rhino C# Development (II) : HelloRhino
  • Rhino C# Development (III) : Add Winform UI to Rhino


    In this blog, I am going to show how to use the new RhinoCommon API to develop .net plugins for Rhino3D.

    • Download the new RhinoCommon Plug-in SDK:

      Project wizards for plug-ins and commands are ready for Visual Studio 2010, 2012 and 2013, both in C# and Vb.Net, and including in Ultimate, Professional, Premium, C# Express, Vb Express and Windows Desktop Express where available.

      Same as installing from VS ‘Extension Manager’. After installing the wizards with the Extensions Manager, when you create a new project in Visual Studio, set the Framework to 4.0 or above in order to see the Rhino plug-in in the list.

    image

  • Read the rest of this entry »

     
    2 Comments

    Posted by on June 10, 2014 in CAD, Dotnet/C#, Programming

     

    Tags: , , , , , , , , ,

    Rhino C# Development (III) : Add Winform UI to Rhino


    Rhino C# Development (I) : Get Visual Studio Wizard ready
    Rhino C# Development (II) : HelloRhino


    Now that we are able to talk with Rhino, let’s add our own UI to Rhino. In Rhino 5 with RhinoCommon SDK and Rhino_DotNet, you can easily add .net Winform User Control to Rhino.

    image

    Read the rest of this entry »

     
    4 Comments

    Posted by on May 9, 2013 in CAD, Dotnet/C#, Programming

     

    Tags: , , , , , , ,

    Rhino C# Development (II) : HelloRhino


    If you have not got Rhino Visual Studio working, see this post to get it done.

    1. In Visual Studio, create a new project, in the opened dialog, type “rhino” in the upper right filter field:

    image

    Read the rest of this entry »

     
    2 Comments

    Posted by on May 9, 2013 in CAD, Dotnet/C#, Programming

     

    Tags: , , , , , , , , ,

    Rhino C# Development (I) : Get Visual Studio Wizard ready


    1. Go to http://www.rhino3d.com/new/dev to download the SDK. Unzip the file, and you will see 4 files:

    image

    Read the rest of this entry »

     
    3 Comments

    Posted by on May 9, 2013 in CAD, CAX, Dotnet/C#, Programming

     

    Tags: , , , ,

    2012 in review


    The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.

    Here’s an excerpt:

    19,000 people fit into the new Barclays Center to see Jay-Z perform. This blog was viewed about 69,000 times in 2012. If it were a concert at the Barclays Center, it would take about 4 sold-out performances for that many people to see it.

    Click here to see the complete report.

     
    Leave a comment

    Posted by on January 9, 2013 in General

     

    Tags: , , , , , , , , , , , , , , , , , ,