Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel

[Imported] Hightlight database tree from Script

EcoStruxure Geo SCADA Expert Forum

Find out how SCADA systems and networks, like EcoStruxure Geo SCADA Expert, help industrial organizations maintaining efficiency, processing data for smarter decision making with IoT, RTU and PLC devices.

Janeway Janeway

[Imported] Hightlight database tree from Script

>>Message imported from previous forum - Category:Scripts and Tips<<
User: mchartrand, originally posted: 2018-10-23 17:22:17 Id:178
This is a re-posting from the obsoleted (October 2018) "Schneider Electric Telemetry & SCADA" forum.


(Thanks to geoffpatton for the suggestion to publish in this thread)
I need to find an object in the database, which is not a problem using: set obj = Server.LookUpObject(Id)
The challenge is how to highlight obj in the database tree in the current instance of ViewX from one script program?
It seems to be that the script world (Automation server, Mimic Scripts, COM, .NET) is separated from the current instance of ViewX ( the one that appears when the program is started).
There is an undocumented interface to ViewX, but this works only on created instances of ViewX.
Thank you for your help, Mauricio_**


What you've asked for isn't really supported within ViewX.
You may be able to get this to work using the undocumented ViewX COM interface, but it wouldn't be recommended.

There is a context menu option 'Locate in Database Explorer', is this not essentially what you're trying to do?