Grasshopper

algorithmic modeling for Rhino

Hello,

my try still now looks like that:

There has to be a better solution since it is also not working if the file still isnt saved.

Thanks in advance!

Views: 595

Attachments:

Replies to This Discussion

You're better of using string.IsNullOrEmpty() or string.IsNullOrWhitespace() instead of measuring the length of a string. That'll throw if the string is null.

The GH_Document has a Modified property, is that what you're looking for?

Hi David,

thanks!

the string.IsNullOrEmpty() method works for me, the GH_Document thing i still not understand  with the flags, ill have a closer look later.

May I ask how to update the solution steady so it changes the status once the document is saved without refreshing via f5?

Thanks a lot!

GH_Document.NewSolution()

Sorry David, i dont get how to use it:

dont know if i need to write something like myFunction.NewSolution(true); ?

but in this case what wouls be myFunction? I am still confused. Maybe you could enlighten me?

Thanks a lot!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service