Fabric-based power field intelligent mapping method

By using a Fabric engine-based intelligent drawing method, which employs dynamic topology drawing and automatic connection, the problem of low drawing intelligence in power system management software is solved, enabling rapid and intelligent drawing and efficient generation of electrical wiring diagrams.

CN116167117BActive Publication Date: 2026-06-02ANHUI ZHONGKE HENENG POWER TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ANHUI ZHONGKE HENENG POWER TECH CO LTD
Filing Date
2023-02-08
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

Existing power system management software has low intelligence and efficiency in drawing electrical wiring diagrams, relies on the user's familiarity with the power grid structure, and is prone to errors.

Method used

An intelligent drawing method based on the Fabric engine is adopted. Component parameters are collected through a visual drawing page to determine the relative hierarchical relationship of components. Dynamic topology drawing and anchor point generation are performed, and line connection relationships are automatically drawn. Connection paths are optimized using automatic snapping algorithms and path planning algorithms.

Benefits of technology

It enables intelligent drag-and-drop drawing of electrical wiring diagrams, improving the intelligence and convenience of user drawing, and can quickly generate electrical wiring diagrams of multiple different models, thus improving drawing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116167117B_ABST
    Figure CN116167117B_ABST
Patent Text Reader

Abstract

The application relates to intelligent drawing, in particular to a power field intelligent drawing method based on Fabric, which collects element parameters through a visual drawing page, and obtains the relative hierarchical relationship of each element based on the logical relationship and series-parallel connection relationship between the elements in the visual drawing page; the dynamic topology of all the elements is drawn according to the basic attributes, element parameters and relative hierarchical relationship of each element; the anchor points of each element are generated according to the coordinate information and relative position relationship of each element, and the line connection relationship between the elements is automatically drawn according to the relative hierarchical relationship; the technical scheme provided by the application can effectively overcome the defects of low intelligent degree and low efficiency of power field drawing in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to intelligent mapping, and more specifically to an intelligent mapping method for the power industry based on Fabric. Background Technology

[0002] For power plants and mines, system network wiring diagrams generally include the main wiring diagram, generator-transformer units, substations, and plant auxiliary power, etc. They are mainly composed of external power sources, generator-transformer units, main transformers, overhead lines, high and low voltage cables, distribution transformers, motors, and other electrical equipment components. Electrical wiring diagrams are a crucial part of the entire power supply network, and the ability to quickly and intelligently draw and label them is an important indicator of a power supply and distribution system.

[0003] Currently, most power system management software draws electrical wiring diagrams by clicking or dragging various equipment components. This method relies heavily on the user's familiarity with the power grid structure, and the drawing process is inefficient and prone to errors, seriously affecting the efficiency of engineering technicians when drawing power system-related diagrams.

[0004] Online real-time web drawing technology based on the Fabric engine is the latest technology used in web drawing. It includes drawing simple graphics such as circles, rectangles, and triangles, as well as drawing complex graphics such as generator-transformer units, combined switches, and load centers in power systems. The Fabric engine-based implementation can achieve both drag-and-drop drawing of individual components with fixed anchor points, and connection of the entire system through wiring between drawn components. Simultaneously, it can achieve rapid and intelligent batch drawing of components such as generator-transformer units, main substations, distribution substations, and underground central substations, enabling the drawing of electrical wiring diagrams for the entire power system. Summary of the Invention

[0005] (a) Technical problems to be solved

[0006] In view of the above-mentioned shortcomings of the existing technology, the present invention provides a Fabric-based intelligent mapping method for the power field, which can effectively overcome the defects of low intelligence and low efficiency of existing power field mapping.

[0007] (II) Technical Solution

[0008] To achieve the above objectives, the present invention provides the following technical solution:

[0009] A Fabric-based intelligent mapping method for the power sector includes the following steps:

[0010] S1. Collect component parameters through the visual drawing page, and obtain the relative hierarchical relationship of each component based on the logical relationship and series-parallel relationship between each component in the visual drawing page;

