Grasshopper

algorithmic modeling for Rhino

I'm using a VB script component to write text to several files on my hard drive. I would like to be able to say-

"If the file folder specified does not exist, create it and save the text files within it"

Is this possible?

Thanks

-Brian Harms

Views: 1398

Replies to This Discussion

If (Not System.IO.Directory.Exists(somedirectorypath)) Then

  System.IO.Directory.Create(somedirectorypath)

End If

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Beautiful.

how would i create a node that accepts a folder name created by a concatenate and uses this VB code?

Joe,

Have a look at the attached. The first C# component is not necessary but makes the def global.

Cheers,

M.

Attachments:

You are a digital ninja!

Works perfectly! Thanks!

bowling shaney!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service