Grasshopper

algorithmic modeling for Rhino

Hi all,

In Visual studio, when I add more than one output parameter I get the following error:

Output parameter chunk is missing. Archive is corrupt.

Am I missing something? Can anyone help?

Thank you in advance!

Code:

Protected Overrides Sub RegisterOutputParams(pManager As GH_Component.GH_OutputParamManager)
pManager.AddNumberParameter("Num", "Sbotmax", "Envelope maximum stress bottom net [N/mm2]", GH_ParamAccess.item)
'pManager.AddNumberParameter("Num", "Sbotmin", "Envelope minimum stress bottom net [N/mm2]", GH_ParamAccess.item)

End Sub

Views: 334

Replies to This Discussion

I suddenly thought of the answer. When adding more Outputs, my pre-existing GH model does not understand that the already present component has changed. 

The response from Grasshopper was not what I expected, because it is different than when removing an input parameter. In that case, the component colors red.

Yes, if you change the topology of a component then files written with the previous topology will probably fail to load. The component tries to deserialize itself from the GH file but can only find data for a single output.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service