CN107688640B - Method and device for consulting drawings of secondary equipment of transformer substation - Google Patents

Method and device for consulting drawings of secondary equipment of transformer substation Download PDF

Info

Publication number
CN107688640B
CN107688640B CN201710735467.4A CN201710735467A CN107688640B CN 107688640 B CN107688640 B CN 107688640B CN 201710735467 A CN201710735467 A CN 201710735467A CN 107688640 B CN107688640 B CN 107688640B
Authority
CN
China
Prior art keywords
user
drawing number
mapping relation
touched
clicked
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.)
Active
Application number
CN201710735467.4A
Other languages
Chinese (zh)
Other versions
CN107688640A (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.)
Shandong Electric Power Transmission and Substation Engineering Co
Original Assignee
Shandong Electric Power Transmission and Substation Engineering Co
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 Shandong Electric Power Transmission and Substation Engineering Co filed Critical Shandong Electric Power Transmission and Substation Engineering Co
Priority to CN201710735467.4A priority Critical patent/CN107688640B/en
Publication of CN107688640A publication Critical patent/CN107688640A/en
Application granted granted Critical
Publication of CN107688640B publication Critical patent/CN107688640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method and a device for consulting drawings of secondary equipment of a transformer substation, which comprises the following steps: drawing numbers are extracted; establishing a mapping relation between a drawing number and a drawing path; monitoring a click/touch event of a user, and acquiring clicked/touched text content; and when the text content is the drawing number, automatically jumping to the drawing corresponding to the drawing number according to the mapping relation. Through establishing the mapping relation between the drawing number and the drawing path, after the clicking/touching event of the user is monitored, the clicked/touched text content is obtained, and when the text content is the drawing number, the drawing corresponding to the drawing number can be automatically jumped to according to the mapping relation, so that the drawing can be quickly searched, the operation is simple, the problem that the drawing is time-consuming and labor-consuming to search due to the fact that the drawing is various and the catalog is long is solved, and the drawing searching efficiency is improved.

Description

