EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-12-13 10:39 PM . Last Modified: 2023-05-02 11:49 PM
Hello,
We're using python to add a note to a group instance in Geo SCADA using the .Net Client API.
as mentioned in the documentation
gObj = connection.GetObject("object fullname")
gObj.Notes = "sss" #AttributeError: 'NoneType' object has no attribute 'Notes'
but Notes did not work
Is there different way when using client API with python? How?
If yes, Where can we find it's documentation?
Appreciate any help
Thanks in advance
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-12-14 12:30 AM . Last Modified: 2022-12-14 12:35 AM
Only some properties such as id and FullName are immediate properties of the object. Others require:
P = connection.GetObject("Test")
P["NoteText"] = "test"
Documentation is installed on your PC - see start menu "Client API Guide".
Properties such as NoteText can be seen in the schema browser.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-12-14 12:30 AM . Last Modified: 2022-12-14 12:35 AM
Only some properties such as id and FullName are immediate properties of the object. Others require:
P = connection.GetObject("Test")
P["NoteText"] = "test"
Documentation is installed on your PC - see start menu "Client API Guide".
Properties such as NoteText can be seen in the schema browser.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-12-14 08:39 PM
NoneType is the Python equivalent of a null reference.
You have not provided a valid object reference.
You need to provide more of your code for us to tell you what you're doing wrong. If you do:
print connection
what do you get?
and then:
print gObj
Perhaps you just don't have a valid object called "object fullname"..
I actually thought that it was FindObject when passing the fullname, and GetObject when passing the ObjectId.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.