Grasshopper

algorithmic modeling for Rhino

Hello Andrew,

I am trying to figure out how to use the Batch Driver / Batch Variable Tool to run an analysis across a definition : changing an input sequentially and recording a specific output. Is that the right tool to do that? I do have the feeling it is but I cannot make it to work so far. Would you have an example or a video explaining how to set it up?

It's not in your 14 amazing things you can do with MH video, despite it sounds it is.

Thanks for your help,

Cheers!

Views: 973

Replies to This Discussion

Found it!

For the next one, you will find attached a screenshot on how to set it up. The batch driver should actually be placed before the definition you want to analyse.

For the exporter, I quickly made a VB.Net CSV Exporter :create a custom component and copy paste the code below. Any recompute of the definition will record X/Y Values in a text file specified.

Private Sub RunScript(ByVal Toggle As Object, ByVal Path As Object, ByVal XValue As String, ByVal YValue As String, ByRef A As Object) 
Dim strPath = Path & ".csv"
If(toggle) Then
Dim txt As String
txt = XValue & ";" & YValue & vbCrLf
Try
My.Computer.FileSystem.WriteAllText(strPath, txt, True)

Catch
End Try

End If
End Sub

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service