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: 2025-03-12 07:50 PM
Using the ViewX COM/Automation interface, is it possible to determine what script libraries a mimic's script is referencing?
I've found ViewX.Mimic.Script, .ScriptEnabled and .ScriptLanguage but no sign of what drives the list of referenced script libraries.
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: 2025-03-13 09:39 PM
There's a references method in the automation interface. I think you could potentially use that and then loop and find the type or class of the returned objects. I think .References returns all objects that refer to the object, so you'd probably need to go backwards and query the libraries, then for each library build a collection or array of mimics based on what's returned. The good news here is that the list will be significantly smaller.
Not a direct answer to your question, but there's a ListReferences utility on the GS GitHub that works pretty well, but you'll need to compile it. Might satisfy your use case.
https://github.com/GeoSCADA/Utilities-and-Examples/tree/main/ListReferences
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: 2025-03-13 02:54 AM
I don't think the automation interface allows the library refs to be enumerated or changed.
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: 2025-03-13 07:40 PM . Last Modified: 2025-03-13 07:53 PM
Could you do it from the other direction? List the script libraries and find their references?
Alternatively if you use the old WebX interface you can view the XML for the mimic and that includes the script reference, i.e.
Change ?applet to ?content in the URL, i.e. http://localhost:8080/db/Opening%20Page?applet to http://localhost:8080/db/Opening%20Page?content
Down the end of the XML you should see
<Script lang="{B54F3741-5B07-11CF-A4B0-00AA004A55E8}">
<Library name="Symbol Library.Test">Option Explicit Public Sub Test MsgBox "Help" End Sub</Library>
</Script>
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: 2025-03-13 09:39 PM
There's a references method in the automation interface. I think you could potentially use that and then loop and find the type or class of the returned objects. I think .References returns all objects that refer to the object, so you'd probably need to go backwards and query the libraries, then for each library build a collection or array of mimics based on what's returned. The good news here is that the list will be significantly smaller.
Not a direct answer to your question, but there's a ListReferences utility on the GS GitHub that works pretty well, but you'll need to compile it. Might satisfy your use case.
https://github.com/GeoSCADA/Utilities-and-Examples/tree/main/ListReferences
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: 2025-03-14 01:17 AM . Last Modified: 2025-03-17 01:49 AM
I wrote that one AdamTrent!!
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: 2025-03-17 03:48 PM
Cheers all! Not the one-API-fits-all answer I had hoped, but a few different options to investigate.
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.
With achievable small steps, users progress and continually feel satisfaction in task accomplishment.
Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.
of