Hi all,
i'm writing a code using WaterObject.NET librarie whose effect is to change the element symbology : the color of any the junction must be different, in relation of an other information (currently the kind of information is not important for me).
How to proceed? i must work with the. mdb file? Epanet file?
How to change a color only for a single junction?
any suggestion will be appreciated
thanks
giancarlo
giazax,
Where do you want to display the changed colors?
If you want to display a different color in stand-alone application then fastest way is to manually add the symbology. It's doable using WaterObjects.NET (WO) but there are several things involved to this and you have to open .wtg file (opening up .mdb will not work here) (Once you work with the database, you will be opening up that databasein stand-alone. You cannot control stand-alone using WO.)
If you want a different color in your application (your UI) then you have to set it up a mechanism yourself (based on the attributes from mdb file)
For simplicity use .mdb or .sqlite. (Note: With the version 08.11.04.50 for Water products, the database file is sqlite )
Hello Akshaya,
thanks for your response.
I want to develop an application with (C# - WaterObjects.NET) where you can change the colors of the junctions and then view the network modified (with the colors of the joints changed) with WaterGEMS.....so is this possible manipulating the .mdb model of the Hydraulic net?
thanks again
if you want to specify a particular color (in other words, need to work with symbology) then you HAVE to open the .wtg file, opening up the database is not sufficient. If you are in learning phase then try avoiding this.
If your WO tool will do some calc/math/whatever and updates fields/attributes then that's perfect because based on this field you can specify the symbology manually in Stand-Alone and symbology manager will take care of doing the color-coding. You just need to make sure you have the right data in the right field in your database.
In short, manipulate the database using WO tool and let Element Symbology do the color-coding.
HTH
Giancarlo,
Exactly what is it that you are trying to do? Within element symbology, you have a great deal of flexibility on what you color on and how it is displayed. Plus with User Data Extensions, you can color based on pretty much anything without needing to go to WaterObjects.
Tom
Hi Mr Walski,
i'm trying to display a district metering computation.
My idea is to associate for every junction a different zone based the district metering computation. (in the physical properties of the junction there is the item "zone") .
Then from Watergems i can associate (by hand) the color of the junction with a different zone.......so it would be possibile to visualize a district metering computation...........in a "user friendly manner"......
Any suggestion will be apprectiated
Hi Giancarlo,
You might find much of this functionality already in WaterCAD's/WaterGems's Pressure Zone Manager. This has the ability (with some tweaks) to automatically derive and color-code DMAs, as well as calculate the DMA flow balance.
Highlighting "District Metered Areas"
Associating Pressure Zones to DMA "Zones"
Using the Flow Balance Tool