AnsweredAssumed Answered

arcpy.CreateGraph_management - display?

Question asked by jlaurausgs on Aug 1, 2014
Latest reply on Jul 29, 2015 by stevebo@sf.nsw.gov.au

Via a Python toolbox I am calling arcpy.CreateGraph_management('default.tee', graphobj, 'temp'), where graphobj is a graph object created using the arcpy.Graph() class.

 

When I execute my tool, the create graph call is made without error, but a graph is never displayed.  Additionally, the graph does not appear in the Graph Manager.  Oddly, when I start to type the CreateGraph command into the command prompt, I see that 'temp' is available as a '.grf' file to fulfill the first argument.

 

The CreateGraph documentation suggests that the graph needs to be added to the 'host application', but does not provide any guidance.  How can a PythonToolbox create a graph and then display it?

Outcomes