Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • You might be able to add a GPMessage in the arcpy script and access it via gpMessages out variable. Not sure about it, but it would be the process I would start investigating. You would need to do more work parsing the messages, but it might facilitate communication between the two. Commented Jun 17, 2016 at 12:13
  • @Branco Thank you for this hint! It feels a little bit like a hack but it might work for simple return parameters. Commented Jun 20, 2016 at 7:45
  • @Branco Do you know how to add a message in the python code, so that it could be retrieved in the GPMessages variable in the C# code? I have tried {{arcpy.AddMessage}} but with no luck. Commented Jun 20, 2016 at 15:26
  • I am not really sure. I saw pieces here and there that say it may not actually support passing messages like that. I don't have a GIS system nearby to test with. It may be beneficial to take one of the methods in my answer and create a generic communication service for this and future projects. Commented Jun 20, 2016 at 16:26
  • I have spend all the day, finding a way to populate the IGPMessages object, but with no luck. After the call of InvokeModal the variable is always null. Commented Jun 21, 2016 at 12:31