[0011] S2. Based on the basic attributes, component parameters, and relative hierarchical relationships of each component, perform dynamic topology drawing for all components;

[0012] S3. Based on the coordinate information and relative positional relationship of each component, generate anchor points for each component, and automatically draw the line connection relationship between each component according to the relative hierarchical relationship.

[0013] Preferably, in S2, dynamic topology drawing is performed on all components based on their basic attributes, component parameters, and relative hierarchical relationships, including:

[0014] When drawing, click to pick the initial drawing coordinates (x, y). Based on the default block width and height of each component, calculate the starting drawing coordinates (x, y) of each component in the Fabric canvas. n y n ), and the center position coordinates (x, y) of each component. n ',y n ');

[0015] According to the starting drawing coordinates (x) of each component n y n Draw each component in the Fabric canvas and record the coordinate information of each component into the properties of the already drawn block.

[0016] Preferably, in step S3, anchor points for each component are generated based on their coordinate information and relative positional relationships, and the wiring connections between components are automatically drawn according to their relative hierarchical relationships, including:

[0017] For dynamic anchor point generation during one-time drawing, the anchor point position of each element is dynamically calculated based on the coordinate information and relative position relationship of each element. The anchor points of each element are generated based on the anchor point positions, and the line connection relationship between each element is automatically drawn according to the relative hierarchical relationship.

[0018] The anchor point positions of each component are fixed.

[0019] Preferably, in step S3, anchor points for each component are generated based on their coordinate information and relative positional relationships, and the wiring connections between components are automatically drawn according to their relative hierarchical relationships, including:

[0020] For dynamic anchor point generation when drawing dragged components, the starting drawing coordinates (x, y, y) of each component are used. n y nThe system compares the components to determine their quadrant relationships, generates anchor points for each component based on the nearest neighbor principle, and automatically draws the line connections between components according to their relative hierarchical relationships.

[0021] The quadrant relationship is based on the center position coordinates (x, y) of each element. n ',y n The origin is used to determine the quadrant of the pick point, and the nearest neighbor principle is to generate anchor points on the left / right side of the connecting element.

[0022] Preferably, the step involves using the initial drawing coordinates (x, y) of each element. n y n The comparison is performed to determine the quadrant relationship between each component, and the anchor points of each component are generated based on the nearest neighbor principle, including:

[0023] When the start element is above the end element, regardless of which quadrant the pick-up points of the start and end elements are in, the connection is made from the bottom of the start element to the top of the end element.

[0024] When the start element is below the end element, regardless of which quadrant the pick-up points of the start and end elements are in, the connection is made from the top of the start element to the bottom of the end element.

[0025] Preferably, in step S3, anchor points for each element are generated based on their coordinate information and relative positional relationships, including:

[0026] During the process of generating anchor points for each component, scaling, rotation, and mirroring operations on the components are supported.

[0027] Preferably, in S3, the circuit connection relationships between components are automatically drawn according to their relative hierarchical relationship, including:

[0028] An automatic adsorption algorithm is used to obtain a set of adsorption anchor points, and an automatic path planning algorithm is used to plan the connection paths between each component in order to draw the line connection relationship between each component.

[0029] Preferably, obtaining the set of adsorption anchor points using an automatic adsorption algorithm includes:

[0030] Based on the relative hierarchical relationship and component type, the components are classified into basic data categories. After the data classification is completed, different data processing methods are applied to the data in different regions.

[0031] Calculate the distance between each element and perform preliminary screening to control the distance between adsorbable elements within a certain distance threshold range;

[0032] The coordinates of the anchor points of the adsorbable elements are accurately calculated, and a specific set of anchor points is obtained.

[0033] Based on the data classification results, the distance between adsorbable elements that do not have accurate anchor point coordinates is calculated, and a set of indeterminate anchor points is obtained.

[0034] By comparing the determined anchor point set and the indeterminate anchor point set, the final set of adsorption anchor points is obtained, and the set of adsorption anchor points is verified.

