Grasshopper

algorithmic modeling for Rhino

Hi everyone,

I'm trying to run an optimization for an Origami structure in Butterfly, in order to maximize wind speed beneath it. As Mostapha Roudsari said here, it is necessary to set interval -1 in the Butterfly_Solution component to visualize only the last value, during the simulation.

With this setting, the optimization through Galapagos seems to start in a good way, but after some iterations it stops due to this error on blockMesh component:

Runtime error (ArgumentException): Environment variable name or value is too long.
Traceback:
line 420, in __setitem__, "C:\Program Files\Rhinoceros 5 (64-bit)\Plug-ins\IronPython\Lib\os.py"
line 80, in getShellinit, "C:\Users\mmel\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\runmanager.py"
line 69, in containerId, "C:\Users\mmel\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\runmanager.py"
line 260, in _RunManager__command, "C:\Users\mmel\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\runmanager.py"
line 316, in run, "C:\Users\mmel\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\runmanager.py"
line 716, in command, "C:\Users\mmel\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\case.py"
line 748, in blockMesh, "C:\Users\mmel\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\case.py"
line 112, in getContainerId, "C:\Users\mmel\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\runmanager.py"
line 215, in command, "C:\Users\mmel\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\runmanager.py"
line 47, in script

Anyone know how to fix it?

Thank you

Views: 565

Attachments:

Replies are closed for this discussion.

Replies to This Discussion

Hi Federico,

This is a bug and this is why it is happening: I add the path to programs files and docker to os.environ every time that the analysis is ran without checking if it already exist and in your case after a couple of 100 times it end up being too long. I can fix it quickly today or tomorrow and then you can update it on your machine.

Mostapha

It should be fixed now. You need to:

1. Updated butterfly installation using the attached file. The last updated date should be 2017-05-11 09:44:00

2. Restart Rhino and Grasshopper. Closing or unloading Grasshopper won't reload the libraries.

3. Open your file and try again.

Attachments:

Hi Mostapha,

it seems ok, I am running the optimization with the updated version and the results seems good.

Thanks a lot!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2019   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service