Yup, using OpenNurbs classes to work with geometry is much cleaner than using RhinoScript methods, which create actual objects. There's always a lot of overhead with this since it involves document management, undo-buffer recording, attribute creation, view redraw etc. etc. And, since Grasshopper solution are not solved 'inside' a command, there actually is no mechanism for undo, which means that any geometry you add in a Script component will be 'rogue'.
-- David Rutten Robert McNeel & Associates On Oct 23, 4:33 am, fraguada <[EMAIL PROTECTED]> wrote: > I suppose if one did it RhinoScript style it would be pretty messy no? > a lot of geometry being created (in rhino) every time the command was > called. > > On Oct 23, 2:27 am, visose <[EMAIL PROTECTED]> wrote: > > > also, you can bypass the 'crv' ioncurve and use 'x' directly. tomorrow > > i'll try to post a more decent example. > > > On Oct 23, 1:54 am, visose <[EMAIL PROTECTED]> wrote: > > > > OK sorry, I think i know how it works. > > > Just substitute the if statement with this line: > > > 'crv.GetNurbForm(nc(i))' if you want the code more simplified. > > > > On Oct 23, 1:40 am, visose <[EMAIL PROTECTED]> wrote: > > > > > Here's the code adjusted to grasshopper and striped out of all the > > > > error checking:http://grasshopper3d.googlegroups.com/web/edgesrf.jpg > > > > > There is an If statement (that error checks something) that apparently > > > > populates the 'nc' array. I have no clue of how it works. Maybe > > > > someone that actually knows what he is doing in .NET can explain it. > > > > > On Oct 23, 1:11 am, visose <[EMAIL PROTECTED]> wrote: > > > > > > I may be wrong but I think you can't access rhinoscript from > > > > > grasshopper. You need (apparently) the 'RhinoScript 4.0 Type Library'. > > > > > Nevertheless, he asked for the Edgesrf command in VB.NET so this link > > > > > should be more > > > > > appropriate:http://en.wiki.mcneel.com/default.aspx/McNeel/SdkEdgeSrf > > > > > > On Oct 22, 11:34 pm, fraguada <[EMAIL PROTECTED]> wrote: > > > > > > >http://en.wiki.mcneel.com/default.aspx/McNeel/RhinoScriptFromDotNet > > > > > > > This article discusses calling rhinoscript from a vb.net component. > > > > > > > Luis > > > > > > > On Oct 22, 10:44 pm, fabio <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi David, > > > > > > > I would like to call a rhino command that is not available in GH, > > > > > > > how > > > > > > > could I do for example an "EdgeSrf" from the VB.NET component? > > > > > > > Thank you very much