[0035] Preferably, the precise calculation of the anchor point coordinates of the adsorbable element and the acquisition of a defined set of anchor points includes:

[0036] The anchor point information of all anchor points of the adsorbable element is constructed into a ternary array [m x ,m y ,m t The anchor point information of the currently adsorbable element is [m]. xt ,m yt ,m tt ], where m x m y Indicates the anchor point coordinates, m t Indicates the type of absorbable element to which the anchor point belongs, m xt m yt This represents the coordinates of the anchor point of the currently adsorbable element, m. tt Indicates the type of element that can be adsorbed;

[0037] Set the maximum distance threshold d between anchor points max When the distance d between anchor points satisfies d ≤ d max At that time, the anchor point is stored in the set D of anchor points that meet the distance requirements. s :

[0038]

[0039] According to the relative hierarchical relationship of each component, from the anchor point set D s The anchor points with the highest priority are selected from the data to form the anchor point set D. mp :

[0040] D mp =Max_Priority(D s );

[0041] From the anchor point set D mp The nearest anchor points are selected from the data to form a definite set of anchor points D. r :

[0042] D r =Max(D mp );

[0043] The step of calculating the distance between absorbable elements that do not have accurate anchor point coordinates based on the data classification results, and obtaining a set of indeterminate anchor points, includes:

[0044]

[0045] D mus =Max(D us );

[0046] Among them, D mus Let X be a set of non-deterministic anchor points. c Y c W represents the coordinates of the center point of the busbar. c Indicates the busbar width;

[0047] The process of obtaining the final set of adsorption anchor points by comparing the determined set of anchor points and the indeterminate set of anchor points, and then verifying the set of adsorption anchor points, includes:

[0048] D fr =Max(D r D mus );

[0049] Among them, D fr For the set of adsorption anchor points;

[0050] Obtain the final set of adsorption anchor points D fr Then, the principles of anchor point uniqueness and component uniqueness are used to analyze the set of adsorption anchor points D. fr Perform verification.

[0051] Preferably, the method of using an automatic path planning algorithm to plan the connection paths between components includes:

[0052] Dynamically calculate the distance between target locations selected by the user based on their coordinates (OP).

[0053]

[0054] Where OP is the distance between target position P1(x1, y1) and target position P2(x2, y2);

[0055] Calculate the set of sub-components N relative to the target position based on the total set of components in the drawing. Calculate the set of distances NP between all components in sub-component set N and the target position. Calculate the maximum value NO of the distance OP between the distance set NP and the target position.

[0056] NO = max 0<i<n |OP-NP[i]|;

[0057] Where n is the number of elements in the distance set NP;

[0058] The number of inflection points is calculated by combining the x-coordinate of the target location and the maximum value NO, and the connection paths between each component are planned based on the number of inflection points.

[0059] (III) Beneficial Effects

[0060] Compared with existing technologies, the intelligent drawing method for the power field based on Fabric provided by this invention, with the support of visualized drawing management, dynamic anchor point generation, comprehensive management scheme for supporting components, and various intelligent algorithms, can realize one-time intelligent drag-and-drop drawing of electrical wiring diagrams. Based on dynamic anchor point generation and comprehensive management scheme for supporting components, it improves the intelligence and convenience of users when drawing. At the same time, it can add any equipment components as needed, and can quickly complete the design and calculation of power systems, thereby quickly generating electrical wiring diagrams of multiple different models and improving the efficiency of users when drawing. Attached Figure Description

[0061] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0062] Figure 1 This is a schematic diagram of the process of the present invention;

[0063] Figure 2 This is a diagram of the interface of the visual drawing page in this invention;

[0064] Figure 3 This is a schematic diagram illustrating the quadrant relationship between dragged elements during the drawing process of this invention.

[0065] Figure 4 This is a schematic diagram illustrating the wiring connections between the various components in this invention;

