Ask our Experts
Didn't find what you are looking for? Ask our experts!
Launch of Consumer/Home Owner registration process! We are pleased to announce the commencement of the Consumer/Home Owner Registration Process on Community. Consumers/Home Owners may now proceed to register by clicking on Login/Register. The process is straightforward and designed to be completed in just a few steps.
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-12-12 08:31 PM
Hi,
I using the .NET API in C# and am trying to figure out a way of viewing all the configurable properties of a instance through the API rather than having to look at the ViewX client.
Cheers.
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: 2024-12-15 05:10 PM
Thanks, I have found a solution that works for me. Still using the simple namespace. You first get the class Definition of the DBOject, once you have that use the .ConfigurationProperties to list the config Properties. What caught me up is that I needed to iterate through all the Base Classes to see all the inherited properties aswell.
Here is an Example:
var currentClass = StationTest.ClassDefinition;
while (currentClass != null)
{
Console.WriteLine($"Class: {currentClass.DisplayName}");
foreach (var property in currentClass.ConfigurationProperties)
{
Console.WriteLine($" Config Property: {property.Name}");
}
foreach (var property in currentClass.DataProperties)
{
Console.WriteLine($" Data Property: {property.Name}");
}
foreach (var property in currentClass.DynamicProperties)
{
Console.WriteLine($" Dynamic Property: {property.Name}");
}
currentClass = currentClass.BaseClass;
}
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: 2024-12-15 03:28 PM . Last Modified: 2024-12-15 03:28 PM
Not aware of anything in the API, might well be something the Advanced bit though.
You could parse the schema for the properties, its XML but you'd need to follow it up the tree to get all the relevant properties.
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: 2024-12-15 05:10 PM
Thanks, I have found a solution that works for me. Still using the simple namespace. You first get the class Definition of the DBOject, once you have that use the .ConfigurationProperties to list the config Properties. What caught me up is that I needed to iterate through all the Base Classes to see all the inherited properties aswell.
Here is an Example:
var currentClass = StationTest.ClassDefinition;
while (currentClass != null)
{
Console.WriteLine($"Class: {currentClass.DisplayName}");
foreach (var property in currentClass.ConfigurationProperties)
{
Console.WriteLine($" Config Property: {property.Name}");
}
foreach (var property in currentClass.DataProperties)
{
Console.WriteLine($" Data Property: {property.Name}");
}
foreach (var property in currentClass.DynamicProperties)
{
Console.WriteLine($" Dynamic Property: {property.Name}");
}
currentClass = currentClass.BaseClass;
}
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
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.