>>Message imported from previous forum - Category:ClearSCADA Software<<
User: florian, originally posted: 2018-10-24 20:58:13 Id:203
This is a re-posting from the obsoleted (October 2018) "Schneider Electric Telemetry & SCADA" forum.
------------------
**_AWoodland:_**
**_I found a generator over the weekend so I reused some old ClearSCADA code and generated the attached. Basically the schema hierarchy under CDBObject. SVG can be opened in a browser, no need for special software. All drivers installed except WITS._**
**_Hopefully it'll be useful should anyone need to explain the schema to anyone._**
------------------
bevanweiss:
Thanks Adam
Very cool. How was it generated? Did you just write some C# (or language of preference) to do recursion through the .NET API Classes?
From memory it was difficult (impossible) to do this with the old Automation Interface..
-----------
**_AWoodland:_**
**_Nothing very fancy, just parsed the XML tags from http://localhost/schema/cdbobject and a little bit of recursive programming, I'll clean the code up and post it. The original plan for the code was to generate a full structure including fields and methods that could be searched and driven down through... one day that might still happen but for now there is this SVG._**
**_The output jut got posted through http://jimblackler.net/treefun/index.html?data=army with some minor mods to make it wider, taller and more spacing._**
---------------------
**_AWoodland:_**
**_See attached for VB.NET code to generate the input to the tree generator at http://jimblackler.net/treefun/index.html_**
**_There are other generators out there that take a - rather than a space, should be obvious in the code where to change that or do a global find and replace on a space in the output._**
**_No warranty with this code, use at own risk, etc._**
--------------------
**_AWoodland:_**
**_Had more of a play, the attached might be useful for someone. Use Chrome or some HTML5 compliant browser (so pretty much anything but IE) as it uses HTML5 tags._**
**_Different from the SVG, creates a textual drill down from CDBObject for config, data and methods._**
**_Pretty horrid user experience with this to be honest, especially the colour picks, part of the whole generating these files is to play with the UI aspect._**
Attached file: (editor/2h/jhx5qb4jsltl.zip), CS2017R1 SVG Schema.zip File size: 11377
Attached file: (editor/3e/m273zag9602a.zip), XML Schema Walker.zip File size: 36500
Attached file: (editor/4y/6cipl3cn46jd.zip), CDBObject with Fields.zip File size: 70874
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!