[0066] Figure 5 This is a diagram illustrating the effect of dynamically drawing the topology of all components within a visual drawing page in this invention.

[0067] Figure 6 This is a diagram illustrating the effect of generating anchor points for each element and drawing line connections based on the quadrant relationship between the elements during the drag-and-drop element drawing process in this invention. Detailed Implementation

[0068] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0069] A Fabric-based intelligent mapping method for the power sector, such as... Figure 1 As shown, ① through a visual drawing page (such as...) Figure 2 (As shown) Collect component parameters and obtain the relative hierarchical relationship of each component based on the logical relationship and series-parallel relationship between each component in the visualization drawing page.

[0070] 1) Collect component parameters through a visual drawing page

[0071] The component parameter collection is mainly for users through the visual drawing page. The collected component parameters mainly include those of ground power supply, ground main transformer, ground auxiliary transformer, ground motor, and high-voltage cable. Users fill in the parameter information such as voltage, main transformer, motor, and switch according to the actual drawing requirements. The collected component parameters are serialized and stored in an independent list array. Finally, they are grouped and concatenated in JSON format for storage and transmission.

[0072] 2) Obtain the relative hierarchical relationship of each element based on the logical and parallel relationships between elements in the visual drawing page.

[0073] The component relationship management in this invention mainly includes:

[0074] A. Utilize the inherent logical relationships between components such as power supplies, transformers, switches, and load devices in the visualization drawing page (power supply is the starting component, i.e., the top-level node; only load devices can be connected below the switch; low-voltage devices cannot be connected below the switch sub-nodes, etc.) to determine the parent-child relationships between each component.

[0075] B. Utilize the series and parallel relationships of each switch element in the visualization drawing page (all switches are connected through the bus, that is, the bus switches are siblings, and multiple transformers connected in parallel are also siblings), and determine the sibling relationship between each element through the series and parallel relationships in the page.

[0076] After determining the relative hierarchical relationship of each component, the relative hierarchical relationship of each component is transmitted in JSON format using a serialization method.

[0077] ② Based on the basic attributes, component parameters, and relative hierarchical relationships of each component, perform dynamic topology drawing for all components, specifically including:

[0078] When drawing, click to pick the initial drawing coordinates (x, y). Based on the default block width and height of each component, calculate the starting drawing coordinates (x, y) of each component in the Fabric canvas. n y n ), and the center position coordinates (x, y) of each component. n ',y n ');

[0079] According to the starting drawing coordinates (x) of each component n y n Draw each component in the Fabric canvas and record the coordinate information of each component into the properties of the already drawn block.

[0080] ③ Based on the coordinate information and relative positional relationship of each component, generate anchor points for each component, and automatically draw the line connection relationship between each component according to the relative hierarchy (e.g., Figure 4 As shown), specifically including:

[0081] 1) For dynamic anchor point generation during one-time drawing, the anchor point position of each element is dynamically calculated based on the coordinate information and relative position relationship of each element. The anchor points of each element are generated based on the anchor point positions, and the line connection relationship between each element is automatically drawn according to the relative hierarchical relationship.

[0082] The anchor points of each component are fixed. For example, the anchor point of the power supply component is fixed at the bottom of the component, the generator is fixed at the top of the component, the motor is fixed in the four directions of the component (up, down, left, and right), the anchor point of the double-winding transformer is fixed at the top and bottom of the component, the anchor point of the three-winding split transformer is fixed at the top and bottom of the component (left and right), and the anchor point of the switch is fixed at the top and bottom of the component, etc.

[0083] If two components are creating anchor points, and the starting component is located directly above the ending component, the number and position of anchor points to be created for the starting and ending components are calculated according to the component anchor point creation rules (the anchor point of the starting component is created directly below the starting component, and the anchor point of the ending component is created directly above the ending component). The dynamic creation scheme for each component anchor point is similar: the anchor point position is calculated based on the coordinate information and relative position relationship of the two connecting components, and the connection anchor point automatically draws the line connection relationship between the two components.

