Grasshopper

algorithmic modeling for Rhino

I know related issues have been discussed here many times, but I am not sure I understand how the update Honeybee component is supposed to work. I need to update an old Grasshopper file with components from the newest HB release. Do I have it correct that this is what "updateThisFile" is supposed to do? When I toggle this input to true, I get the following error:

Downloading the source code...
Runtime error (MissingMemberException): 'NoneType' object has no attribute 'Objects'
Traceback:
line 133, in getAllTheComponents, "<string>"
line 278, in main, "<string>"
line 289, in script

I have dozens of HB components in this file and it would be tedious to update them one by one. I dropped new Honeybee and Update Honeybee components on the canvas.  Any help would be much appreciated!

Views: 426

Replies are closed for this discussion.

Replies to This Discussion

Is it possible for you to share your file so I can use it as an example?

Attached is the original file with nothing updated. Thank you Mostapha!

Attachments:

Thanks! Can you also share the Rhino file so it runs for debugging?

Forgot

Rhino file

Attachments:

This was a special case that we were not catching in the component. I have updated the update components to handle cases like this. I'm recording a video and will upload your file which goes with the video soon.

I ended up writing a new component to update files. The original update components are meant to only be used by developers. Check the attached file. Once you set the updated to True it will update your file to the installed version of the plugins. If the component cannot be updated automatically the component will be marked in a red group with a note. In such cases an updated component will be inserted next to the old one so you only have to reconnect the wires for these cases. Here is an example:

Before:

after:

Attachments:

So coooool!!

-A.

Thank you Mostapha. I could not get it to work. Did you successfully use it on the GH file I posted?

Is the new component supposed to update Honeybee objects even though it is called Update Ladybug?

When I toggle to component to "true" I get a long list of errors similar to the below:

1. Failed to parse version and date from "Ladybug_Ladybug" component.

Yes. I did and it worked fine (attached!).

I added more details to the update component so we can understand what's happening in your case. Can you try it on your original file and let me know the results.

Attachments:

Hi Mostapha,

I bumped in some kind of a bug with this updater. Sometimes it works fine (and i like it very much) and sometimes it doesn't ... sucking all the memory of my computer and i need to kill Rhino. The update "never" ends and i can see how the memory use is increasing in the process. I don't know how to debug and report in a more useful way ...

Jus can say that it happened in 2 different files where i use the genCumulativeSkyMtx and related. I see the rhino screen updating repeatidly, but as i said, it doesn't stops.

If you have any ideas how can i be more helpfull with this one, let me know.

Thanks,

-A.

Hi Abraham,

Do you have the components running or is the Boolean set to False? From what your description it seems like the genCumulativeSkyMtx component is loading the sky matrix for each connected component. Can you set the run to False and run the update?

Mostapha

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