Hi Rafi,
Idon't think you have the code I suggested in your example. I'll try to work with your code, but for now, here is the file I used to save NURBS curves.
Hello °[u ,
I'm sorry I was that Busy
but finally I tested your script. It seems to work, if I just take a look on the Rhino command Line. But afterward in the saving folder was just one file exported and inside was the whole group of curves. In th…
Hi Rafi,
Try the following.
Let me know if this works for you.
Private Sub RunScript(ByVal Crv As OnCurve, ByVal sFileName As String, ByVal blnSave As Boolean, ByRef A As Object)
'////// Marc Hoppermann ///////////
If blnSave Then
Dim nc As Ne…
Hi Rafi!
you must insert the for loop:
for i=0 to arrcrv.count-1
filename= filename&i
next
instead of: for each crv in arrcrv
now you will get a single file for each curve
If blnSave Then
For i As Int32 = 0 To arrcrv.Count - 1
MRhinoView.Enabl…
Thanks a lot!
I'm sorry that I just now writing back.
I tried your definition but it's still not what I'm actually need.
I want a VB script what's creating from each curve a separated file.
I will have some thousand curves in my definition what mu…
hi rafi
attached the rewritten ghx
you had to build a list of curves inside your vb to get them all exported
Dim crv As Oncurve
Dim mCurveObj As New List (Of MRhinoCurveObject)
'bake each curve
For Each crv In arrcrv
mCurveObj.Add(doc.AddCurveObje…
Rafi, sorry I've had no time to look at the curve problem yet - it's a tricky one and probably needs some time to figure the logics of it. Basically you need to look at a distance to point length and vector to curve direction relationship. Have you had a look at the grasshopper field definition?