[0084] For example, the anchor point coordinates of a two-winding transformer: the top anchor point is... ′

[0085] y = y1,

[0086] Bottom anchor point is y′=y1-2r, x1, y1 are the initial drawing coordinates of the element; the anchor point coordinates of the three-winding split transformer: the top anchor point is y′=y2, the bottom left anchor point is y′=y²-2r, the bottom right anchor point is y′=y2-2r, where x2 and y2 are the initial drawing coordinates of the element, and r is the radius of the circle.

[0087] 2) For dynamic anchor point generation when drawing dragged components, the starting drawing coordinates (x, y, y) of each component are used. n y n The system compares the components to determine their quadrant relationships, generates anchor points for each component based on the nearest neighbor principle, and automatically draws the line connections between components according to their relative hierarchical relationships.

[0088] The quadrant relationship is based on the center position coordinates (x, y) of each element. n ',y n ') determines the quadrant in which the picking point is located (e.g., ') is the origin. Figure 3 As shown in the figure, the nearest neighbor principle is to generate anchor points on the left / right side of the connecting element that is close to the connected element.

[0089] During the process of creating dynamic anchor points by dragging and dropping elements, the initial drawing coordinates (x, y, y) of each element are used. n y n The comparison is performed to determine the quadrant relationship between each component, and the anchor points of each component are generated based on the nearest neighbor principle, including:

[0090] When the start element is above the end element, regardless of which quadrant the pick-up points of the start and end elements are in, the connection is made from the bottom of the start element to the top of the end element.

[0091] When the start element is located below the end element, regardless of which quadrant the pickup points of the start and end elements are in, the connection is made from the top of the start element to the bottom of the end element, as shown in the table below:

[0092] Table 1. Anchor point positions determined based on the initial drawing coordinates of each component.

[0093]

[0094] The integrated management scheme for supporting components in this invention mainly includes:

[0095] 1) Based on the coordinate information and relative positional relationships of each component, generate anchor points for each component, including:

[0096] During the process of generating anchor points for each component, scaling, rotation, and mirroring operations on the components are supported.

[0097] The scaling is mainly performed with the center point of the element as the origin. The circle is enlarged by a factor of k based on the original radius (r1 = k * r0), and the line segment is stretched based on the original length, that is, the coordinates of the endpoint position are changed (l1 = k * l0).

[0098] Rotation operation involves changing the coordinate position based on the current coordinates, with a rotation angle θ (90°, 180°, 270°, 360°). The relationship between the initial drawing coordinates and the rotated coordinates of a component is: x′=x n *cosθ+y n *sinθ、y′=y n *cosθ-x n *sinθ, the system is designed to rotate 90° clockwise each time, and returns to the original position after 4 rotations;

[0099] Mirroring is a horizontal mirroring operation centered on the origin. It is divided into forward mirroring and backward mirroring. The coordinate transformation for forward mirroring is: x = width - x0 - 1, y = y0. The coordinate transformation for backward mirroring is: x0 = width - x - 1, y0 = y. Where width is the length of the original line segment or the radius of the circle. After the same element undergoes two consecutive mirroring operations, it returns to its original state.

[0100] 2) Automatically draw the wiring connections between components according to their relative hierarchical relationships, including:

[0101] An automatic adsorption algorithm is used to obtain a set of adsorption anchor points, and an automatic path planning algorithm is used to plan the connection paths between each component in order to draw the line connection relationship between each component.

[0102] A. Obtain the set of adsorption anchor points using an automatic adsorption algorithm, including:

[0103] Based on the relative hierarchical relationship and component type, the most basic data classification is performed on each component. After the data classification is completed, different data processing methods are used for data in different regions (which greatly facilitates subsequent data search and solves relationship range and relationship loop problems).

[0104] Calculate the distance between each element and perform preliminary screening to control the distance between adsorbable elements within a certain distance threshold range (which can effectively avoid the calculation of a lot of invalid data);

