To insert a Python Result into the Outline:
From the Solution object, insert a Python Result object from either the contextual (right-click) menu ( > ) or selecting Python Result option on the Solution Context ribbon tab. The Python Result pane automatically includes template script content. The default content is based on the selected analysis type, as illustrated below

Write your desired scripts. When the text of the Python Result object is modified, the object becomes under-defined as the Python code is no longer connected to the callback. It is necessary to connect the code changes once completed or the code will not be executed. Note that as soon as you start editing the text in the editor, the Python Result object will become under-defined, and the Details pane will indicate that the Connected property of the Python Result object has become false. At this point, once you are finished making your code changes or use the right-click context menu on the object in the tree to Connect the Python Result object.
Right-click the object and select . Make sure that the Connected property of the object shows the value .

Note: If you make a change to the script once it is "connected" causes the object to become “undefined” (question mark icon). Select the option again to update the object.