Method and device for consulting drawings of secondary equipment of transformer substation
Technical Field
The invention relates to the technical field of electric power, in particular to a method and a device for consulting drawings of secondary equipment of a transformer substation.
Background
In the electric power construction, when carrying out the substation equipment debugging, the debugging personnel need look up the secondary equipment drawing of mutual correlation, through the serial number of the other drawings of mark on the record current drawing, return to the catalogue page, look for and open the drawing according to the serial number. Because the drawing checking at the current stage is mainly carried out by depending on an electronic version drawing system, compared with the conventional paper drawing checking mode, the method has the advantages of convenience in searching and the like.
However, with the gradual expansion of the scale of the power grid, more and more drawings are involved in daily operation, maintenance, overhaul work and the like of the substation. When the drawings related to the current drawing need to be consulted, the time and labor are wasted for searching the target drawing number in the catalog due to the fact that the number of the drawing volume is large and the catalog is long.
In order to solve the above problems, chinese patent ZL201310202226.5 discloses a secondary drawing information identification and reading system, which encapsulates a certain part of circuits in a hyperlink manner, and when a certain encapsulation merging module link of the drawing is clicked, the detailed wiring diagram of the specific encapsulation small module constituting the module can be linked, thereby facilitating the reading of the drawing. However, in this solution, a user needs to determine and implement a package link to a certain part of the drawing in advance, that is, the user needs to determine a display mode of each module in the drawing and select to display all contents or package, when the user needs to look up a target drawing, it is necessary to know in which link the target drawing is, which is likely to cause inflexibility in searching the associated drawing, and the package link needs to be implemented in a programming mode in advance, which is tedious to operate.
Disclosure of Invention
The invention aims to provide a method and a device for looking up drawings of secondary equipment of a transformer substation.
In order to achieve the technical purpose, the invention provides a method for consulting drawings of secondary equipment of a transformer substation, which comprises the following steps of:
drawing numbers are extracted;
establishing a mapping relation between a drawing number and a drawing path;
monitoring a click/touch event of a user, and acquiring clicked/touched text content;
and when the text content is the drawing number, automatically jumping to the drawing corresponding to the drawing number according to the mapping relation.
Preferably, the drawing number extraction specifically comprises the following steps:
acquiring the names of all drawings;
and extracting the drawing number from the drawing name according to the regular expression matching.
Preferably, the mapping relationship is stored in a data structure JSON.
The invention also provides a device for consulting the drawing of the secondary equipment of the transformer substation, which comprises:
the drawing number extraction module is used for extracting the drawing number;
the mapping relation establishing module is used for establishing the mapping relation between the drawing number and the drawing path;
the text acquisition module is used for monitoring click/touch events of a user and acquiring clicked/touched text contents;
and the automatic skipping module is used for automatically skipping to the drawing corresponding to the drawing number according to the mapping relation when the text content is the drawing number.
Preferably, the drawing number extraction module includes a drawing name acquisition unit and an extraction unit,
the drawing name acquisition unit is used for acquiring the names of all drawings;
the extraction unit is used for extracting drawing numbers from the drawing names according to the regular expression matching.
Preferably, the mapping relationship is stored in a data structure JSON.
The effect provided in the summary of the invention is only the effect of the embodiment, not all the effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
according to the method and the device, the mapping relation between the drawing number and the drawing path is established, the clicked/touched text content is obtained after the clicking/touching event of the user is monitored, and when the text content is the drawing number, the drawing corresponding to the drawing number can be automatically skipped to according to the mapping relation, so that the drawing can be quickly searched, the operation is simple, the problems that the drawing is time-consuming and labor-consuming in the process of searching due to the fact that the drawing is various and the catalog is long are solved, and the drawing searching efficiency is improved.
The technical scheme of the invention can be applied to a PC or a mobile terminal, the user does not need to package, and the user can automatically jump to the searched drawing by clicking or touching the serial number on the drawing, so that debugging personnel can conveniently look up the secondary equipment drawings which are related to each other, the searching is convenient, the time and the labor are saved, and the drawing looking-up efficiency is improved.
Drawings
Fig. 1 is a flowchart of a method for referring to a drawing of secondary equipment of a transformer substation, provided in an embodiment of the present invention;
fig. 2 is a drawing demonstration schematic diagram of a transformer substation secondary equipment drawing referring method provided in the embodiment of the invention;
fig. 3 is an overall block diagram of a device for referring to drawings of secondary equipment of a transformer substation provided in an embodiment of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
The method for referring to the drawings of the secondary equipment of the transformer substation provided by the embodiment of the invention is described in detail below with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present invention provides a method for referring to drawings of secondary equipment of a substation, including the following steps:
drawing serial number extraction
Firstly, data organization is carried out, SVG (Scalable Vector Graphics) drawing files are placed under the same folder, the folder path is recorded, and the names of all the drawing files are obtained through cmd commands. And extracting the unique number of the drawing from the drawing name by adopting JavaScript through regular expression matching.
And then, performing regular expression matching for retrieving and replacing texts conforming to a certain rule, wherein the regular expression matching is commonly used for a text editor, certain specific characters or specific character combinations defined in advance are adopted to form a regular character string, and the regular character string is used for expressing filtering matching of the character string. By the regular expression, it is possible to retrieve whether or not a regular character string exists in the character string, and to obtain a specific portion from the character string.
In the embodiment of the invention, the rule character string is extracted from the name character string of the drawing file according to the specific rule of the drawing number, so that the drawing numbers corresponding to the drawing files one by one are obtained.
Secondly, establishing a mapping relation between the drawing number and the drawing path
Because the drawing files correspond to the drawing numbers one by one, the drawing paths correspond to the drawing numbers one by one. By establishing the mapping relation between the drawing number and the drawing path, the drawing path corresponding to the drawing number can be pointed through the drawing number, and the drawing file is convenient to search. The mapping relationship between the drawing number and the drawing path is stored in a data structure JSON (JavaScript Object Notation).
Third, monitoring the click/touch behavior of the user
And binding a click/touch event to the drawing object to monitor the clicking/touching behavior of the user. When a user clicks at a PC end or touches at a mobile end, a program monitors the clicking/touching behavior of the user so as to trigger a click/touch event, and executes recording of the text contents clicked/touched by the user in a callback function so as to acquire the text contents clicked/touched by the user.
Fourth, drawing skipping
Judging whether the text content is other drawing numbers, if so, inquiring the drawing path corresponding to the drawing number through the drawing number according to the mapping relation between the drawing number and the drawing path stored in the data structure JSON, and jumping to the drawing, thereby opening the drawing file corresponding to the drawing number clicked/touched by the user.
As shown in fig. 2, a user gesture event is monitored through JavaScript, when a user touches a display screen corresponding to a drawing, whether a touch position of the user is a drawing number is analyzed, when the touch position of the user is located at an arrow position, a system automatically analyzes text content at the touch position and obtains text content "D1213-13", whether the drawing number of the character string exists is inquired in a data structure JSON, a path of a drawing file corresponding to the drawing number is found according to a mapping relation between the drawing number and the drawing path, and the file is opened, so that automatic skipping of the drawing file is realized.
Through establishing the mapping relation between the drawing number and the drawing path, after the clicking/touching event of the user is monitored, the clicked/touched text content is obtained, and when the text content is the drawing number, the drawing corresponding to the drawing number can be automatically jumped to according to the mapping relation, so that the drawing can be quickly searched, the operation is simple, the problem that the drawing is time-consuming and labor-consuming to search due to the fact that the drawing is various and the catalog is long is solved, and the drawing searching efficiency is improved.
As shown in fig. 3, an embodiment of the present invention further provides a device for referring to drawings of secondary equipment of a substation, including: the system comprises a drawing number extraction module, a mapping relation establishment module, a text acquisition module and an automatic skip module.
And the drawing number extraction module is used for extracting the drawing number.
The drawing number extraction module comprises a drawing name acquisition unit and an extraction unit.
The drawing name acquisition unit is used for acquiring the names of all drawings;
and placing the SVG drawing files into the same folder, recording the path of the folder, and acquiring the names of all the drawing files through cmd commands.
The extraction unit is used for extracting drawing numbers from the drawing names according to the regular expression matching.
And matching by adopting a regular expression, extracting a specific rule character string from the name character string of the drawing file according to a specific rule of the drawing number, and acquiring the drawing numbers corresponding to the drawing files one by adopting JavaScript.
And the mapping relation establishing module is used for establishing the mapping relation between the drawing number and the drawing path.
Because the drawing files correspond to the drawing numbers one by one, the drawing paths correspond to the drawing numbers one by one. By establishing the mapping relation between the drawing number and the drawing path, the drawing path corresponding to the drawing number can be pointed through the drawing number, and the drawing file is convenient to search. The mapping relationship between the drawing number and the drawing path is stored in the data structure JSON.
The text acquisition module is used for monitoring click/touch events of the user and acquiring clicked/touched text contents.
And binding a click/touch event to the drawing object to monitor the clicking/touching behavior of the user. When a user clicks at a PC end or touches at a mobile end, a program monitors the clicking/touching behavior of the user so as to trigger a click/touch event, and executes recording of the text contents clicked/touched by the user in a callback function so as to acquire the text contents clicked/touched by the user.
And the automatic skipping module is used for automatically skipping to the drawing corresponding to the drawing number according to the mapping relation when the text content is the drawing number.
Judging whether the text content is other drawing numbers, if so, inquiring the drawing path corresponding to the drawing number through the drawing number according to the mapping relation between the drawing number and the drawing path stored in the data structure JSON, and jumping to the drawing, thereby opening the drawing file corresponding to the drawing number clicked/touched by the user.
The technical scheme of the invention can be applied to a PC or a mobile terminal, the user does not need to package, and the user can automatically jump to the searched drawing by clicking or touching the serial number on the drawing, so that debugging personnel can conveniently look up the secondary equipment drawings which are related to each other, the searching is convenient, the time and the labor are saved, and the drawing looking-up efficiency is improved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (4)