[0105] The coordinates of the anchor points of the adsorbable elements are accurately calculated, and a specific set of anchor points is obtained.

[0106] Based on the data classification results, the distance between adsorbable elements that do not have accurate anchor point coordinates is calculated, and a set of indeterminate anchor points is obtained.

[0107] By comparing the determined anchor point set and the indeterminate anchor point set, the final set of adsorption anchor points is obtained, and the set of adsorption anchor points is verified.

[0108] a. Accurately calculate the coordinates of the anchor points of the adsorbable elements and obtain a defined set of anchor points, including:

[0109] The anchor point information of all anchor points of the adsorbable element is constructed into a ternary array [m x ,m y ,m t The anchor point information of the currently adsorbable element is [m]. xt ,m yt ,m tt ], where m x m y Indicates the anchor point coordinates, m t Indicates the type of absorbable element to which the anchor point belongs, m xt m yt This represents the coordinates of the anchor point of the currently adsorbable element, m. tt Indicates the type of element that can be adsorbed;

[0110] Set the maximum distance threshold d between anchor points max When the distance d between anchor points satisfies d ≤ d max At that time, the anchor point is stored in the set D of anchor points that meet the distance requirements. s :

[0111]

[0112] According to the relative hierarchical relationship of each component, from the anchor point set D s The anchor points with the highest priority are selected from the data to form the anchor point set D. mp :

[0113] D mp =Max_Priority(D s );

[0114] From the anchor point set D mp The nearest anchor points are selected from the data to form a definite set of anchor points D. r :

[0115] D r =Max(D mp ).

[0116] b. Based on the data classification results, calculate the distances between absorbable elements that do not have accurate anchor point coordinates, and obtain a set of indeterminate anchor points, including:

[0117]

[0118] D mus =Max(D us );

[0119] Among them, D mus Let X be a set of non-deterministic anchor points. c Y c W represents the coordinates of the center point of the busbar. c Indicates the width of the busbar.

[0120] c. By comparing the determined anchor point set and the indeterminate anchor point set, the final set of adsorption anchor points is obtained (this process effectively solves the relationship range problem), and the set of adsorption anchor points is verified, including:

[0121] D fr =Max(D r D mus );

[0122] Among them, D fr For the set of adsorption anchor points;

[0123] Obtain the final set of adsorption anchor points D fr Then, the principles of anchor point uniqueness and component uniqueness are used to analyze the set of adsorption anchor points D. fr Perform verification (which can effectively avoid relationship loop problems).

[0124] B. Utilize automatic path planning algorithms to plan the connection paths between various components, including:

[0125] Dynamically calculate the distance between target locations selected by the user based on their coordinates (OP).

[0126]

[0127] Where OP is the distance between target position P1(x1, y1) and target position P2(x2, y2);

[0128] Calculate the set of sub-components N relative to the target position based on the total set of components in the drawing. Calculate the set of distances NP between all components in sub-component set N and the target position. Calculate the maximum value NO of the distance OP between the distance set NP and the target position.

[0129] NO = max 0<i<n |OP-NP[i]|;

[0130] Where n is the number of elements in the distance set NP;

[0131] The number of inflection points is calculated by combining the x-coordinate of the target location and the maximum value NO, and the connection paths between each component are planned based on the number of inflection points.

[0132] The aforementioned automatic path planning algorithm provides users with easy-to-understand L-shaped connections, Z-shaped connections, and automatic obstacle avoidance functions, effectively mitigating the uncertainty factors in line connections caused by the randomness of user connections.

[0133] 3) When a component undergoes a graphical transformation, we expect the component labeling to follow the transformation. Each element in the entire electrical wiring diagram has its own matrix to represent the spatial transformations it undergoes:

[0134]

[0135] If the coordinates of an element are (x, y), then its new coordinates after transformation are:

[0136]

[0137] The transformation matrices for element scaling, translation, and rotation are as follows:

[0138]

