generative modeling for Rhino
Any idea how can i export points as a .csv file from grasshopper,python component!!!! . . .
Thanks,
Tags:
Permalink Reply by Mostapha Sadeghipour on February 14, 2013 at 1:31pm Mersi mard,
It's working. thanks a lot.
Permalink Reply by Felix R. on February 14, 2013 at 5:19pm There is also a build-in library in Python for that:
Permalink Reply by Toussaint Jimenez Rojas on February 14, 2013 at 5:56pm the CVS build-in Library doesnt work for IronPython wich is the version of python that run under Rhino 5
Permalink Reply by Kendra byrne on March 5, 2013 at 5:03pm True. Has anyone found a workaround in python for this? I'm trying to read a file line by line, essentially look up a line in a file by its line number.
Permalink Reply by Mostapha Sadeghipour on March 5, 2013 at 5:08pm is it a csv file? I haven't tested the code but something like this should work for you:
filename = open(yourFileAddress, 'r')
for lineNumber, line in enumerate(filename):
print lineNumeber #print the line number
print line.split(',') #print the line
filename.close()
© 2013 Created by Scott Davidson.
Powered by