<br>I&#39;m trying to use python scripting to use the calculator.   I can&#39;t get the function and the results to display in the GUI.<br><br>I first used the trace capabilities to generate a function and was able to successfully generate my results on the GUI but when i shut down and restarted and run the scripts just generated from the trace it doesn&#39;t display the function in the<br>
Object inspector.<br><br><br>Here&#39;s a sample python script that i&#39;m using.<br><br>Calculator1 = Calculator()<br>Calculator1.AttributeMode = &#39;point_data&#39;<br><br># i&#39;d like to display this function in the GUI<br>
Calculator1.Function = &#39;Hdemag_Z*2&#39;<br><br><br>Calculator1.ScalarVariable = [&#39;Hdemag_X&#39;, &#39;Hdemag&#39;, &#39;0&#39;, &#39;Hdemag_Y&#39;, &#39;Hdemag&#39;, &#39;1&#39;, &#39;Hdemag_Z&#39;, &#39;Hdemag&#39;, &#39;2&#39;, &#39;M_X&#39;, &#39;M&#39;, &#39;0&#39;, &#39;M_Y&#39;, &#39;M&#39;, &#39;1&#39;, &#39;M_Z&#39;, &#39;M&#39;, &#39;2&#39;]<br>
Calculator1.CoordinateScalarVariable = [&#39;coordsX&#39;, &#39;0&#39;, &#39;coordsY&#39;, &#39;1&#39;, &#39;coordsZ&#39;, &#39;2&#39;]<br>Calculator1.CoordinateVectorVariable = [&#39;coords&#39;, &#39;0&#39;, &#39;1&#39;, &#39;2&#39;]<br>
Calculator1.VectorVariable = [&#39;Hdemag&#39;, &#39;Hdemag&#39;, &#39;0&#39;, &#39;1&#39;, &#39;2&#39;, &#39;M&#39;, &#39;M&#39;, &#39;0&#39;, &#39;1&#39;, &#39;2&#39;]<br>Calculator1.ResultArrayName = &#39;Heffective&#39;<br>
DataRepresentation5 = Show()<br>DataRepresentation4.Visibility = 1<br><br><br>Any help would be greatly appreciated.<br><br>