[0139] The transformation matrix for the mirror image of an element is as follows (k is the slope of the mirror symmetry axis, default k=1):

[0140]

[0141] When the components in a diagram undergo graphical transformations, we expect the component labels to transform accordingly. However, we cannot group them as a single unit because we want the component labels to transform independently. For example, if the matrix of a component is A, and the corresponding component label matrix is ​​B, and we consider the existence of a matrix that defines the transformation from A to B, denoted as X, then:

[0142] A*X=B;

[0143] A -1 *A*X=A -1 *B;

[0144] X = A -1 *B;

[0145] When A and B are bound together for a synchronous transformation, the solution is to solve for matrix X. After the relationship between A and B is bound, when A changes, B after the transformation can be obtained according to the formula A*X = B; when B changes, the relationship between A and B is rebounded.

[0146] The technical solution of this application allows users to input component parameters through a visual drawing page, intelligently analyze the relative hierarchical relationships of each component in the electrical wiring diagram, and automatically draw the electrical wiring diagram intelligently. At the same time, based on the dynamic anchor point generation scheme, it supports the dynamic creation of anchor points when the user connects cables, and supports the dynamic recalculation of anchor point positions when components are scaled, rotated, and mirrored. Furthermore, it utilizes automatic snapping algorithms, automatic path planning algorithms, matrix adjoint transformations, etc., to automatically generate the electrical wiring diagram of the power system according to the topological and positional relationships of the components through the Fabric intelligent drawing engine.

[0147] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions will not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A Fabric-based intelligent mapping method for the power sector, characterized in that: Includes the following steps: S1. Collect component parameters through the visual drawing page, and obtain the relative hierarchical relationship of each component based on the logical relationship and series-parallel relationship between each component in the visual drawing page; S2. Based on the basic attributes, component parameters, and relative hierarchical relationships of each component, perform dynamic topology drawing for all components; S3. Based on the coordinate information and relative positional relationship of each component, generate the anchor points of each component, and automatically draw the line connection relationship between each component according to the relative hierarchical relationship. S3 automatically draws the circuit connection relationships between components according to their relative hierarchical relationship, including: An automatic adsorption algorithm is used to obtain a set of adsorption anchor points, and an automatic path planning algorithm is used to plan the connection paths between each component in order to draw the line connection relationship between each component. The method of obtaining the set of adsorption anchor points using an automatic adsorption algorithm includes: Based on the relative hierarchical relationship and component type, the components are classified into basic data categories. After the data classification is completed, different data processing methods are applied to the data in different regions. Calculate the distance between each element and perform preliminary screening to control the distance between adsorbable elements within a certain distance threshold range; The coordinates of the anchor points of the adsorbable elements are accurately calculated, and a specific set of anchor points is obtained. Based on the data classification results, the distance between adsorbable elements that do not have accurate anchor point coordinates is calculated, and a set of indeterminate anchor points is obtained. By comparing the determined anchor point set and the indeterminate anchor point set, the final set of adsorption anchor points is obtained, and the set of adsorption anchor points is verified. The precise calculation of the anchor point coordinates of the adsorbable element, and the acquisition of a defined set of anchor points, includes: The anchor point information of all anchor points of the adsorbable element is constructed into a ternary array. , , The current anchor point information for the adsorbable element is []. , , ],in Indicates the anchor point coordinates. Indicates the type of absorbable element to which the anchor point belongs. This indicates the coordinates of the anchor point of the currently adsorbable element. Indicates the type of element that can be adsorbed; Set the maximum distance threshold between anchor points When the distance d between anchor points satisfies At that time, the anchor point is stored in the set of anchor points that meet the distance requirements. : ; According to the relative hierarchical relationship of each component, from the anchor point set The highest priority anchor points are selected from the data to form an anchor point set. : ; From anchor point set The nearest anchor points are selected from the data to form a set of anchor points. : ; The step of calculating the distance between absorbable elements that do not have accurate anchor point coordinates based on the data classification results, and obtaining a set of indeterminate anchor points, includes: ; ; in, For a set of non-deterministic anchor points, Indicates the coordinates of the center point of the busbar. Indicates the busbar width; The process of obtaining the final set of adsorption anchor points by comparing the determined set of anchor points and the indeterminate set of anchor points, and then verifying the set of adsorption anchor points, includes: ; in, For the set of adsorption anchor points; Obtain the final set of adsorption anchor points. Then, the uniqueness principles of anchor points and components are used to analyze the set of adsorption anchor points. Perform verification.

