Grasshopper

algorithmic modeling for Rhino

Fill Panel if there is or not any object in the component

Hello,

I have several output (brep or geometries) and I'd like to connect to a Panel in order to have two kind of messages:

  1. If I have data in one of them > "You have one or more object in conflict. Please press "Bake Warnings"
  2. If I don't have any object > "Congratulation, you don't have any object in conflict"

I was trying with a VB parameter, but I don't know how to say that the data is void

If X= ...

Thank you

Views: 313

Replies to This Discussion

Are you saying if the list length is 1 or more then you want to display a warning and if there are no items then a different message is to be displayed?

if so try something like this:

thank you for your help. I used almost the same strategy.

In the VB I put If X is True Than A = 0...

Your VB component is redundant since there are only two options available. False (0) and True (1) therefore a list of two messages are numbered 0 and 1.

ohh, I didn't know that I could use the TRUE and FALSE values as 0 and 1. Thank you!

Hi User,
though I know the question has been answered, I thought I'd post that what I - internet self tought vb rookie - came up with. To save you some ms waiting :)
I trust I 'll be corrected by the pros if there's room for improvement.

Attachments:

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