1. A method for consulting drawings of secondary equipment of a transformer substation is characterized by comprising the following steps:
drawing numbers are extracted;
establishing a mapping relation between a drawing number and a drawing path;
monitoring a click/touch event of a user, and acquiring clicked/touched text content;
when the text content is a drawing number, automatically jumping to the drawing corresponding to the drawing number according to the mapping relation;
the drawing number extraction specifically comprises the following steps:
performing data organization, putting the SVG drawing files into the same folder, recording the path of the folder, and acquiring the names of all the drawing files through cmd commands;
carrying out regular expression matching;
searching whether a regular character string exists in the character string through a regular expression, and acquiring a drawing number from the drawing name character string;
the monitoring of the click/touch behavior of the user specifically comprises the following steps:
when a user clicks at a PC end or touches at a mobile end, a program monitors the clicking/touching behavior of the user so as to trigger a click/touch event, and executes recording of the text contents clicked/touched by the user in a callback function so as to acquire the text contents clicked/touched by the user;
the step of automatically jumping to the drawing corresponding to the drawing number according to the mapping relation specifically comprises the following steps: judging whether the text content is other drawing numbers, if so, inquiring the drawing path corresponding to the drawing number through the drawing number according to the mapping relation between the drawing number and the drawing path stored in the data structure JSON, and jumping to the drawing, thereby opening the drawing file corresponding to the drawing number clicked/touched by the user.
2. The method for referring to the drawing of the secondary equipment of the substation as claimed in claim 1, wherein the mapping relationship is stored in a data structure JSON.
3. The utility model provides a device is looked up to transformer substation's secondary equipment drawing which characterized in that includes:
the drawing number extraction module is used for extracting the drawing number;
the mapping relation establishing module is used for establishing the mapping relation between the drawing number and the drawing path;
the text acquisition module is used for monitoring click/touch events of a user and acquiring clicked/touched text contents;
the automatic skipping module is used for automatically skipping to the drawing corresponding to the drawing number according to the mapping relation when the text content is the drawing number;
the drawing number extraction module comprises a drawing name acquisition unit and an extraction unit,
the drawing name acquisition unit is used for placing the SVG drawing files into the same folder, recording the path of the folder and acquiring the names of all the drawing files through cmd commands;
the extraction unit is used for extracting a specific rule character string from a drawing file name character string according to a specific rule of a drawing number by adopting regular expression matching, and acquiring the drawing numbers corresponding to the drawing files one by adopting JavaScript;
the monitoring of the click/touch behavior of the user specifically comprises the following steps:
when a user clicks at a PC end or touches at a mobile end, a program monitors the clicking/touching behavior of the user so as to trigger a click/touch event, and executes recording of the text contents clicked/touched by the user in a callback function so as to acquire the text contents clicked/touched by the user;
the step of automatically jumping to the drawing corresponding to the drawing number according to the mapping relation specifically comprises the following steps: judging whether the text content is other drawing numbers, if so, inquiring the drawing path corresponding to the drawing number through the drawing number according to the mapping relation between the drawing number and the drawing path stored in the data structure JSON, and jumping to the drawing, thereby opening the drawing file corresponding to the drawing number clicked/touched by the user.
4. The device for referring to the drawing of the secondary equipment of the substation of claim 3, wherein the mapping relation is stored in a data structure JSON.
CN201710735467.4A 2017-08-24 2017-08-24 Method and device for consulting drawings of secondary equipment of transformer substation Active CN107688640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710735467.4A CN107688640B (en) 2017-08-24 2017-08-24 Method and device for consulting drawings of secondary equipment of transformer substation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710735467.4A CN107688640B (en) 2017-08-24 2017-08-24 Method and device for consulting drawings of secondary equipment of transformer substation

