Grasshopper

algorithmic modeling for Rhino

I would to start a heavy task via System.Threading.Tasks.Task.Start();

When this task ended, I want to refresh the preview because some geometries are updated.

When developing a custom GH component using C# (I mean, visual studio), there was ExpirePreview() that can do this. But I guess this function is a member function of custom GH component.

Is there a similar function that can be called from within a C# scripting component?

Views: 380

Replies to This Discussion

You cannot call it on the Component member field of the script class?

Oh, I found it under this.Component.! Nice!

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