generative modeling for Rhino
Permalink Reply by Damien Alomar on November 8, 2009 at 10:09am
Permalink Reply by to] on November 8, 2009 at 1:54pm
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
Permalink Reply by °[u on November 9, 2009 at 1:35pm
'////// 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
Permalink Reply by panagiotis felesakis on April 19, 2011 at 6:25am 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?
© 2012 Created by Scott Davidson.
Powered by