Publications (2)

Publication Number Publication Date
CN107688640A CN107688640A (en) 2018-02-13
CN107688640B true CN107688640B (en) 2021-02-23

Family

ID=61154918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710735467.4A Active CN107688640B (en) 2017-08-24 2017-08-24 Method and device for consulting drawings of secondary equipment of transformer substation

Country Status (1)

Country Link
CN (1) CN107688640B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984751A (en) * 2018-07-17 2018-12-11 广东电网有限责任公司 A kind of processing method and processing device of substation equipment drawing
CN110795809B (en) * 2019-11-07 2023-08-29 国网河北省电力有限公司电力科学研究院 Method, system and medium for automatically picking up connection relation of electric secondary circuit of transformer substation based on CAD (computer aided design) drawing
CN113312952B (en) * 2020-12-31 2024-04-30 南京太司德智能电气有限公司 Method for checking consistency of power graphic picture association engineering in svg format
CN115202542B (en) * 2022-07-26 2023-06-02 南方电网调峰调频发电有限公司检修试验分公司 Automatic link and skip method for circuit ports in electronic drawing based on OCR technology

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001312597A (en) * 2000-04-28 2001-11-09 Yasuo Tomoyuki Banking service conducted at signal site
CN102375843A (en) * 2010-08-19 2012-03-14 英业达股份有限公司 Server, system and method for searching data content based on key value of target data
CN102436477A (en) * 2011-10-11 2012-05-02 鸿富锦精密工业(深圳)有限公司 Device with related content search function and method
CN103246751A (en) * 2013-05-28 2013-08-14 国家电网公司 Secondary drawing information identification and reading system
CN103984774A (en) * 2014-06-06 2014-08-13 国家电网公司 Method and system for viewing drawings of substation
CN106844364A (en) * 2015-12-03 2017-06-13 福建福昕软件开发股份有限公司 A kind of interconnected method of document information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001312597A (en) * 2000-04-28 2001-11-09 Yasuo Tomoyuki Banking service conducted at signal site
CN102375843A (en) * 2010-08-19 2012-03-14 英业达股份有限公司 Server, system and method for searching data content based on key value of target data
CN102436477A (en) * 2011-10-11 2012-05-02 鸿富锦精密工业(深圳)有限公司 Device with related content search function and method
CN103246751A (en) * 2013-05-28 2013-08-14 国家电网公司 Secondary drawing information identification and reading system
CN103984774A (en) * 2014-06-06 2014-08-13 国家电网公司 Method and system for viewing drawings of substation
CN106844364A (en) * 2015-12-03 2017-06-13 福建福昕软件开发股份有限公司 A kind of interconnected method of document information

