One of plant is down for maintenance. Minor outage for Unit 1 of Tanjung Bin. So I decided to have a look at the Ealis-Eclipse link on any of the system from unit one. Decided to have a go at one of the major system, the Steam and Condensate flow of the Unit. To my surprise the thing is still working.
But upon running the link function saw 20% of the equipment from the drawing lit’s up [indication of equipment is under permit]. While it works it was hard to make sense of all the data, a thought comes to mind, I need to relate each isolation point to the actual target equipment. Decided to draw a line between the two object.
Fired up my trusty notepad and starts to edit the asp code that list all of the equipment under permit in relation to any system. Tried to the the minimal amount of coding to achieve this, managed to get it done and then edit the javascript side. Been quite some time I worked with javascript to handle svg element. Completely forgot how to even define a node Path. A quick refresher from Google, then managed to wrote something decent on the JS side.
The first try was not successful, only some item lits up, the relation line is not there. Something wrong with JS, I’ve defined an array in a wrong manner. Test again still no line. After putting some thoughts, realised that I need to have the permit-system xml from the asp code to be sorted in such a way that Permit Equipment appear first. Back to the asp code, add an extra line on the query, check the xml output, seems OK. Fire the link function again, this time line loads but it’s not having the right path. Check javascript again, realised I used the wrong coordinate point, fix that one up.
Try Again, . . . . success. Below is the fruits of my labor.

It seems to be working like how I envisioned it. But the problem is with system that has a lot of Permit tied to equipments in it, the whole thing looked messed up, real bad. So bad that the relation lines end up covering the actual drawing. That is for such system, but the one showed in the picture above is almost like what I had in mind. One can quickly know which equipment is being worked on.