Grasshopper

algorithmic modeling for Rhino

Hi all,

These two quick questions go out mostly to 3rd party developers or David.

1. Is there another way to force the re-culculation of a component without having to call ExpireSolution(True)?

2. Is it possible to disable the runitme warnings within a solution( so errors and warnings are ignored) for a few iterations of the DA? and how?

Thanks in advance,

M.

Views: 1110

Replies to This Discussion

1. No. Why would you want this?

2. All warnings everywhere? Or just the ones associated with your component?

--

David Rutten

david@mcneel.com

Tirol, Austria

Hi David,

For the first one just for the sakes of knowledge. And for the second one, I am focusing on my own component. Is that possible?

Runtime messages are stored inside the private m_messages field. You can clear this collection by calling the ClearRuntimeMessages() method. You should do this after the last possible message is recorded, so probably from within AfterSolveInstance()

--

David Rutten

david@mcneel.com

Tirol, Austria

Thanks David,

I tried this method, but I guess it makes sense to call it within the aftersolverinstance().

Thanks again,

M.

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service