Update:
When I try to get the property IsSelected from the “array”(?) by:
comp.properties['IsSelected'] = True
It generates error saying: “The array index must be integer”.
OK make sense, so I change the above code to get the index 0 property since it is where the IsSelected is property is:
comp.properties[0] = True
But it generates another error:
[quote]TypeError: can’t convert True to com.inductiveautomation.factorypmi.application.binding.DynamicPropertyDescriptor
at org.python.core.Py.TypeError(Py.java:235)
at org.python.core.Py.tojava(Py.java:515)
at org.python.core.PyArray.pyset(PyArray.java:1472)
at org.python.core.PySequence$1.setItem(PySequence.java:431)
at org.python.core.SequenceIndexDelegate.checkIdxAndSetItem(SequenceIndexDelegate.java:46)
at org.python.core.SequenceIndexDelegate.checkIdxAndSetItem(SequenceIndexDelegate.java:28)
at org.python.core.PySequence.seq___setitem__(PySequence.java:360)
at org.python.core.PySequence.__setitem__(PySequence.java:356)
at org.python.pycode._pyx348.f$0(<event:mouseEntered>:78)
at org.python.pycode._pyx348.call_function(<event:mouseEntered>)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1275)
at com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:623)
[/quote]
I run out of bullet here…