> Rajaa
Thank you.  The samples help me a lot.

> David
> If you want to create a curve, you have to make a specific kind of
> curve, such as OnArc, OnLine, OnPolyline, OnNurbsCurve.... etc.

Now I understand it correctly.  Thank you.

Tomohiro Tachi


> OnCurve and OnSurface are abstract classes and they therefore have no
constructor
I see. Thank you very much.

On 2月4日, 午前7:41, David Rutten <[email protected]> wrote:
> Hi Tactom,
>
> OnCurve and OnSurface are abstract classes and they therefore have no
> constructor (well, things are slightly more complicated because the
> DotNET SDK is wrapped around the C++ SDK)
>
> If you want to create a curve, you have to make a specific kind of
> curve, such as OnArc, OnLine, OnPolyline, OnNurbsCurve.... etc.
>
> --
> David Rutten
> [email protected]
> Robert McNeel & Associates
>
> On Feb 3, 4:18 pm, tactom <[email protected]> wrote:
>
> > Thanks David,
>
> > The specific problem I was facing using C# script was that the
> > constructors of OnSurface and OnCurve were protected, and I could not
> > figure out how to create new instances.
>
> > However, I have just figured out that RhUtil was what I needed.
> > I will just try to learn more about the SDK...
>
> > Tomohiro Tachi
>
> > On 2月2日, 午後11:33, David Rutten <[email protected]> wrote:
>
> > > Hi Tomohiro,
>
> > > this is not possible now and it will not be possible in the future.
> > > You can use all the Grasshopper methods you want, but components are
> > > mostly defined in separate class libraries (dll, except we call them
> > > gha <GrassHopperAssembly>) and they are not within reach.
>
> > > At any rate, the components won't do you much good even if you could
> > > call their functions, because they depend on the Grasshopper data
> > > casting mechanisms which are incredibly complicated. These mechanisms
> > > make it easier to use if the front-end is visual, but if you're
> > > writing code in a strongly typed language (such as VB or C#) you're
> > > far better off with good old-fashioned DotNET function signatures.
>
> > > I can help you by adding utility functions to the Grasshopper SDK, but
> > > I think it makes more sense for us to add those utility functions
> > > directly to the Rhino SDK so it will benefit all plugin developers. If
> > > you have a specific question we can always immediately help you with
> > > that of course.
>
> > > --
> > > David Rutten
> > > [email protected]
> > > Robert McNeel & Associates
>
> > > On Feb 2, 5:37 am, tactom <[email protected]> wrote:
>
> > > > Could anyone tell me if there is a general way to call existing
> > > > components from VB or C# script?
> > > > I would like to refactorize my grasshopper spaghetti into a small
> > > > number of C# components, hopefully without directly calling OpenNurbs
> > > > methods.
>
> > > > If this is not possible, I would like it to be included into a Wish
> > > > List.
> > > > Thank you.
>
> > > > Tomohiro Tachi

Reply via email to