CN116050036A - Power grid diagram construction method, device and equipment - Google Patents

Power grid diagram construction method, device and equipment Download PDF

Info

Publication number
CN116050036A
CN116050036A CN202310025684.XA CN202310025684A CN116050036A CN 116050036 A CN116050036 A CN 116050036A CN 202310025684 A CN202310025684 A CN 202310025684A CN 116050036 A CN116050036 A CN 116050036A
Authority
CN
China
Prior art keywords
grid
coordinate
primitive
symbol
coordinate system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310025684.XA
Other languages
Chinese (zh)
Other versions
CN116050036B (en
Inventor
赵大溥
柳涛
贺彦
蒋国勇
温秉义
邱佳
陈方槟
刘炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Thp Technology Co ltd
Original Assignee
Beijing Thp Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Thp Technology Co ltd filed Critical Beijing Thp Technology Co ltd
Priority to CN202310025684.XA priority Critical patent/CN116050036B/en
Publication of CN116050036A publication Critical patent/CN116050036A/en
Application granted granted Critical
Publication of CN116050036B publication Critical patent/CN116050036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/18Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/04Power grid distribution networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method, a device and equipment for constructing a power grid graph, comprising the following steps of S100: receiving a command line input-based grid coordinate establishment command; step S200: establishing a visible grid coordinate system in the canvas area preset with the original coordinate system based on the grid coordinate establishing instruction; step S300: receiving a primitive operation instruction input based on a command line, wherein the primitive operation instruction comprises a first operation object symbol and a first operation content symbol, the first operation object symbol is used for determining a primitive to be operated, the first operation content symbol comprises a grid coordinate system symbol and a coordinate parameter, and the coordinate parameter is based on the horizontal coordinate label and/or the vertical coordinate label expression position; step S400: operating the primitive to be operated according to the primitive operation instruction; step S500: and obtaining the power grid graph. By adopting the method, the device and the electronic equipment provided by the invention, the standardization and the reliability of drawing the power grid diagram can be improved.

Description

Power grid diagram construction method, device and equipment
Technical Field
The present invention relates to the field of power grid graph generation, and in particular, to a method, an apparatus, and a device for constructing a power grid graph.
Background
The graphical configuration software based on the vector graphics is a core module of a modern power monitoring system, and typical application scenarios such as a power SCADA system can be used for drawing a power grid graph, wherein the power grid graph comprises, but is not limited to, a substation single line graph, a system tide graph and the like.
The existing graphic configuration software generally provides a blank canvas, and a user can draw various primitives in a canvas area and connect the various primitives through lines so as to represent the connection relationship between actual electric devices. When a user draws, the relative positions of the primitives, connecting lines between the drawn primitives and the like are usually adjusted according to visual effects of visual inspection, which results in poor normalization and readability of the finally drawn electrogram. As shown in fig. 1, a power grid diagram drawn by the conventional graphic configuration software is shown. The generator, bus bar, etc. on the left side of fig. 1 are not at the same level as the generator, bus bar, etc. on the right side. Even when the graph is enlarged, the endpoints of two primitives are difficult to be completely connected together, especially in a floating point coordinate-based system, two endpoints which appear to overlap are often staggered, and the method for judging whether the endpoints are connected together is usually to judge the distance between the two endpoints, if the distance is smaller than a threshold value, the endpoints are considered to be connected together, otherwise, the endpoints are not connected together. This connection is not only unreliable, but also adds additional effort to determine whether a connection is made. It can be seen that the conventional graphic configuration software has to be enhanced in standardization and readability of drawing.
Disclosure of Invention
Based on the current situation, the invention provides a power grid diagram construction method, device and equipment in order to solve the problems of poor normalization and poor readability of a power diagram drawn by the existing graphical configuration software.
The invention provides a command interactive power grid diagram construction method by utilizing a dynamic grid positioning mechanism, which is used for constructing a power grid diagram in a canvas area of a display interface, wherein the power grid diagram comprises a plurality of primitives; the command interactive power grid diagram construction method utilizing the dynamic grid positioning mechanism comprises the following steps:
s100: receiving a command line input-based grid coordinate establishment command; the grid coordinate establishing instruction comprises grid spacing values, wherein the grid spacing values comprise transverse grid spacing values and longitudinal grid spacing values;
s200: establishing a visible grid coordinate system in the canvas area preset with an original coordinate system based on the grid coordinate establishing instruction, and determining a mapping relation between the grid coordinate system and the original coordinate system; the grid coordinate system comprises an X coordinate axis and a plurality of X grid lines extending along a first direction, and a Y coordinate axis and a plurality of Y grid lines extending along a second direction, wherein the X coordinate axis and the X grid lines are arranged at equal intervals and have the interval size of the longitudinal grid interval value, and the Y coordinate axis and the Y grid lines are arranged at equal intervals and have the interval size of the transverse grid interval value; a transverse coordinate label is displayed at the intersection point of the X coordinate axis and the Y grid line, and a longitudinal coordinate label is displayed at the intersection point of the Y coordinate axis and the X grid line; wherein the first direction is perpendicular to the second direction;
S300: receiving a primitive operation instruction input based on a command line, wherein the primitive operation instruction comprises a first operation object symbol and a first operation content symbol, the first operation object symbol is used for determining a primitive to be operated, and the first operation content symbol is used for determining the position of the primitive to be operated; the first operation content symbol comprises a grid coordinate system symbol and a coordinate parameter, the grid coordinate system symbol is used for indicating the primitive operation instruction to adopt the grid coordinate system to define a position, and the coordinate parameter is based on the transverse coordinate label and/or the longitudinal coordinate label to express the position;
s400: operating the primitive to be operated according to the primitive operation instruction; the operation comprises the steps of determining the position of the primitive to be operated in the canvas area according to the coordinate parameters;
s500: and obtaining the power grid graph.
Preferably, the canvas area is rectangular, and the plurality of transverse coordinate labels and the plurality of longitudinal coordinate labels are respectively arranged along the X coordinate axis and the Y coordinate axis by taking one vertex of the canvas area as an origin;
the transverse coordinate label and/or the longitudinal coordinate label comprises numbers and/or letters;
The transverse grid spacing value and the longitudinal grid spacing value are equal or unequal.
Preferably, in the step S400, determining the position of the primitive to be operated in the canvas area according to the coordinate parameter specifically includes:
step S401: converting the coordinate parameters into system coordinate data; the system coordinate data defining a location with the original coordinate system; the system coordinate data are obtained by calculation according to the mapping relation between the grid coordinate system and the original coordinate system, the coordinate parameters, the transverse grid interval value and/or the longitudinal grid interval value;
step S402: and determining the position of the primitive to be operated in the original coordinate system according to the system coordinate data, wherein the position of the primitive to be operated in the original coordinate system is the same as the position of the primitive to be operated in the grid coordinate system.
Preferably, the first operation content symbol further includes an operation type symbol for determining an operation type;
when the operation type symbol is a new increment symbol, the corresponding operation type is a new increment operation, and in the step S400, the primitive to be operated is newly increased to a position determined according to the coordinate parameter;
When the operation type symbol is a mobile symbol, the corresponding operation type is a mobile operation, and in S400, the primitive to be operated is moved to a position determined according to the coordinate parameter.
Preferably, the command interactive grid graph construction method using the dynamic grid positioning mechanism further comprises:
step Sa: receiving a screening instruction input based on a command line, wherein the screening instruction comprises a second operation object symbol and a second operation content symbol, the second operation object symbol is used for determining a primitive type to be screened, and the second operation content symbol is used for determining that a screening operation is performed on the primitive type; screening the primitives conforming to the primitive types from the power grid graph displayed on the display interface based on the second object symbol and the second operation content symbol;
step Sb: generating dynamic label information for each screened primitive based on a preset dynamic label generation rule, wherein the dynamic label information is displayed on the display interface as a dynamic label corresponding to the screened primitive;
the first operation object comprises the dynamic tag information, and the first operation object determines the primitive to be operated according to the dynamic tag information.
Preferably, the dynamic tag is a number and/or letter.
The invention also provides a command interactive power grid diagram construction device utilizing the dynamic grid positioning mechanism, which is used for constructing a power grid diagram in a canvas area of a display interface, wherein the power grid diagram comprises a plurality of primitives; the command interactive power grid diagram construction device utilizing the dynamic grid positioning mechanism comprises:
the command line input module is used for inputting instructions in a command line mode; wherein the instruction comprises an operation content symbol or comprises an operation object symbol and an operation content symbol;
a grid coordinate system generation module; the method comprises the steps of generating a grid coordinate system in the display interface preset with an original coordinate system based on the instruction, and determining a mapping relation between the grid coordinate system and the original coordinate system; the grid coordinate system comprises an X coordinate axis and a plurality of X grid lines extending along a first direction, and a Y coordinate axis and a plurality of Y grid lines extending along a second direction, wherein the X coordinate axis and the X grid lines of the grid coordinate system are arranged at equal intervals, the Y coordinate axis and the Y grid lines are arranged at equal intervals, transverse coordinate labels are displayed at the intersection points of the X coordinate axis and the Y grid lines, and longitudinal coordinate labels are displayed at the intersection points of the Y coordinate axis and the X grid lines; wherein the first direction is perpendicular to the second direction;
The power grid diagram processing module is used for operating the graphic elements to generate the power grid diagram;
the command line input module receives a grid coordinate establishment instruction based on command line input, wherein the grid coordinate establishment instruction comprises grid interval values, and the grid interval values comprise transverse grid interval values and longitudinal grid interval values; the grid coordinate system generation module generates the grid coordinate system in the display interface based on the grid coordinate instruction, wherein the distance between the X coordinate axis and the X grid line of the grid coordinate system is the longitudinal grid distance value, and the distance between the Y coordinate axis and the Y grid line is the transverse grid distance value;
the command line input module receives a primitive operation instruction input based on a command line, wherein the primitive operation instruction comprises a first operation object symbol, the first operation object symbol is used for determining a primitive to be operated, the primitive operation instruction comprises a first operation content symbol, and the first operation content symbol is used for determining the position of the primitive to be operated; the first operation content symbol comprises a grid coordinate system symbol and a coordinate parameter, the grid coordinate system symbol is used for indicating the primitive operation instruction to adopt the grid coordinate system to define a position, and the coordinate parameter is based on the transverse coordinate label and/or the longitudinal coordinate label to express the position;
The power grid diagram processing module is used for operating the to-be-operated primitives according to the primitive operation instruction to obtain a power grid diagram; the operations include determining a location of the primitive to be operated in the canvas area according to the coordinate parameters.
Preferably, the canvas area is rectangular, and the plurality of transverse coordinate labels and the plurality of longitudinal coordinate labels are respectively arranged along the X coordinate axis and the Y coordinate axis by taking the vertex of the canvas area as an origin;
the transverse coordinate label and/or the longitudinal coordinate label comprises numbers and/or letters;
the power grid map processing module determines the position of the to-be-operated primitive in the canvas area according to the coordinate parameters specifically comprises the following steps: converting the coordinate parameters into system coordinate data, determining the position of the primitive to be operated in the original coordinate system according to the system coordinate data, wherein the system coordinate data defines the position by the original coordinate system, and the system coordinate data is obtained by calculating according to the mapping relation between the grid coordinate system and the original coordinate system, the coordinate parameters, the transverse grid interval value and/or the longitudinal grid interval value; the position of the primitive to be operated in the original coordinate system is the same as the position of the primitive to be operated in the grid coordinate system.
Preferably, the command interactive grid graph construction apparatus using the dynamic grid positioning mechanism further comprises: the dynamic label generation module is used for generating dynamic label information for the graphic primitive based on a preset dynamic label generation rule;
the command line input module receives a screening instruction, wherein the operation object symbol included in the screening instruction is a second operation object symbol, and the second operation object symbol is used for determining the primitive type to be screened; the operation content character included in the filtering instruction is a second operation content character, and the second operation content character is used for determining that filtering operation is performed on the primitive type; the power grid diagram processing module screens out the primitives conforming to the primitive types from the power grid diagram displayed on the display interface based on the second object symbol and the second operation content symbol;
the dynamic label generating module generates dynamic label information for each screened primitive, and the dynamic label information is displayed on the display interface as a dynamic label corresponding to the screened primitive;
the first operation object symbol comprises the dynamic label information, and the power grid graph processing module determines the graphic element to be operated according to the dynamic label information.
The invention also provides an electronic device comprising a storage medium storing a computer program which, when executed by a processor, is capable of implementing a method of command interactive grid graph construction using a dynamic grid positioning mechanism as described above, or comprising a device of command interactive grid graph construction using a dynamic grid positioning mechanism as described above.
According to the command interactive power grid diagram construction method, device and equipment utilizing the dynamic grid positioning mechanism, the grid coordinate system is established in the canvas area, and the grid coordinate system is utilized to position the graphic element, so that the normalization and reliability of the power grid diagram are greatly improved.
Other advantages of the present invention will be set forth in the description of specific technical features and solutions, by which those skilled in the art should understand the advantages that the technical features and solutions bring.
Drawings
FIG. 1 is a schematic diagram of a power grid drawn by conventional graphical configuration software.
FIG. 2 is a graphical configuration software running interface that is useful for illustrating the present invention.
Fig. 3 is a flowchart of a command interactive grid graph construction method using a dynamic grid positioning mechanism according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of the grid coordinate system established in step S200 of fig. 3.
Fig. 5 is a schematic drawing of a primitive drawn by a command interactive grid graph construction method using a dynamic grid positioning mechanism according to an embodiment of the present invention.
FIG. 6 illustrates a power schematic drawing using a command interactive grid graph construction method of a dynamic grid positioning mechanism according to an embodiment of the present invention.
Fig. 7 is a power schematic diagram view after eliminating the grid coordinate system.
Fig. 8 is a diagram providing an example to schematically illustrate step Sb of the command-based interactive power grid map generation method in the present invention.
Detailed Description
The present invention is described below based on examples, but the present invention is not limited to only these examples. In the following detailed description of the present invention, certain specific details are set forth in order to avoid obscuring the present invention, and in order to avoid obscuring the present invention, well-known methods, procedures, flows, and components are not presented in detail.
Moreover, those of ordinary skill in the art will appreciate that the drawings are provided herein for illustrative purposes and that the drawings are not necessarily drawn to scale.
Unless the context clearly requires otherwise, throughout the description and the claims, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, it is the meaning of "including but not limited to".
In the description of the present invention, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
The invention provides a command interactive power grid diagram construction method by utilizing a dynamic grid positioning mechanism, which is used for constructing a power grid diagram in a canvas area of a display interface, wherein the power grid diagram comprises a plurality of primitives; the command interactive power grid diagram construction method using the dynamic grid positioning mechanism comprises steps S100 to S500.
Step S100 is: receiving a command line input-based grid coordinate establishment command; the grid spacing value is included in the grid coordinate establishing instruction, and the grid spacing value comprises a transverse grid spacing value and a longitudinal grid spacing value.
Step S200 is: establishing a visible grid coordinate system in the canvas area preset with an original coordinate system based on the grid coordinate establishing instruction, and determining a mapping relation between the grid coordinate system and the original coordinate system; the grid coordinate system comprises an X coordinate axis and a plurality of X grid lines extending along a first direction, and a Y coordinate axis and a plurality of Y grid lines extending along a second direction, wherein the X coordinate axis and the X grid lines are arranged at equal intervals and have the interval size of the longitudinal grid interval value, and the Y coordinate axis and the Y grid lines are arranged at equal intervals and have the interval size of the transverse grid interval value; a transverse coordinate label is displayed at the intersection point of the X coordinate axis and the Y grid line, and a longitudinal coordinate label is displayed at the intersection point of the Y coordinate axis and the X grid line; wherein the first direction is perpendicular to the second direction;
The step S300 is: receiving a primitive operation instruction input based on a command line, wherein the primitive operation instruction comprises a first operation object symbol and a first operation content symbol, the first operation object symbol is used for determining a primitive to be operated, and the first operation content symbol is used for determining the position of the primitive to be operated; the first operation content symbol comprises a grid coordinate system symbol and a coordinate parameter, the grid coordinate system symbol is used for indicating the primitive operation instruction to adopt the grid coordinate system to define a position, and the coordinate parameter is based on the transverse coordinate label and/or the longitudinal coordinate label to express the position;
step S400 is: operating the primitive to be operated according to the primitive operation instruction; the operation comprises the steps of determining the position of the primitive to be operated in the canvas area according to the coordinate parameters;
the step S500 is: and obtaining the power grid graph.
For the sake of clarity of the method provided by the present invention, fig. 2 illustrates an operation interface of a graphical configuration software, and the schematic graphical configuration software is taken as an example to execute the method to illustrate the purpose of the present invention. It will be appreciated that the graphical configuration software running interface illustrated in fig. 2 is merely provided for convenience and clarity of illustration of one example of the present invention, and the present invention is not necessarily implemented by the graphical configuration software illustrated in fig. 2.
With continued reference to fig. 2, the graphical configuration software includes a primitive panel 10, a canvas area 20 and a command input box 30, where the primitive panel 10 is used for displaying primitives in a primitive template library, the canvas area 20 is used for displaying a grid graph drawn by a user, and the command input box 30 is used for inputting drawing instructions in a command line manner, where the drawing instructions include, but are not limited to, instructions for adding primitives or instructions for editing existing primitives in the canvas area (position adjustment, connection relationship change, ID information setting, etc.). The running interface of the graphical configuration software can be specifically displayed in the display interface of the electronic device.
It can be understood that the graphic configuration software is provided with a primitive template library in advance, and a plurality of primitives are arranged in the primitive template library, and each primitive is used for indicating one or more electric devices. The primitives in the primitive template library are shown in the primitive panel 10, and the 5 primitives shown in the primitive panel 10 in fig. 2 are, in order from top to bottom, primitives (part of the primitives are not shown) corresponding to the generator, the line, the transformer, the bus and the load. The user can directly call the graphic element from the graphic element template library in the process of drawing the power grid graph. The calling mode can be that the operation of clicking and dragging the primitive in the primitive template library to the canvas area is completed; or by inputting command line, for example, the command line is input in the command input box 30, after the command line is executed, the invoked graphic element is displayed in the canvas area, for example, add trans is input in the command input box ("add" is a new operation, "trans" is a transformer name), and after the command is executed, a transformer can be added to the current power grid diagram.
It will be appreciated that the instructions entered via the command input box 30 include operation content symbols, or include operation object symbols and operation content symbols.
Referring to fig. 3, an embodiment of the present invention provides a command interactive power grid diagram construction method using a dynamic grid positioning mechanism, which is used for constructing a power grid diagram in a canvas area of a display interface. The grid map includes, but is not limited to, a substation single line map, a system tidal current map, and the like. The grid map typically includes a large number of primitives. The command interactive power grid graph construction method using the dynamic grid positioning mechanism comprises steps S100 to S500.
As one embodiment, in step S100, a command line input based mesh coordinate establishment instruction is received, where the mesh coordinate establishment instruction includes a mesh spacing value, where the mesh spacing value includes a lateral mesh spacing value and a longitudinal mesh spacing value.
It will be appreciated that the establish grid coordinates instruction may be entered by the user in the command input box. Step S100 may be performed before drawing the primitives of the grid graph, i.e. after drawing part of the primitives. Preferably, this is done prior to drawing the primitives, which facilitates the overall process of building the canonical electrical map.
As a specific embodiment, a grid coordinate instruction is input in the command input box 30: grid 50, 40. In this particular embodiment, "grid" is an commander for establishing grid coordinates, where 50 and 40 are grid spacing values, 50 is a transverse grid spacing value, and 40 is a longitudinal grid spacing value. It will be appreciated that the user may set the instruction for establishing the grid coordinates according to the requirement, for example, the grid coordinates instruction is: gd 50, 40, defines "gd" as an commander for establishing grid coordinates.
As an example, the lateral grid spacing value and the longitudinal grid spacing value may or may not be equal.
Referring to fig. 4, as an embodiment, in step S200, a visible grid coordinate system is established in the canvas area preset with the original coordinate system based on the grid coordinate establishing instruction, and a mapping relationship between the grid coordinate system and the original coordinate system is determined; the grid coordinate system comprises an X coordinate axis and a plurality of X grid lines extending along a first direction, and a Y coordinate axis and a plurality of Y grid lines extending along a second direction, wherein the X coordinate axis and the X grid lines are arranged at equal intervals and have the interval size of the longitudinal grid interval value, and the Y coordinate axis and the Y grid lines are arranged at equal intervals and have the interval size of the transverse grid interval value; a transverse coordinate label is displayed at the intersection point of the X coordinate axis and the Y grid line, and a longitudinal coordinate label is displayed at the intersection point of the Y coordinate axis and the X grid line; wherein the first direction is perpendicular to the second direction.
It can be appreciated that the canvas area is preset with an original coordinate system, and after the position of the primitive in the canvas area is determined, the specific position of the primitive in the original coordinate system is determined. Step S200 is to add a grid coordinate system different from the original coordinate system under the condition that the original coordinate system exists, and there is a mapping relationship between the original coordinate system and the grid coordinate system.
It will be appreciated that in step S200, the established grid coordinate system is different from the preset original coordinate system, and the grid coordinate system is in a visual state in the canvas area, so that the user can intuitively see the coordinate system and perform standard and reliable drawing by using the coordinate system. Specifically, the grid coordinate system divides the canvas area into a plurality of grids through X coordinate axes, X grid lines, Y coordinate axes and Y grid lines. The grid provides a location reference for user drawing, which is beneficial to user specification drawing.
Alternatively, the grid lines (X grid lines and Y grid lines) are dashed lines, which reduces disturbance to the drawing while providing a user with a drawing position reference.
As an embodiment, the grid coordinate system may be established with an arbitrary position of the canvas area as an origin, so long as the canvas area can be divided into a plurality of grids and a transverse coordinate tag and a longitudinal coordinate tag for locating the position can be generated. As a specific embodiment, the canvas area is rectangular, and the plurality of horizontal coordinate labels and the plurality of vertical coordinate labels are respectively arranged along the X coordinate axis and the Y coordinate axis by taking the vertex of the canvas area as an origin. It is understood that the origin may be the origin of any vertex in the canvas area of the rectangle, preferably the origin of the grid coordinate system coincides with the origin of the original coordinate system.
As an example, the transverse coordinate label and the longitudinal coordinate label are numbers or letters, and may be a combination of numbers and letters. The position of the bitmap element in the grid coordinate system can be conveniently located by using the transverse coordinate label and the longitudinal coordinate label. The transverse coordinate label and the longitudinal coordinate label are exemplified by numerals (1, 2, 3 and … …) in the invention.
It will be appreciated that the size of the grid is determined by the horizontal grid spacing value and the vertical grid spacing value in step S100, and the user may set a reasonable grid spacing value according to the requirements, such as the number of primitives, the size of canvas, and the like.
As one embodiment, in step S300, a primitive operation instruction input based on a command line is received, where the primitive operation instruction includes a first operation object symbol and a first operation content symbol, where the first operation object symbol is used to determine a primitive to be operated, and the first operation content symbol is used to determine a location of the primitive to be operated; the first operation content symbol comprises a grid coordinate system symbol and a coordinate parameter, the grid coordinate system symbol is used for indicating the primitive operation instruction to adopt the grid coordinate system to define a position, and the coordinate parameter is based on the transverse coordinate label and/or the longitudinal coordinate label to express the position;
It is understood that in step S300, the primitive operation instruction determines the primitive position based on the grid coordinate system. The primitive operation instruction may specifically be an instruction for adding a primitive, or an instruction for moving a primitive.
Referring to fig. 5, for example, the primitive operation instruction is an instruction of a newly added primitive, input instruction 1 and instruction 2:
add bus y=#3, x=#1-#3
add bus y=#3, x=#4-#6
after the instruction 1 and the instruction 2 are executed, two buses positioned at the same height can be drawn, and the two buses are good in alignment and interval.
It may be understood that the operation object included in the instruction 1 is a first operation object, the first operation object is "bus", that is, the determined primitive to be operated is a bus, the operation content included in the instruction 1 is a first operation content, the first operation content is "add" and "y= #3, x= #1- #3", where "add" is an operation type identifier and is a new increment identifier, which is used to determine that the operation type of the instruction is a new increment operation. "#" is a grid coordinate system symbol, "y=3, x=1-3" is a coordinate parameter, and the grid coordinate system symbol is used to determine the coordinate parameter "y=3, x=1-3" using the grid coordinate system to define the location. The "1" and "3" in this instruction are each based on a lateral coordinate tag and/or a longitudinal coordinate tag expression location. That is, "1" refers to the transverse label "1", 3 "in y=3 refers to 3 in the longitudinal coordinate label, and" 3 "in x=1-3 refers to 3 in the transverse coordinate label.
It is understood that the coordinate parameters include that the coordinate parameters consist of the transverse coordinate tag and/or the longitudinal coordinate tag based on the transverse coordinate tag and/or the longitudinal coordinate tag expression position, such as instruction 1 and instruction 2; also included are locations expressed based on the lateral coordinate tags and/or the longitudinal coordinate tags, such as instructions: y=1.5, x=1.5-3.5.
It will be appreciated that the present invention is illustrated with numbers as the transverse coordinate label and the longitudinal coordinate label, which are indistinguishable from the system coordinate data used to locate the position of the primitive in the original coordinate system (in the existing software, the system coordinate data of the original coordinate system is also numbers), so that grid coordinate system symbols need to be added to make the distinction. However, if the coordinate parameters and the system coordinate data can be distinguished, the grid coordinate system symbols and the coordinate parameters are combined. If the transverse coordinate label and the longitudinal coordinate label are both letters A, B, C, D … …, if instruction 3 is input: add bus y=c, x=a-C, and it will be appreciated that the first operation content at this time includes "y=c, x=a-C" that is a composite of the coordinate parameter and the grid coordinate system symbol. The graphical configuration software can directly identify the coordinate parameters at the moment and adopts a grid coordinate system to define the position.
As one embodiment, in step S400, the primitive to be operated is operated according to the primitive operation instruction; the operations include determining a location of the primitive to be operated in the canvas area according to the coordinate parameters.
As an embodiment, the operation content symbol further includes an operation type symbol. The operation content and the corresponding operation type can be set according to the needs of the user. When the operation type identifier included in the first operation content identifier is a new increment identifier, the corresponding operation type is a new increment operation, and in step S400, the primitive to be operated is newly increased to a position determined according to the coordinate parameter. If the instruction 1 is executed, in the grid coordinate system, the busbar is newly added to the position with the transverse grid coordinate of 1 to 3 and the longitudinal grid coordinate of 3. It is understood that the first operation content symbol includes an operation type symbol, which is not limited to be a new symbol, but may also be a mobile symbol, and the corresponding operation type is a mobile operation, and after the instruction is executed, the primitive to be operated is moved to the position determined by the coordinate parameter.
As an embodiment, in step S500, the grid map is obtained. As shown in fig. 6, a grid diagram required by the user may be drawn, and it is understood that the user may perform other operations including, but not limited to, deleting, copying, filtering primitives, editing attributes, and the like, through instructions before obtaining the final grid diagram.
It can be understood that the grid coordinate system can be eliminated by the instruction, so that a user can conveniently check the grid graph, as shown in fig. 7, namely the grid graph after the grid coordinate system is eliminated.
In the step S400, determining the position of the primitive to be operated in the canvas area according to the coordinate parameters specifically includes:
step S401: converting the coordinate parameters into system coordinate data; the system coordinate data defining a location with the original coordinate system; the system coordinate data are obtained by calculation according to the mapping relation between the grid coordinate system and the original coordinate system, the coordinate parameters, the transverse grid interval value and/or the longitudinal grid interval value;
step S402: and determining the position of the primitive to be operated in the original coordinate system according to the system coordinate data, wherein the position of the primitive to be operated in the original coordinate system is the same as the position of the primitive to be operated in the grid coordinate system.
It can be understood that there is a mapping relationship between the coordinate parameters and the system coordinate data, taking the grid coordinate system illustrated in fig. 4 as an example, the origin of the grid coordinate system is set to be the same as that of the original coordinate system, and the coordinate parameters are multiplied by the grid space value to obtain the corresponding system coordinate data. The position of the primitive in the grid coordinate system is determined, i.e. the position of the primitive in the original coordinate system is determined.
As an embodiment, the command interactive grid map construction method using the dynamic grid positioning mechanism may further include steps Sa and Sb.
Step Sa is: receiving a screening instruction input based on a command line, wherein the screening instruction comprises a second operation object symbol and a second operation content symbol, the second operation object symbol is used for determining a primitive type to be screened, and the second operation content symbol is used for determining that a screening operation is performed on the primitive type; and screening the graphic elements conforming to the graphic element type from the power grid graph displayed on the display interface based on the second object symbol and the second operation content symbol.
The step Sb is as follows: generating dynamic label information for each screened primitive based on a preset dynamic label generation rule, wherein the dynamic label information is displayed on the display interface as a dynamic label corresponding to the screened primitive;
it can be understood that in step Sa, when a plurality of primitives are already displayed on the display interface, all the primitives in the display interface are screened out by the screening instruction input by the command line, or some of the primitives are screened out according to a certain rule.
As an embodiment, the primitive type is determined according to one or more of a primitive name of the primitive, a line layer to which the primitive belongs, and coordinates of the primitive.
As one embodiment, an instruction is input in a command input box: context type=trans (can be simplified as context trans); wherein trans is the name of the primitive corresponding to the transformer, that is, type=trans is the second operation object symbol, which is used to determine that the primitive type to be screened by the screening operation is the transformer. The context is a second operation content symbol, and the specific operation content of the context is screening operation. After the filtering instruction is executed, the primitives corresponding to the transformers are filtered from the primitives displayed on the display interface, as in fig. 8, there are 2 primitives corresponding to the transformers, and the two primitives are filtered.
It will be appreciated that the particular filter content may be determined based on user requirements. Inputting instructions in a command input box: and the operation object symbol corresponding to the instruction is all (all primitives), the operation content symbol is context, and after the instruction is executed, all primitives in the display interface are screened out.
As an embodiment, the filtering instruction input by the command line may be directly input by the user, or may be partially input by the user, and automatically generated after being partially triggered, for example, a plurality of operation buttons are preset, and the second operation content symbol is automatically generated when a click operation for the preset operation buttons is received. The specific steps can be as follows: the operation buttons displayed on the display interface are used for representing screening, moving, deleting and the like, and after the operation buttons are clicked for screening, an operation content symbol of context is automatically generated in the command input box.
As an embodiment, in step Sb, a preset dynamic label generating rule is used to generate unique dynamic label information for the filtered primitive, so that a specific primitive can be identified by the dynamic label information. I.e. dynamic label information/dynamic labels of different primitives are different.
Referring to fig. 8, taking a filtering instruction as context trans as an example, two primitives in a display interface are selected, a preset dynamic label generating rule generates dynamic label information 1 and 2, a dynamic label of a first transformer primitive on the display interface is (1) (1 or 1 can be directly displayed), and a dynamic label of a second transformer primitive is (2) (2 or 2 can be directly displayed). When a subsequent operation needs to be performed on the primitive with the dynamic label, the dynamic label information can be directly referenced to specify the primitive. If the input instruction add $1, "$1" is an operation object symbol, the determined object is a primitive with a dynamic tag of 1.
As a specific example, the dynamic tag generated according to the dynamic tag generation rule is not limited to the number (1, 2, 3, 4, … …), but may be a letter (A, B, C, D … …), or a combination of letters and numbers. The dynamic labels of the two primitives as in fig. 8 may be a and B, respectively. It can be understood that the content of the dynamic label is not limited, so long as each filtered primitive can be marked to form a unique dynamic label, and the subsequent direct reference of the dynamic label information is convenient to specify the primitive.
As an embodiment, the selected primitives and the dynamic labels thereof in the display interface are normally displayed, and the unselected primitives are desalted and displayed, so that a user can observe the screening and dynamic label generation results conveniently.
It can be appreciated that in steps Sa, sb, a context mechanism and a dynamic labeling mechanism are employed: in step Sa, a context range (a reducible object range) is defined by a context mechanism, and in the context range, dynamic tag information is given to an object located in the range and displayed in a display interface. The dynamic tag information can then directly reference the object.
As an embodiment, in step S400, the first operation object includes the dynamic tag information, and the first operation object determines the primitive to be operated according to the dynamic tag information. If the input command move$1 y = #3, x= #2, "$1" is the first operation object, the determined primitive to be operated is the primitive with dynamic label 1.
The command interactive power grid diagram construction method utilizing the dynamic grid positioning mechanism utilizes the dynamic grid positioning mechanism to position the position of the graphic element, and improves the normalization and the reliability of the power grid diagram.
The invention also provides a command interactive power grid diagram construction device utilizing the dynamic grid positioning mechanism, which is used for constructing a power grid diagram in a canvas area of a display interface, wherein the power grid diagram comprises a plurality of primitives; the command interactive power grid diagram construction device utilizing the dynamic grid positioning mechanism comprises a command line input module, a grid coordinate system generation module and a power grid diagram processing module. The command line input module is used for inputting commands in a command line mode; wherein the instruction comprises an operation content symbol, or comprises an operation object symbol and an operation content symbol. The grid coordinate system generation module is used for generating a grid coordinate system in the display interface preset with an original coordinate system based on the instruction, and determining a mapping relation between the grid coordinate system and the original coordinate system; the grid coordinate system comprises an X coordinate axis and a plurality of X grid lines extending along a first direction, and a Y coordinate axis and a plurality of Y grid lines extending along a second direction, wherein the X coordinate axis and the X grid lines of the grid coordinate system are arranged at equal intervals, the Y coordinate axis and the Y grid lines are arranged at equal intervals, transverse coordinate labels are displayed at the intersection points of the X coordinate axis and the Y grid lines, and longitudinal coordinate labels are displayed at the intersection points of the Y coordinate axis and the X grid lines, and the first direction is perpendicular to the second direction. And the power grid graph processing module is used for operating the graphic elements to generate the power grid graph.
The command line input module receives a grid coordinate establishment instruction based on command line input, wherein the grid coordinate establishment instruction comprises grid interval values, and the grid interval values comprise transverse grid interval values and longitudinal grid interval values; the grid coordinate system generation module generates the grid coordinate system in the display interface based on the grid coordinate instruction, wherein the distance between the X coordinate axis and the X grid line of the grid coordinate system is the longitudinal grid distance value, and the distance between the Y coordinate axis and the Y grid line is the transverse grid distance value.
The command line input module receives a primitive operation instruction input based on a command line, wherein the primitive operation instruction comprises a first operation object symbol, the first operation object symbol is used for determining a primitive to be operated, the primitive operation instruction comprises a first operation content symbol, and the first operation content symbol is used for determining the position of the primitive to be operated; the first operation content symbol comprises a grid coordinate system symbol and a coordinate parameter, wherein the grid coordinate system symbol is used for indicating the primitive operation instruction to adopt the grid coordinate system to define a position, and the coordinate parameter is based on the transverse coordinate label and/or the longitudinal coordinate label to express the position.
The power grid diagram processing module is used for operating the to-be-operated primitives according to the primitive operation instruction to obtain a power grid diagram; the operations include determining a location of the primitive to be operated in the canvas area according to the coordinate parameters.
As an embodiment, the canvas area is rectangular, and the plurality of horizontal coordinate labels and the plurality of vertical coordinate labels are respectively arranged along the X coordinate axis and the Y coordinate axis with a vertex of the canvas area as an origin.
As an embodiment, the transverse coordinate label and/or the longitudinal coordinate label comprise numbers and/or letters.
As an embodiment, the determining, by the grid map processing module, the position of the primitive to be operated in the canvas area according to the coordinate parameter specifically includes: converting the coordinate parameters into system coordinate data, determining the position of the primitive to be operated in the original coordinate system according to the system coordinate data, wherein the system coordinate data defines the position by the original coordinate system, and the system coordinate data is obtained by calculating according to the mapping relation between the grid coordinate system and the original coordinate system, the coordinate parameters, the transverse grid interval value and/or the longitudinal grid interval value; the position of the primitive to be operated in the original coordinate system is the same as the position of the primitive to be operated in the grid coordinate system.
As an embodiment, the command interactive grid graph construction device using the dynamic grid positioning mechanism further comprises a dynamic tag generation module, wherein the dynamic tag generation module is used for generating dynamic tag information for the graphic primitive based on a preset dynamic tag generation rule.
The command line input module receives a screening instruction, wherein the operation object symbol included in the screening instruction is a second operation object symbol, and the second operation object symbol is used for determining the primitive type to be screened; the operation content character included in the filtering instruction is a second operation content character, and the second operation content character is used for determining that filtering operation is performed on the primitive type; and the power grid diagram processing module screens out the primitives conforming to the primitive types from the power grid diagram displayed on the display interface based on the second object symbol and the second operation content symbol. And the dynamic label generating module generates dynamic label information for each screened primitive, and the dynamic label information is displayed on the display interface as a dynamic label corresponding to the screened primitive.
As an embodiment, the first operation object symbol includes the dynamic tag information, and the power grid graph processing module determines the primitive to be operated according to the dynamic tag information.
The embodiment of the invention also provides electronic equipment, which comprises a storage medium storing a computer program, wherein the computer program can realize the command interactive power grid graph construction method using the dynamic grid positioning mechanism when being executed by a processor, or comprises the command interactive power grid graph construction device using the dynamic grid positioning mechanism.
The computer readable storage medium according to the embodiments of the present disclosure is not limited to the above-described embodiments, and may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In an embodiment of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Those skilled in the art will appreciate that the above-described preferred embodiments can be freely combined and stacked without conflict. In which the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures, for example, two blocks shown in succession may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. The numbering of the steps herein is for convenience of illustration and reference only and is not intended to limit the order in which the steps are performed, the particular order of execution being determined by the technology itself, and the skilled artisan can determine various allowable, reasonable orders based on the technology itself.
It should be noted that step numbers (letter or number numbers) are used in the present invention to refer to certain specific method steps for convenience and brevity only, and are not intended to limit the order of the method steps by letter or number in any way. It will be apparent to those skilled in the art that the sequence of steps of the relevant method should be determined by the technique itself, should not be unduly limited by the presence of step numbers, and that one skilled in the art can determine various allowable, reasonable sequences of steps based on the technique itself.
Those skilled in the art will appreciate that the above-described preferred embodiments can be freely combined and stacked without conflict.
It will be understood that the above-described embodiments are merely illustrative and not restrictive, and that all obvious or equivalent modifications and substitutions to the details given above may be made by those skilled in the art without departing from the underlying principles of the invention, are intended to be included within the scope of the appended claims.

Claims (10)

1. A command interactive power grid diagram construction method by utilizing a dynamic grid positioning mechanism, which is used for constructing a power grid diagram in a canvas area of a display interface, wherein the power grid diagram comprises a plurality of primitives; the method is characterized by comprising the following steps:
S100: receiving a command line input-based grid coordinate establishment command; the grid coordinate establishing instruction comprises grid spacing values, wherein the grid spacing values comprise transverse grid spacing values and longitudinal grid spacing values;
s200: establishing a visible grid coordinate system in the canvas area preset with an original coordinate system based on the grid coordinate establishing instruction, and determining a mapping relation between the grid coordinate system and the original coordinate system; the grid coordinate system comprises an X coordinate axis and a plurality of X grid lines extending along a first direction, and a Y coordinate axis and a plurality of Y grid lines extending along a second direction, wherein the X coordinate axis and the X grid lines are arranged at equal intervals and have the interval size of the longitudinal grid interval value, and the Y coordinate axis and the Y grid lines are arranged at equal intervals and have the interval size of the transverse grid interval value; a transverse coordinate label is displayed at the intersection point of the X coordinate axis and the Y grid line, and a longitudinal coordinate label is displayed at the intersection point of the Y coordinate axis and the X grid line; wherein the first direction is perpendicular to the second direction;
s300: receiving a primitive operation instruction input based on a command line, wherein the primitive operation instruction comprises a first operation object symbol and a first operation content symbol, the first operation object symbol is used for determining a primitive to be operated, and the first operation content symbol is used for determining the position of the primitive to be operated; the first operation content symbol comprises a grid coordinate system symbol and a coordinate parameter, the grid coordinate system symbol is used for indicating the primitive operation instruction to adopt the grid coordinate system to define a position, and the coordinate parameter is based on the transverse coordinate label and/or the longitudinal coordinate label to express the position;
S400: operating the primitive to be operated according to the primitive operation instruction; the operation comprises the steps of determining the position of the primitive to be operated in the canvas area according to the coordinate parameters;
s500: and obtaining the power grid graph.
2. The command interactive power grid graph construction method using a dynamic grid positioning mechanism according to claim 1, wherein the canvas area is rectangular, and a plurality of the transverse coordinate labels and a plurality of the longitudinal coordinate labels are respectively arranged along the X coordinate axis and the Y coordinate axis with a vertex of the canvas area as an origin;
the transverse coordinate label and/or the longitudinal coordinate label comprises numbers and/or letters;
the transverse grid spacing value and the longitudinal grid spacing value are equal or unequal.
3. The method for constructing a command interactive grid map using a dynamic grid positioning mechanism according to claim 1, wherein in step S400, determining the position of the primitive to be operated in the canvas area according to the coordinate parameters specifically comprises:
step S401: converting the coordinate parameters into system coordinate data; the system coordinate data defining a location with the original coordinate system; the system coordinate data are obtained by calculation according to the mapping relation between the grid coordinate system and the original coordinate system, the coordinate parameters, the transverse grid interval value and/or the longitudinal grid interval value;
Step S402: and determining the position of the primitive to be operated in the original coordinate system according to the system coordinate data, wherein the position of the primitive to be operated in the original coordinate system is the same as the position of the primitive to be operated in the grid coordinate system.
4. The command interactive grid graph construction method using a dynamic grid positioning mechanism according to claim 1, wherein the first operation content symbol further comprises an operation type symbol for determining an operation type;
when the operation type symbol is a new increment symbol, the corresponding operation type is a new increment operation, and in the step S400, the primitive to be operated is newly increased to a position determined according to the coordinate parameter;
when the operation type symbol is a mobile symbol, the corresponding operation type is a mobile operation, and in S400, the primitive to be operated is moved to a position determined according to the coordinate parameter.
5. The method for command interactive grid graph construction using a dynamic grid positioning mechanism as recited in claim 1, wherein the method for command interactive grid graph construction using a dynamic grid positioning mechanism further comprises:
Step Sa: receiving a screening instruction input based on a command line, wherein the screening instruction comprises a second operation object symbol and a second operation content symbol, the second operation object symbol is used for determining a primitive type to be screened, and the second operation content symbol is used for determining that a screening operation is performed on the primitive type; screening the primitives conforming to the primitive types from the power grid graph displayed on the display interface based on the second object symbol and the second operation content symbol;
step Sb: generating dynamic label information for each screened primitive based on a preset dynamic label generation rule, wherein the dynamic label information is displayed on the display interface as a dynamic label corresponding to the screened primitive;
the first operation object comprises the dynamic tag information, and the first operation object determines the primitive to be operated according to the dynamic tag information.
6. The command interactive grid graph construction method using a dynamic grid positioning mechanism according to claim 1, wherein the dynamic labels are numbers and/or letters.
7. A command interactive power grid graph construction device utilizing a dynamic grid positioning mechanism, which is used for constructing a power grid graph in a canvas area of a display interface, wherein the power grid graph comprises a plurality of primitives; the command interactive power grid graph construction device utilizing the dynamic grid positioning mechanism is characterized by comprising the following steps:
The command line input module is used for inputting instructions in a command line mode; wherein the instruction comprises an operation content symbol or comprises an operation object symbol and an operation content symbol;
a grid coordinate system generation module; the method comprises the steps of generating a grid coordinate system in the display interface preset with an original coordinate system based on the instruction, and determining a mapping relation between the grid coordinate system and the original coordinate system; the grid coordinate system comprises an X coordinate axis and a plurality of X grid lines extending along a first direction, and a Y coordinate axis and a plurality of Y grid lines extending along a second direction, wherein the X coordinate axis and the X grid lines of the grid coordinate system are arranged at equal intervals, the Y coordinate axis and the Y grid lines are arranged at equal intervals, transverse coordinate labels are displayed at the intersection points of the X coordinate axis and the Y grid lines, and longitudinal coordinate labels are displayed at the intersection points of the Y coordinate axis and the X grid lines; wherein the first direction is perpendicular to the second direction;
the power grid diagram processing module is used for operating the graphic elements to generate the power grid diagram;
the command line input module receives a grid coordinate establishment instruction based on command line input, wherein the grid coordinate establishment instruction comprises grid interval values, and the grid interval values comprise transverse grid interval values and longitudinal grid interval values; the grid coordinate system generation module generates the grid coordinate system in the display interface based on the grid coordinate instruction, wherein the distance between the X coordinate axis and the X grid line of the grid coordinate system is the transverse grid distance value, and the distance between the Y coordinate axis and the Y grid line is the longitudinal grid distance value;
The command line input module receives a primitive operation instruction input based on a command line, wherein the primitive operation instruction comprises a first operation object symbol, the first operation object symbol is used for determining a primitive to be operated, the primitive operation instruction comprises a first operation content symbol, and the first operation content symbol is used for determining the position of the primitive to be operated; the first operation content symbol comprises a grid coordinate system symbol and a coordinate parameter, the grid coordinate system symbol is used for indicating the primitive operation instruction to adopt the grid coordinate system to define a position, and the coordinate parameter is based on the transverse coordinate label and/or the longitudinal coordinate label to express the position;
the power grid diagram processing module is used for operating the to-be-operated primitives according to the primitive operation instruction to obtain a power grid diagram; the operations include determining a location of the primitive to be operated in the canvas area according to the coordinate parameters.
8. The command interactive grid map construction apparatus using a dynamic grid positioning mechanism according to claim 7, wherein the canvas area is rectangular, and a plurality of the transversal coordinate labels and a plurality of the longitudinal coordinate labels are arranged along the X coordinate axis and the Y coordinate axis with vertices of the canvas area as origins, respectively;
The transverse coordinate label and/or the longitudinal coordinate label comprises numbers and/or letters;
the power grid map processing module determines the position of the to-be-operated primitive in the canvas area according to the coordinate parameters specifically comprises the following steps: converting the coordinate parameters into system coordinate data, determining the position of the primitive to be operated in the original coordinate system according to the system coordinate data, wherein the system coordinate data defines the position by the original coordinate system, and the system coordinate data is obtained by calculating according to the mapping relation between the grid coordinate system and the original coordinate system, the coordinate parameters, the transverse grid interval value and/or the longitudinal grid interval value; the position of the primitive to be operated in the original coordinate system is the same as the position of the primitive to be operated in the grid coordinate system.
9. The command interactive grid map construction apparatus utilizing a dynamic grid positioning mechanism of claim 7, wherein the command interactive grid map construction apparatus utilizing a dynamic grid positioning mechanism further comprises:
the dynamic label generation module is used for generating dynamic label information for the graphic primitive based on a preset dynamic label generation rule;
The command line input module receives a screening instruction, wherein the operation object symbol included in the screening instruction is a second operation object symbol, and the second operation object symbol is used for determining the primitive type to be screened; the operation content character included in the filtering instruction is a second operation content character, and the second operation content character is used for determining that filtering operation is performed on the primitive type; the power grid diagram processing module screens out the primitives conforming to the primitive types from the power grid diagram displayed on the display interface based on the second object symbol and the second operation content symbol;
the dynamic label generating module generates dynamic label information for each screened primitive, and the dynamic label information is displayed on the display interface as a dynamic label corresponding to the screened primitive;
the first operation object symbol comprises the dynamic label information, and the power grid graph processing module determines the graphic element to be operated according to the dynamic label information.
10. An electronic device comprising a storage medium storing a computer program, characterized in that: the computer program, when executed by a processor, is capable of implementing a command interactive grid map construction method using a dynamic grid positioning mechanism as claimed in any one of claims 1 to 6, or the electronic device comprises a command interactive grid map construction apparatus using a dynamic grid positioning mechanism as claimed in any one of claims 7 to 9.
CN202310025684.XA 2023-01-09 2023-01-09 Power grid diagram construction method, device and equipment Active CN116050036B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310025684.XA CN116050036B (en) 2023-01-09 2023-01-09 Power grid diagram construction method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310025684.XA CN116050036B (en) 2023-01-09 2023-01-09 Power grid diagram construction method, device and equipment

Publications (2)

Publication Number Publication Date
CN116050036A true CN116050036A (en) 2023-05-02
CN116050036B CN116050036B (en) 2023-06-13

Family

ID=86112830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310025684.XA Active CN116050036B (en) 2023-01-09 2023-01-09 Power grid diagram construction method, device and equipment

Country Status (1)

Country Link
CN (1) CN116050036B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090109219A1 (en) * 2007-10-30 2009-04-30 Advanced Micro Devices, Inc. Real-time mesh simplification using the graphics processing unit
US20100053205A1 (en) * 2008-09-03 2010-03-04 Debra Brandwein Method, apparatus, and system for displaying graphics using html elements
US20120092340A1 (en) * 2010-10-19 2012-04-19 Apple Inc. Systems, methods, and computer-readable media for manipulating graphical objects
CN103942345A (en) * 2014-05-13 2014-07-23 国家电网公司 Method for automatically generating IED network graph
CN115526015A (en) * 2022-11-03 2022-12-27 北京国科恒通科技股份有限公司 Command interaction-based power grid diagram generation method, device, medium and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090109219A1 (en) * 2007-10-30 2009-04-30 Advanced Micro Devices, Inc. Real-time mesh simplification using the graphics processing unit
US20100053205A1 (en) * 2008-09-03 2010-03-04 Debra Brandwein Method, apparatus, and system for displaying graphics using html elements
US20120092340A1 (en) * 2010-10-19 2012-04-19 Apple Inc. Systems, methods, and computer-readable media for manipulating graphical objects
CN103942345A (en) * 2014-05-13 2014-07-23 国家电网公司 Method for automatically generating IED network graph
CN115526015A (en) * 2022-11-03 2022-12-27 北京国科恒通科技股份有限公司 Command interaction-based power grid diagram generation method, device, medium and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王萍,岳斌,王险峰,林孔元,柳焕章,卢放,刘天斌: "电网计算数据库图形管理***的研究与实践", 计算机应用研究, no. 05, pages 114 - 116 *

Also Published As

Publication number Publication date
CN116050036B (en) 2023-06-13

Similar Documents

Publication Publication Date Title
CA2676487C (en) Method for emphasizing differences in graphical appearance between an original document and a modified document with annotations
US6232985B1 (en) Interactive, dynamic, automatic dimension arrangement generator for computer-aided drafting programs
CN109918604A (en) Page drawing method, apparatus, equipment and storage medium
MX2012012420A (en) Temporary formatting and charting of selected data.
CN111400899A (en) Processing method, system and storage medium for cable laying modeling
US20130120462A1 (en) Systems and methods for scaling visualizations
CN107885437A (en) multi-element interaction method, device, equipment and storage medium
CN111598971B (en) Universal vector diagram drawing method, system and readable medium
CN116245052A (en) Drawing migration method, device, equipment and storage medium
CN112416332B (en) Graphical programming interface display method, device, equipment and medium
CN116050036B (en) Power grid diagram construction method, device and equipment
CN115526015B (en) Command interaction-based power grid diagram generation method, device, medium and equipment
CN112417687A (en) Intelligent image examination method and related device
CN114397986B (en) View display system of station interface
US5651105A (en) Graphic input and display of network based computations
CN113126866B (en) Object determination method, device, electronic equipment and storage medium
CN114090004A (en) Nuclear power DCS (distributed control System) man-machine interface combination icon conversion method and device
CN113537376A (en) Neural network technology-based power grid monitoring system equipment element connection checking method
JP2906826B2 (en) Equipment management system
JP2001202402A (en) Drawing generating device and method for displaying drawing alteration place
CN106547528A (en) A kind of quick interface arrangement method and device
CN112199753A (en) Shear wall generation method and device, electronic equipment and storage medium
CN111063003A (en) Method and system for manufacturing mine distribution map
CN110853016A (en) Automatic checking method and device for topographic map publishing quality
JP3353212B2 (en) Leader automatic creation method and leader automatic creation system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant