19.15.1. Insert the Python Result Object

To insert a Python Result into the Outline:

  1. From the Solution object, insert a Python Result object from either the contextual (right-click) menu (Insert > Python Result) 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

  2. 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.

  3. Right-click the object and select Connect. Make sure that the Connected property of the object shows the value True.


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