1、引用rhino安装目录下的 RhinoComman.dll;
2、拖拽入grasshopper的插件,会自动拷贝到这个目录:C:\Users\Administrator\AppData\Roaming\Grasshopper\Libraries
3、在电池输出信息:AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "Please check input");
4、GH_Point 是对Rhino.Point3d的封装,使用.Value获得

5、Input可填写默认值:pManager.AddNumberParameter("Length", "Length", "Length", GH_ParamAccess.item, 1.0);
6、取输入值时,可以用参数的name获得:DA.GetData("Length", ref iLength);;
7、设置输出值时,可输出自定义类型的数据结构:

8、
Grasshopper与Rhino插件开发指南

本文详细介绍了如何使用Grasshopper进行Rhino插件开发,包括引用RhinoComman.dll,安装及配置插件,以及如何在代码中使用GH_Point和自定义数据结构进行输入输出等关键步骤。
1497