Also Published As

Publication number Publication date
CN107688640A (en) 2018-02-13

Similar Documents

Publication Publication Date Title
CN107688640B (en) Method and device for consulting drawings of secondary equipment of transformer substation
US10929449B2 (en) Generating a structured document guiding view
CN102272757A (en) Method for server-side logging of client browser state through markup language
CN111310693B (en) Intelligent labeling method, device and storage medium for text in image
CN109308254B (en) Test method, test device and test equipment
CN102591874B (en) Prompt method, terminal and server
CN103164300A (en) Mobile terminal touch screen automatic testing method and device
CN102779169A (en) Extracting method and device for webpage content based on HTML (Hypertext Markup Language) label
CN105868166A (en) Regular expression generation method and system
CN104391786A (en) Webpage automatic test system and method thereof
CN103678511A (en) Method and device for extracting webpage content according to visualized template
CN110188165A (en) Contract template acquisition methods, device, storage medium and computer equipment
CN103455640A (en) Method and device for displaying file management interfaces
CN103678509A (en) Method and device for generating webpage template
US20160328110A1 (en) Method, system, equipment and device for identifying image based on image
US20150106701A1 (en) Input support method and information processing system
CN103488675A (en) Automatic precise extraction device for multi-webpage news comment contents
CN109710571B (en) File analysis method, device and storage medium
CN110688315A (en) Interface code detection report generation method, electronic device, and storage medium
CN102043560A (en) Method and device for realizing electronic document page turning
CN104298671A (en) Data statistics analysis method and device
CN104899203A (en) Webpage generating method, webpage generating device and terminal equipment
KR20140007233A (en) Method of providing keyword-map for electronic documents, and computer-readable recording medium with keyword-map program for the same
CN109062890A (en) A kind of label switching method and apparatus, computer readable storage medium
CN109710808A (en) A kind of analytic method of XML file, system, device and readable storage medium storing program for executing

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