Grasshopper

algorithmic modeling for Rhino

Hi,

I need to get the content of Panel objects, which are feeded by another components :

            ...

            Dim panel As Special.GH_Panel = TryCast(objectInGroup, Special.GH_Panel)
            If panel IsNot Nothing Then

                 ...
            End If

In this code "panel.UserText" returns "Double click to edit panel content..."

Is it possible to evaluate the panel, or something like that, in order to get the actual content ?

Thank you for reading,

JLH

Views: 520

Replies to This Discussion

Try getting access to the panel's "VolatileData" - this will come out as a GH_Structure so you may need to extract "AllData" from that in order to get the list of input values themselves.

Thank you, it works fine !

              For Each ghString As GH_String In panel.VolatileData.AllData(True)
                Rhino.RhinoApp.WriteLine("ghString = " & ghString.ToString())
              Next

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service