[proFit-list] changing text in a text object programmatically

Chris Lee laserboy at fusemail.com
Fri Jun 13 06:33:29 CDT 2014


Hi All,

I’m making a movie of a graph. I calculate my data, put it in a window, graph the results. It all works fine (and creates lovely movies). Now, I want to put the parameters that are varying over the course of the movie in the graph.

I created two text boxes, named “psi_ID” and “delta_ID” Since I know their names, I should be able to call them directly.

I use: 

psi_string = "Psi = " + `j` + "°"
pf.SetShapeProperties(shape = "psi_ID", text = psi_string)


This fails with the error that it cannot convert parameter to desired type. I think this refers to the first argument. If I change it to 

pf.SetShapeProperties(name = "psi_ID", text = psi_string)

This fails with the error “No such shape” (I have checked the shape name)

Can anyone see what I am doing wrong here?

Cheers
Chris 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://quantum-soft.com/pipermail/profit-list_quantum-soft.com/attachments/20140613/6854cd10/attachment.html>


More information about the proFit-list mailing list