コード例 #1
0
    // You can override methods here to change the plug-in behavior on
    // loading and shut down, add options pages to the Rhino _Option command
    // and mantain plug-in wide options in a document.

    /// <summary>
    /// Override this function if you want to return a COM visible object to
    /// RhinoScript or an external application that is automating Rhino.
    /// </summary>
    public override object GetPlugInObject()
    {
      SampleRhinoObject rhinoObj = new SampleRhinoObject();
      return rhinoObj;
    }
コード例 #2
0
        // You can override methods here to change the plug-in behavior on
        // loading and shut down, add options pages to the Rhino _Option command
        // and mantain plug-in wide options in a document.

        /// <summary>
        /// Override this function if you want to return a COM visible object to
        /// RhinoScript or an external application that is automating Rhino.
        /// </summary>
        public override object GetPlugInObject()
        {
            SampleRhinoObject rhinoObj = new SampleRhinoObject();

            return(rhinoObj);
        }