Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Ask Me About Webinar: Data Center Assets - Modeling, Cooling, and CFD Simulation
Join our 30-minute expert session on July 10, 2025 (9:00 AM & 5:00 PM CET), to explore Digital Twins, cooling simulations, and IT infrastructure modeling. Learn how to boost resiliency and plan power capacity effectively. Register now to secure your spot!

Manipulating ViewX from .NET API

EcoStruxure Geo SCADA Expert Forum

Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • Manipulating ViewX from .NET API
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
sbeadle
Kirk sbeadle Kirk
310
AndrewScott
Admiral AndrewScott
101
BevanWeiss
Spock BevanWeiss
94
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
38
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to EcoStruxure Geo SCADA Expert Forum
Solved
AaronJust
Ensign AaronJust
Ensign

Posted: ‎2021-02-22 05:29 PM . Last Modified: ‎2023-05-03 12:05 AM

0 Likes
6
2762
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-02-22 05:29 PM . Last Modified: ‎2023-05-03 12:05 AM

Manipulating ViewX from .NET API

I have done work in the past manipulating mimics in ViewX using VBA.  For example:

Set objMimicApp = New ViewX.Application
Set objMimic = objMimicApp.Mimics.OpenFromServer(False, sServer, sFullName)
// Do Stuff Here
objMimic.Save
objMimic.Close

Is there a similar way to do things using the .NET API?

Related note, there is an executable provided with ClearSCADA called SaveAllDocuments.exe which I would assume does something similar (it is capable of opening and saving documents).

 

The problem that I'm looking to solve - if you delete and recreate an object that was referenced by a mimic, the new object won't appear to be referenced by that mimic until the mimic is opened and saved.  I want to programmatically open and resave all affected mimics by this sort of change.

Labels
  • Labels:
  • Scripting
  • ViewX
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
AaronJust
Ensign AaronJust
Ensign

Posted: ‎2021-02-22 07:37 PM . Last Modified: ‎2023-04-25 03:36 AM

0 Likes
5
2757
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-02-22 07:37 PM . Last Modified: ‎2023-04-25 03:36 AM

Solution that I've found so far is not using .NET API, it's following a similar instruction to here:

https://community.se.com/t5/Geo-SCADA-Knowledge-Base/Using-SOAP-interface-to-connect-to-Geo-SCADA/ba...

 

 

ViewX.Application theApp = new ViewX.Application();
ViewX.ServerDoc theMimic;
theMimic = theApp.Mimics.OpenFromServer(false, serverName, fullObjectName);
// Do Stuff Here

 

 

Using the COM reference in the C# Visual Studio project - "Serck Controls ViewX Object Library"

 

See Answer In Context

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 6
AaronJust
Ensign AaronJust
Ensign

Posted: ‎2021-02-22 07:37 PM . Last Modified: ‎2023-04-25 03:36 AM

0 Likes
5
2758
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-02-22 07:37 PM . Last Modified: ‎2023-04-25 03:36 AM

Solution that I've found so far is not using .NET API, it's following a similar instruction to here:

https://community.se.com/t5/Geo-SCADA-Knowledge-Base/Using-SOAP-interface-to-connect-to-Geo-SCADA/ba...

 

 

ViewX.Application theApp = new ViewX.Application();
ViewX.ServerDoc theMimic;
theMimic = theApp.Mimics.OpenFromServer(false, serverName, fullObjectName);
// Do Stuff Here

 

 

Using the COM reference in the C# Visual Studio project - "Serck Controls ViewX Object Library"

 

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

AdamWoodland
AdamWoodland Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2021-02-22 07:46 PM

In response to AaronJust
0 Likes
4
2751
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-02-22 07:46 PM

The .NET API is for server-side things, ViewX automation interface is for client-side.

 

Mimics are a client-side thing so the .NET API doesn't deal with it, as far as the server knows the mimic is just a binary blob (little more complex than that but this is the idea). Using ViewX.Application which manipulates ViewX is the way ahead for what you want to do.

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2021-02-23 02:57 PM

In response to AdamWoodland
0 Likes
3
2713
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-02-23 02:57 PM

I'm not sure that .NET API is for 'server-side'.. since it has the whole connection manager which is clearly targeted to client side usage.  And I believe the .NET API is utilised more and more within ViewX itself.

 

My understanding was that both the .NET API and the Automation Interface were both for client side database interactions.

 

The ViewX COM interface was never really supported as an actual programming interface for integrators / non-Schneider, and relies quite heavily on COM mechanisms to work.

My ideal dream would be if ViewX mimics (and in general all object configurations) were available as some kind of structured data format in .NET.  For mimics HTML/XML would be a nice fit...  with the schema available in some way.

Rockwell's FactoryTalk View stores displays in an XML format, which makes it handy to write some code to manipulate.  They keep making painful breaking changes to the schema, which makes it less fun.. but still makes it possible.


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

AdamWoodland
AdamWoodland Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2021-02-23 05:41 PM

In response to BevanWeiss
0 Likes
2
2708
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-02-23 05:41 PM

Poor choice of wording from me, server-side and client-side execution of action/manipulation is probably better terminology than "stuff"

 

Object configs (read and write) are a server-side function that clients proxy the request to the server, mimic displays are a client-side function that just fires the result to the server to store.

 

And totally with you regarding XML, you can actually read mimics using XML by using original WebX, just change ?applet to be ?content in the URL. Much faster to read mimics that way than with ViewX automation, just need to use ViewX automation to write any changes back. Ironically this also is an example where my comment above is not so correct, if the server is able to give us XML via WebX then its probably not as simple as "a binary blob at the server".

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2021-02-24 02:55 PM

In response to AdamWoodland
0 Likes
1
2681
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-02-24 02:55 PM

But it's not possible to obtain this XML from the .DocumentContent property on the mimic object itself (via .NET API or Automation Interface)?


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

AdamWoodland
AdamWoodland Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2021-02-24 03:09 PM

In response to BevanWeiss
0 Likes
0
2678
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-02-24 03:09 PM

Not aware of any other method to get that XML, which may be a problem depending on what the future holds for original WebX

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

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.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

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