C # Visio Two development of the electrical wiring outage analysis logic

Source: Internet
Author: User

Power outage analysis, as the name suggests, is the logical analysis of the drawings for power outages. In the electrified line, a line is from a power supply, connecting a lot of equipment, power outage analysis, there are two important roles: first, see whether the shape on the drawings are connected to the normal, and the second is to see which equipment has no electricity. By giving an electrically-powered device a color (such as green), a device that has no electricity, a color (such as red), you can clearly see the different power changes.

How do we perform a power outage analysis of an electrical wiring diagram drawn by Visio? Let's take a look at the related sequence logic first.

In the above sequence diagram, the main realization of this idea:

Power outage analysis is done by saving device-related connection information to the database, to the power supply (flying up) as the starting point, the equipment information for the topology analysis of the circuit, the analysis to save the database, and then obtain the topology model of the equipment, the color of the equipment to update the drawings (with electricity for green, no electricity for red), if the collision, The color of the selected switch is restored.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.