algorithmic modeling for Rhino
Tags:
Dim crv As Oncurve
Dim mCurveObj As New List (Of MRhinoCurveObject)
'bake each curve
For Each crv In arrcrv
mCurveObj.Add(doc.AddCurveObject(crv))
doc.UnselectAll
Next
'////// Marc Hoppermann ///////////tweaked by Damien Almor ///////rewritten for curves by to]///////adapted by u]
If blnSave Then
For i As Int32 = 0 To arrcrv.Count - 1
MRhinoView.EnableDrawing(False)
'Dim crv As Oncurve
Dim mCurveObj As New List (Of MRhinoCurveObject)
'bake the curve
mCurveObj.Add(doc.AddCurveObject(arrcrv(i)))
doc.UnselectAll
'export curve in a file
app.RunScript("SelAll", 0)
app.RunScript("_-export " & sFileName & i & FileType & " _Enter", 0)
app.RunScript("_delete", 0)
MRhinoView.EnableDrawing(True)
MRhinoView.EnableDrawing(True)
print("exported to " & sFileName & i & FileType)
Next
Else print("inactive")
End If
I have used the nurbs curve tool to create a number of curves.
I want to export each curve seperately to an iges file.
I tried using your code above but it doesn't work. More specifically it creates the files with the correct file names but all the files contain the last curve from the ones mentioned above.
Any ideas?
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by