Grasshopper

algorithmic modeling for Rhino

Hi,

I am generating NC text files from geometry, but I need to generate one file for each.

For now, I have a panel with a distinct path for each file I want to make, but I can't see how to make all the files, and not just one file.

The number of files can vary depending on the number of inputs, therefor I need something dynamic...

Any idea ?

Views: 873

Replies to This Discussion

Have you looked at System.IO classes?

File:

https://msdn.microsoft.com/en-us/library/system.io.file(v=vs.110).aspx

Directory:

https://msdn.microsoft.com/en-us/library/system.io.directory(v=vs.110).aspx

It should not be difficult if you want to write .txt files.

Hi Petras,

Thanks for the reply ; I don't code in VB, so I guess I'll stick with the ready-made one that Alex pointed out.

Cheers,

Hello

using text write from this post you can do the following

Alex, this works like a charm !

Thank-you so much !

Cheers,

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service