David,

I tried to use this new "Referenced Assemblies" feature. Somehow i
cannot really make it work properly. At first I thought I linked to
the external assembly successfully, in which only ca very simple class
is defined:

namespace ClassLibrary1
{
    public class Class1
    {
        private int index;

        public Class1(int i)
        {
            index = i;
        }

        public int increase(int i)
        {
            index += i;
            return index;
        }

        public int MyIndex
        {
            get
            {
                return index;
            }
        }
    }
}

Then, when I tried something more with Rhino_DotNet dll, like trying
to create On3dPoint objects. It start to get me errors: like this-->
---------------------------------------------------------------------------------------------------------------------------------------------------------
Script exception: Could not load file or assembly 'ClassLibrary1,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its
dependencies. The system cannot find the file specified.
---------------------------------------------------------------------------------------------------------------------------------------------------------

even though I restart the RHino, try my original simple assmebly
without Rhino DotNet SDK, this won't go away. Could you give me some
hint to fix this? Or, where should I pay attention to build my own
assemblies? I believe this "Reference Assemblies" can be very very
powerful if I can linked to, say, my customized class  for remeshing
and also make Grasshopper more complete.

Thanks again for your fantastic work!
Best, michael.



On Mar 28, 11:01 am, David Rutten <da...@mcneel.com> wrote:
> There's a new menu item called "Referenced Assemblies..." in the VB
> and C# components.
> You can add dlls here, which can then be used from within the Script
> component.
>
> There might be problems with compiling scripts with custom references,
> only time will tell.
>
> --
> David Rutten
> da...@mcneel.com
> Robert McNeel & Associates
>
> On Mar 28, 2:53 pm, Rajaa <ra...@mcneel.com> wrote:
>
> > David,
>
> > I'm not sure what you mean by
> > "Added Custom References Assemblies option to VB and C# script
> > components "
>
> > Can you elaborate a little?
>
> > On Mar 27, 11:26 am, David Rutten <da...@mcneel.com> wrote:
>
> > > Hi Group,
>
> > > Revision 9 is available for Download.
>
> > > Installer:http://download.mcneel.com/s3/mcneel/plug-in/beta/en/grasshopper_wip_...
> > > Zip 
> > > archive:http://download.mcneel.com/s3/mcneel/plug-in/beta/en/grasshopper_wip_...
>
> > > Changes and fixes:
> > > - Wire drawing for very short wires would sometimes crash, this has
> > > been fixed.
> > > - Loading of Script components would result in input parameters with
> > > no hints, this has been fixed.
> > > - Null insertion routines sometimes outputted nulls and sometimes
> > > empty branches, this is now consistent.
> > > - Cone component would flip the input frame, this has been fixed.
> > > - Many new components for Data tree manipulation.
> > > - Selected Preview On/Off toolbar buttons added.
> > > - Expression N would not remember the textual expression during Copy/
> > > Save, this has been fixed.
> > > - Added 'Ignore' option to a number of Assert dialogs to prevent
> > > frequent re-display.
> > > - Added Custom References Assemblies option to VB and C# script
> > > components (this is most likely quite buggy)
>
> > > Enjoy,
> > > David
>
> > > --
> > > David Rutten
> > > da...@mcneel.com
> > > Robert McNeel & Associates

Reply via email to