AddRuntimeMessage within method C#

Dear forum,

I want to add a RuntimeMessage prompt within a method, however I get an error saying "

AddRuntimeMessage does not exist in the current context

even though I include the Grasshopper and Rhino namespaces.

Could someone help me out on this one?

Cheers,

AddRuntimeMessage should be accessible inside the Script_Instance class as long as it is call via an Instance.

maybe it s more clear with the “this” keyword, which is optional in this case:

if you want more feedback - please post a minimal code example that shows your error.

happy coding - kind regards -tom