2. The intelligent mapping method for the power sector based on Fabric according to claim 1, characterized in that: In S2, dynamic topology drawing is performed on all components based on their basic attributes, component parameters, and relative hierarchical relationships, including: When drawing, click to pick the initial drawing coordinates (x, y). Based on the default block width and height of each component, calculate the starting drawing coordinates (x, y) of each component in the Fabric canvas. n y n ), and the center position coordinates of each component ( ', '); According to the starting drawing coordinates (x) of each component n y n Draw each component in the Fabric canvas and record the coordinate information of each component into the properties of the already drawn block.

3. The intelligent mapping method for the power sector based on Fabric according to claim 2, characterized in that: S3 generates anchor points for each component based on their coordinate information and relative positional relationships, and automatically draws the wiring connections between components according to their relative hierarchical relationships, including: For dynamic anchor point generation during one-time drawing, the anchor point position of each element is dynamically calculated based on the coordinate information and relative position relationship of each element. The anchor points of each element are generated based on the anchor point positions, and the line connection relationship between each element is automatically drawn according to the relative hierarchical relationship. The anchor point positions of each component are fixed.

4. The intelligent mapping method for the power sector based on Fabric according to claim 2, characterized in that: S3 generates anchor points for each component based on their coordinate information and relative positional relationships, and automatically draws the wiring connections between components according to their relative hierarchical relationships, including: For dynamic anchor point generation when drawing dragged components, the starting drawing coordinates (x, y, y) of each component are used. n y n The system compares the components to determine their quadrant relationships, generates anchor points for each component based on the nearest neighbor principle, and automatically draws the line connections between components according to their relative hierarchical relationships. The quadrant relationship is based on the center position coordinates of each element ( ', The origin is used to determine the quadrant of the pick point, and the nearest neighbor principle is to generate anchor points on the left / right side of the connecting element.

5. The intelligent mapping method for the power sector based on Fabric according to claim 4, characterized in that: The method involves using the initial drawing coordinates (x) of each element. n y n The comparison is performed to determine the quadrant relationship between each component, and the anchor points of each component are generated based on the nearest neighbor principle, including: When the start element is above the end element, regardless of which quadrant the pick-up points of the start and end elements are in, the connection is made from the bottom of the start element to the top of the end element. When the start element is below the end element, regardless of which quadrant the pick-up points of the start and end elements are in, the connection is made from the top of the start element to the bottom of the end element.

6. The Fabric-based intelligent mapping method for the power sector according to claim 3 or 4, characterized in that: In S3, anchor points for each element are generated based on their coordinate information and relative positional relationships, including: During the process of generating anchor points for each component, scaling, rotation, and mirroring operations on the components are supported.

7. The intelligent mapping method for the power sector based on Fabric according to claim 1, characterized in that: The method of using an automatic path planning algorithm to plan the connection paths between components includes: Dynamically calculate the distance between target locations selected by the user based on their coordinates (OP). ; Where OP is the target location. ( ) and target location ( The distance between them; Calculate the set of sub-components N relative to the target position based on the total set of components in the drawing. Calculate the set of distances NP between all components in sub-component set N and the target position. Calculate the maximum value NO of the distance OP between the distance set NP and the target position. ; Where n is the number of elements in the distance set NP; The number of inflection points is calculated by combining the x-coordinate of the target location and the maximum value NO, and the connection paths between each component are planned based on the number of inflection points.