CN113553634A - Equipment kilometer post import and export method and device, electronic equipment and storage medium - Google Patents

Equipment kilometer post import and export method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113553634A
CN113553634A CN202110720802.XA CN202110720802A CN113553634A CN 113553634 A CN113553634 A CN 113553634A CN 202110720802 A CN202110720802 A CN 202110720802A CN 113553634 A CN113553634 A CN 113553634A
Authority
CN
China
Prior art keywords
equipment
kilometer
plan
imported
panel
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
CN202110720802.XA
Other languages
Chinese (zh)
Other versions
CN113553634B (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.)
CRSC Urban Rail Transit Technology Co Ltd
Original Assignee
CRSC Urban Rail Transit 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 CRSC Urban Rail Transit Technology Co Ltd filed Critical CRSC Urban Rail Transit Technology Co Ltd
Priority to CN202110720802.XA priority Critical patent/CN113553634B/en
Priority claimed from CN202110720802.XA external-priority patent/CN113553634B/en
Publication of CN113553634A publication Critical patent/CN113553634A/en
Application granted granted Critical
Publication of CN113553634B publication Critical patent/CN113553634B/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

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention provides a method and a device for importing and exporting a device kilometer post, electronic equipment and a storage medium, wherein the method comprises the following steps: determining a kilometer sign table of equipment to be imported; analyzing the device kilometer post table to be imported, and importing the data in the device kilometer post table to be imported into a plan view panel; the header of the plan view panel is consistent with the header of the kilometer sign table of the equipment to be guided; and matching the equipment in the plan view panel with the equipment in the CAD electronic map, and importing the kilometer posts to be imported of the successfully matched equipment in the plan view panel into the equipment attributes of the corresponding equipment in the CAD electronic map. The method and the system realize the batch rapid import of the kilometers of each device, save the drawing and editing steps of the kilometers, and improve the drawing efficiency of designers.

Description

Equipment kilometer post import and export method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to a method and a device for importing and exporting a device kilometer post, electronic equipment and a storage medium.
Background
Computer aided design refers to the process of making and simulating physical design by using computer software to show the appearance, structure, color and other features of newly developed commodity. CAD (computer aided Design) software is the most widely used general computer aided Design and drawing software at present, and has strong two-dimensional drawing capability and editing function.
Because the urban rail transit line is short and long, the line is dozens of kilometers, the number of types of equipment on the line is large, and when the urban rail transit line is drawn in the CAD, the equipment in the line diagram has small space and dense arrangement. By using the drawing and editing functions of the CAD, the kilometer posts are manually added to each device in the urban rail transit line drawing, and the data are checked and aligned, so that a lot of time is consumed, the operation is inconvenient, and the accuracy of the data is difficult to ensure in the manual adding process of a great number of kilometer posts.
Disclosure of Invention
The invention provides a method and a device for importing and exporting a device kilometer post, electronic equipment and a storage medium, which are used for solving the defects of inconvenient operation and difficult guarantee of data accuracy caused by manual addition of the device kilometer post in the prior art.
The invention provides a method for importing and exporting a device kilometer post, which comprises the following steps:
determining a kilometer sign table of equipment to be imported;
analyzing the device kilometer post table to be imported, and importing the data in the device kilometer post table to be imported into a plan view panel; the header of the plan view panel is consistent with the header of the kilometer sign table of the equipment to be guided;
and matching the equipment in the plan view panel with the equipment in the CAD electronic map, and importing the kilometer posts to be imported of the successfully matched equipment in the plan view panel into the equipment attributes of the corresponding equipment in the CAD electronic map.
According to the method for importing and exporting the device kilometer posts, the device in the plan view panel is matched with the device in the CAD electronic map, and the kilometer posts to be imported of the successfully matched device in the plan view panel are imported into the device attributes of the corresponding device in the CAD electronic map, and the method specifically comprises the following steps:
matching the equipment in the plane drawing panel with the equipment in the CAD electronic map;
carrying out data verification on the kilometer post to be imported of the successfully matched equipment in the plan view panel;
and if the data passes the verification, importing the kilometer posts to be imported of the successfully matched equipment into the equipment attributes of the corresponding equipment in the CAD electronic map.
According to the method for importing and exporting the device kilometer posts provided by the invention, the data verification of the kilometer posts to be imported of the devices successfully matched in the plan view panel specifically comprises the following steps:
determining left and right adjacent equipment and kilometer marks of the equipment which is successfully matched in the plan view panel;
if the kilometer post to be led in of the successfully matched equipment is positioned between the kilometer posts of the left and right adjacent equipment, the data check is passed; otherwise, the data check fails.
According to the method for importing and exporting the device kilometer posts provided by the invention, the determination of the left and right adjacent devices and the kilometer posts thereof of the successfully matched devices in the plan view panel specifically comprises the following steps:
acquiring left and right adjacent equipment of the equipment which is successfully matched in the CAD electronic map;
and extracting the kilometer post of the corresponding equipment from the equipment attributes of the left and right adjacent equipment.
According to the method for importing and exporting the device kilometer posts provided by the invention, the device kilometer post table to be imported is analyzed, and data in the device kilometer post table to be imported is imported into a plan view panel, and then the method further comprises the following steps:
displaying kilometers marks to be led in of each device based on the plan view panel;
receiving a kilometer post updating operation triggered by a user;
and updating the kilometer posts to be led in of the corresponding equipment in the panel of the plan view based on the kilometer post updating operation.
According to the method for importing and exporting the device kilometer posts provided by the invention, the step of determining the device kilometer post table to be imported specifically comprises the following steps:
and carrying out format verification on the input form file, and taking the form file passing the format verification as the device kilometer post form to be imported.
According to the method for importing and exporting the device kilometer post provided by the invention, the method further comprises the following steps:
traversing all picture elements of the CAD electronic map, and acquiring equipment attribute information of each picture element; the equipment attribute information comprises a kilometer post of the corresponding equipment;
exporting the equipment attribute information of each primitive to the plane graph panel;
automatically creating a kilometer post form based on the form saving path; the header of the kilometer sign table is consistent with the header of the plan view panel;
and exporting the equipment attribute information of each graphic element stored in the plane drawing panel to the kilometer post table.
The invention also provides a device for importing and exporting the kilometer posts of the equipment, which comprises:
the table determining unit is used for determining a kilometer post table of the equipment to be imported;
the panel import unit is used for analyzing the equipment kilometer post table to be imported and importing the data in the equipment kilometer post table to be imported into a plan panel; the header of the plan view panel is consistent with the header of the kilometer sign table of the equipment to be guided;
and the CAD import unit is used for matching the equipment in the plan view panel with the equipment in the CAD electronic map and importing the kilometer posts to be imported of the equipment which is successfully matched in the plan view panel into the equipment attribute of the corresponding equipment in the CAD electronic map.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the method for importing and exporting the kilometer posts of the device.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the device kilometer sign import and export method as described in any of the above.
According to the method, the device, the electronic device and the storage medium for importing and exporting the device kilometer posts, data in a device kilometer post form to be imported are imported into the plane drawing panel, devices in the plane drawing panel are matched with devices in the CAD electronic map, and the device kilometer posts to be imported of the devices successfully matched in the plane drawing panel are imported into device attributes of the corresponding devices in the CAD electronic map, so that batch rapid import of the device kilometer posts is achieved, drawing and editing steps of the kilometer posts are omitted, and drawing efficiency of designers is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for importing and exporting kilometer posts in an apparatus according to the present invention;
FIG. 2 is a dataflow diagram of kilometer sign import and export provided by the present invention;
FIG. 3 is a schematic diagram of a batch import method of kilometers posts of the device provided by the present invention;
FIG. 4 is a schematic diagram of a batch exporting method of device kilometers posts provided by the present invention;
fig. 5 is a schematic structural diagram of the kilometer sign import and export device of the apparatus provided by the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a method for importing and exporting a device kilometer post according to an embodiment of the present invention, as shown in fig. 1, the method includes:
step 110, determining a kilometer post table of the equipment to be imported;
step 120, analyzing the device kilometer post table to be imported, and importing the data in the device kilometer post table to be imported into the plan view panel; the header of the panel of the plan view is consistent with the header of the kilometer sign table of the equipment to be led in;
and step 130, matching the equipment in the plan view panel with the equipment in the CAD electronic map, and importing the kilometer posts to be imported of the successfully matched equipment in the plan view panel into the equipment attributes of the corresponding equipment in the CAD electronic map.
Specifically, a device kilometer post table to be imported is obtained. The device kilometer post table stores the kilometer posts to be imported of each device which needs to be imported into the CAD electronic map. The device kilometer sign table may be in an xls format or other table format, and the table may include, in addition to the kilometer sign to be imported of each device, a serial number, a device type, and a device name of each device. Thus, the header of the device kilometer sign table may include four columns: "serial number", "type", "name", and "kilometer sign". Wherein, the "type" column is a device type, such as: the device comprises an annunciator, a shaft counting device, a responder and the like, wherein the name is the name of the device, and the kilometer post is the to-be-introduced kilometer post of the corresponding device.
Fig. 2 is a data flow diagram for importing and exporting kilometers posts, according to an embodiment of the present invention, as shown in fig. 2, a device kilometer post table to be imported is analyzed, and data in the device kilometer post table to be imported is imported into a plan view panel. Wherein, the header of the panel of the plan view is consistent with the header of the kilometer sign table of the equipment to be guided in. Here, the header contents and the number of columns of the plan view panel are set to match the read device kilometer sign table, and the header font, the font size, the length and the width of the table, the base color of the header, and the like of the plan view panel may be set. The number of lines of data stored in the plan view panel is determined by the number of lines of the kilometer scale table of the device being read. And buttons of panel-to-diagram and EXCEL can be arranged below the plan view panel, so that batch import operation on the kilometer posts is facilitated.
If the user clicks the 'panel to picture' button, the equipment in the panel of the plan view can be matched with the equipment in the CAD electronic map, and the kilometer posts to be imported of the equipment which is successfully matched in the panel of the plan view are imported into the equipment attributes of the corresponding equipment in the CAD electronic map. The name columns in the panel of the plan view can be matched with the names of the devices in the CAD electronic map, and the matching is successful if the names are consistent, so that the kilometer sign values to be imported of the devices in the panel of the plan view can be filled in the device attributes of the corresponding devices in the CAD electronic map. After the equipment kilometer posts are successfully led in batch, the equipment names and the kilometer posts of all the equipment can be displayed in a circuit diagram of the CAD in a fixed format in an aligned mode through the batch production of the kilometer posts.
According to the method provided by the embodiment of the invention, the data in the kilometer post form of the equipment to be imported is imported into the panel of the plan view, the equipment in the panel of the plan view is matched with the equipment in the CAD electronic map, and the kilometer post to be imported of the equipment which is successfully matched in the panel of the plan view is imported into the equipment attribute of the corresponding equipment in the CAD electronic map, so that the batch quick import of the kilometer posts of each equipment is realized, the drawing and editing steps of the kilometer posts are omitted, and the drawing efficiency of designers is improved.
Based on the above embodiment, step 130 specifically includes:
matching the equipment in the plane drawing panel with the equipment in the CAD electronic map;
carrying out data verification on the kilometer post to be imported of the successfully matched equipment in the plan view panel;
and if the data passes the verification, importing the kilometer posts to be imported of the successfully matched equipment into the equipment attributes of the corresponding equipment in the CAD electronic map.
Specifically, after the device in the plan view panel is matched with the device in the CAD electronic map to obtain the correspondence between the device in the plan view panel and the device in the CAD electronic map, data verification may be performed on the kilometer post to be imported of the device in the plan view panel that is successfully matched, and it is checked whether the data of the kilometer post to be imported is abnormal. And only when the data check is passed, importing the kilometer posts to be imported of the successfully matched equipment into the equipment attributes of the corresponding equipment in the CAD electronic map so as to ensure the accuracy of the imported kilometer posts.
Based on any of the above embodiments, the data verification of the kilometer posts to be imported of the successfully matched devices in the plan view panel specifically includes:
determining left and right adjacent equipment and kilometer marks thereof of equipment successfully matched in the plan view panel;
if the kilometer post to be imported of the successfully matched equipment is positioned between the kilometer posts of the left and right adjacent equipment, the data check is passed; otherwise, the data check fails.
Specifically, the kilometer posts of the devices deployed along the line on the circuit diagram are generally increased or decreased, so that the data verification can be performed on the kilometer posts to be imported of the successfully matched devices in the plan view panel according to the rule. Specifically, the left and right neighboring devices and their kilometers posts of successfully matched devices in the floor plan panel may be determined. And then, judging whether the kilometer post to be led in of the successfully matched equipment is positioned between the kilometer posts of the left and right adjacent equipment. If so, the data check is passed, and the to-be-imported kilometer post can be filled in the equipment attribute; otherwise, the data check fails, and a 'kilometer sign value error' can be prompted.
Based on any of the above embodiments, determining the left and right adjacent devices and their kilometers posts of the successfully matched device in the plan view panel specifically includes:
acquiring left and right adjacent equipment of the equipment which is successfully matched in the CAD electronic map;
and extracting the kilometer posts of the corresponding equipment from the equipment attributes of the left and right adjacent equipment.
Specifically, left and right adjacent devices of the device successfully matched in the plan view panel are searched from the CAD electronic map, and kilometers of the corresponding device are extracted from the device attributes of the left and right adjacent devices.
Based on any of the above embodiments, step 120 further includes:
displaying kilometer posts to be led in of each device based on a plan view panel;
receiving a kilometer post updating operation triggered by a user;
and updating the kilometer posts to be led in of the corresponding equipment in the panel of the plan view based on the kilometer post updating operation.
Specifically, the kilometer posts to be imported of each device imported from the device kilometer post table can be displayed on the plan view panel, so that designers can more intuitively view and check the kilometer posts to be imported of each device. In addition, the plan view panel also supports a content modification function, namely, a user can modify the kilometer posts to be imported of each device through the plan view panel. Here, a kilometer post update operation triggered by a user may be received, and a to-be-introduced kilometer post of a corresponding device in the plan view panel may be updated based on the kilometer post update operation.
Based on any of the above embodiments, step 110 specifically includes:
and carrying out format verification on the input form file, and taking the form file passing the format verification as an equipment kilometer post form to be imported.
Specifically, format check is performed on the form file input by the user, and whether the header of the form file conforms to the standard format is judged. For example, whether the header of the table file contains four columns of "sequence number", "type", "name", and "kilometer sign". And if the format check is passed, the form file is used as an equipment kilometer post form to be imported to conduct kilometer post import.
Based on any of the above embodiments, fig. 3 is a schematic diagram of an apparatus kilometer sign batch import method provided by an embodiment of the present invention, and as shown in fig. 3, the method includes:
reading a required equipment kilometer post form through an 'import Excel' function, and checking whether a read form header conforms to a standard format or not;
if yes, storing the type, name and kilometer post of the equipment in the table as a matrix type;
setting the style of a plane diagram panel, and transmitting the read table contents into the panel and displaying the table contents;
if the kilometer post needs to be modified, the table can be modified before the import, and the content of the kilometer post column can also be modified in the panel;
sequentially traversing the stored contents in the panel through a panel-to-image function, searching the full-image primitives, and matching according to the equipment name;
and if the equipment kilometer post with the consistent name stored in the panel is successfully verified, the equipment kilometer post is transmitted into the equipment attribute of the corresponding equipment in the diagram, and the kilometer post is updated on the line diagram in real time.
Wherein, the automatic verification process of kilometer post includes:
acquiring devices with consistent names stored in a panel;
searching equipment on the left side and the right side of the current equipment in the circuit diagram, and taking out kilometer posts of the equipment on the left side and the right side;
comparing the kilometer post of the current equipment with the kilometer posts of the left and right equipment;
if the kilometer posts are sequentially increased from left to right in the circuit diagram, namely the kilometer post of the current equipment is larger than the kilometer post of the left equipment and smaller than the kilometer post of the right equipment, the verification is passed; otherwise, giving a prompt.
Based on any of the above embodiments, the method further comprises:
traversing all picture elements of the CAD electronic map, and acquiring equipment attribute information of each picture element; the equipment attribute information comprises a kilometer post of the corresponding equipment;
exporting the equipment attribute information of each primitive to a plane graph panel;
automatically creating a kilometer post form based on the form saving path; the header of the kilometer mark table is consistent with the header of the plan view panel;
and exporting the equipment attribute information of each primitive stored in the panel of the plane drawing to a kilometer post table.
Specifically, as shown in fig. 2, when the kilometer posts of each device in the CAD electronic map are exported in batches, the full-map primitives of the CAD electronic map may be traversed first, and the device attribute information of each primitive may be obtained. The device attribute information includes a kilometer post of the corresponding device. And exporting the equipment attribute information of each primitive to the plane drawing panel. And then, automatically creating a kilometer post table based on the table saving path, and exporting the equipment attribute information of each primitive saved in the panel of the plane drawing to the kilometer post table. Wherein, the header of the kilometer sign table is consistent with the header of the plan view panel.
According to the method provided by the embodiment of the invention, the equipment attribute information of each graphic element in the CAD electronic map is exported to the plane graph panel, and then the equipment attribute information of each graphic element stored in the plane graph panel is exported to the kilometer post table, so that the batch rapid export of the kilometer posts of each equipment is realized.
Based on any of the above embodiments, fig. 4 is a schematic diagram of a device kilometer sign batch exporting method provided by the embodiment of the present invention, as shown in fig. 4, the method includes:
traversing all picture elements of the CAD electronic map through a picture-to-panel function, acquiring equipment attribute information of each picture element, and storing the equipment attribute information of each picture element to a plane drawing panel;
and selecting a table storage path and defining a file name through the function of exporting Excel, automatically creating a kilometer sign table, and exporting the equipment attribute information of each primitive stored in the panel of the plane graph to the kilometer sign table.
Based on any of the above embodiments, fig. 5 is a schematic structural diagram of an apparatus for importing and exporting a kilometer sign into and out of a device provided by an embodiment of the present invention, as shown in fig. 5, the apparatus includes: table determination unit 510, panel import unit 520, and CAD import unit 530.
The table determining unit 510 is configured to determine a device kilometer sign table to be imported;
the panel import unit 520 is configured to analyze the device kilometer sign table to be imported, and import data in the device kilometer sign table to be imported into the plan panel; the header of the panel of the plan view is consistent with the header of the kilometer sign table of the equipment to be led in;
the CAD importing unit 530 is configured to match a device in the plan view panel with a device in the CAD electronic map, and import a to-be-imported kilometer sign of the successfully matched device in the plan view panel into a device attribute of a corresponding device in the CAD electronic map.
According to the device provided by the embodiment of the invention, the data in the kilometer post form of the equipment to be imported is imported into the plan view panel, the equipment in the plan view panel is matched with the equipment in the CAD electronic map, and the kilometer post to be imported of the equipment which is successfully matched in the plan view panel is imported into the equipment attribute of the corresponding equipment in the CAD electronic map, so that the batch quick import of the kilometer posts of each equipment is realized, the drawing and editing steps of the kilometer posts are omitted, and the drawing efficiency of designers is improved.
Based on any of the above embodiments, the CAD importing unit 530 is specifically configured to:
matching the equipment in the plane drawing panel with the equipment in the CAD electronic map;
carrying out data verification on the kilometer post to be imported of the successfully matched equipment in the plan view panel;
and if the data passes the verification, importing the kilometer posts to be imported of the successfully matched equipment into the equipment attributes of the corresponding equipment in the CAD electronic map.
Based on any of the above embodiments, the data verification of the kilometer posts to be imported of the successfully matched devices in the plan view panel specifically includes:
determining left and right adjacent equipment and kilometer marks thereof of equipment successfully matched in the plan view panel;
if the kilometer post to be imported of the successfully matched equipment is positioned between the kilometer posts of the left and right adjacent equipment, the data check is passed; otherwise, the data check fails.
Based on any of the above embodiments, determining the left and right adjacent devices and their kilometers posts of the successfully matched device in the plan view panel specifically includes:
acquiring left and right adjacent equipment of the equipment which is successfully matched in the CAD electronic map;
and extracting the kilometer posts of the corresponding equipment from the equipment attributes of the left and right adjacent equipment.
Specifically, left and right adjacent devices of the device successfully matched in the plan view panel are searched from the CAD electronic map, and kilometers of the corresponding device are extracted from the device attributes of the left and right adjacent devices.
Based on any embodiment above, the panel import unit 520 is further configured to:
displaying kilometer posts to be led in of each device based on a plan view panel;
receiving a kilometer post updating operation triggered by a user;
and updating the kilometer posts to be led in of the corresponding equipment in the panel of the plan view based on the kilometer post updating operation.
Based on any of the above embodiments, the table determining unit 510 is specifically configured to:
and carrying out format verification on the input form file, and taking the form file passing the format verification as an equipment kilometer post form to be imported.
Based on any of the above embodiments, the apparatus further comprises a derivation unit configured to:
traversing all picture elements of the CAD electronic map, and acquiring equipment attribute information of each picture element; the equipment attribute information comprises a kilometer post of the corresponding equipment;
exporting the equipment attribute information of each primitive to a plane graph panel;
automatically creating a kilometer post form based on the form saving path; the header of the kilometer mark table is consistent with the header of the plan view panel;
and exporting the equipment attribute information of each primitive stored in the panel of the plane drawing to a kilometer post table.
The device provided by the embodiment of the invention can realize the rapid batch export of the kilometers of each device by exporting the device attribute information of each primitive of the CAD electronic map to the plane drawing panel and exporting the device attribute information of each primitive stored in the plane drawing panel to the kilometer sign table.
Fig. 6 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 6: a processor (processor)610, a communication Interface (Communications Interface)620, a memory (memory)630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 communicate with each other via the communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform a device kilometer sign import export method comprising: determining a kilometer sign table of equipment to be imported; analyzing the device kilometer post table to be imported, and importing the data in the device kilometer post table to be imported into a plan view panel; the header of the plan view panel is consistent with the header of the kilometer sign table of the equipment to be guided; and matching the equipment in the plan view panel with the equipment in the CAD electronic map, and importing the kilometer posts to be imported of the successfully matched equipment in the plan view panel into the equipment attributes of the corresponding equipment in the CAD electronic map.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer being capable of executing the method for importing and exporting device kilometer posts provided by the above methods, the method including: determining a kilometer sign table of equipment to be imported; analyzing the device kilometer post table to be imported, and importing the data in the device kilometer post table to be imported into a plan view panel; the header of the plan view panel is consistent with the header of the kilometer sign table of the equipment to be guided; and matching the equipment in the plan view panel with the equipment in the CAD electronic map, and importing the kilometer posts to be imported of the successfully matched equipment in the plan view panel into the equipment attributes of the corresponding equipment in the CAD electronic map.
In yet another aspect, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the method for importing and exporting the device kilometer posts provided by the above methods, the method comprising: determining a kilometer sign table of equipment to be imported; analyzing the device kilometer post table to be imported, and importing the data in the device kilometer post table to be imported into a plan view panel; the header of the plan view panel is consistent with the header of the kilometer sign table of the equipment to be guided; and matching the equipment in the plan view panel with the equipment in the CAD electronic map, and importing the kilometer posts to be imported of the successfully matched equipment in the plan view panel into the equipment attributes of the corresponding equipment in the CAD electronic map.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for importing and exporting a device kilometer post, comprising the following steps:
determining a kilometer sign table of equipment to be imported;
analyzing the device kilometer post table to be imported, and importing the data in the device kilometer post table to be imported into a plan view panel; the header of the plan view panel is consistent with the header of the kilometer sign table of the equipment to be guided;
and matching the equipment in the plan view panel with the equipment in the CAD electronic map, and importing the kilometer posts to be imported of the successfully matched equipment in the plan view panel into the equipment attributes of the corresponding equipment in the CAD electronic map.
2. The method according to claim 1, wherein the matching of the devices in the plan view panel with the devices in the CAD electronic map and the importing of the to-be-imported kilometer posts of the successfully-matched devices in the plan view panel into the device attributes of the corresponding devices in the CAD electronic map specifically comprises:
matching the equipment in the plane drawing panel with the equipment in the CAD electronic map;
carrying out data verification on the kilometer post to be imported of the successfully matched equipment in the plan view panel;
and if the data passes the verification, importing the kilometer posts to be imported of the successfully matched equipment into the equipment attributes of the corresponding equipment in the CAD electronic map.
3. The method for importing and exporting the device kilometer posts according to claim 2, wherein the data verification of the kilometer posts to be imported of the devices successfully matched in the plan view panel specifically comprises:
determining left and right adjacent equipment and kilometer marks of the equipment which is successfully matched in the plan view panel;
if the kilometer post to be led in of the successfully matched equipment is positioned between the kilometer posts of the left and right adjacent equipment, the data check is passed; otherwise, the data check fails.
4. The method according to claim 3, wherein the determining the neighboring devices and their kilometers of the successfully matched devices in the plan view panel specifically comprises:
acquiring left and right adjacent equipment of the equipment which is successfully matched in the CAD electronic map;
and extracting the kilometer post of the corresponding equipment from the equipment attributes of the left and right adjacent equipment.
5. The method according to any one of claims 1 to 4, wherein the parsing the device kilometer post table to be imported and importing data in the device kilometer post table to be imported into a floor plan panel further includes:
displaying kilometers marks to be led in of each device based on the plan view panel;
receiving a kilometer post updating operation triggered by a user;
and updating the kilometer posts to be led in of the corresponding equipment in the panel of the plan view based on the kilometer post updating operation.
6. The method according to any one of claims 1 to 4, wherein the determining of the device kilometer post table to be imported specifically includes:
and carrying out format verification on the input form file, and taking the form file passing the format verification as the device kilometer post form to be imported.
7. The device kilometer sign import/export method of claim 1, further comprising:
traversing all picture elements of the CAD electronic map, and acquiring equipment attribute information of each picture element; the equipment attribute information comprises a kilometer post of the corresponding equipment;
exporting the equipment attribute information of each primitive to the plane graph panel;
automatically creating a kilometer post form based on the form saving path; the header of the kilometer sign table is consistent with the header of the plan view panel;
and exporting the equipment attribute information of each graphic element stored in the plane drawing panel to the kilometer post table.
8. An apparatus for importing and exporting a device kilometer post, comprising:
the table determining unit is used for determining a kilometer post table of the equipment to be imported;
the panel import unit is used for analyzing the equipment kilometer post table to be imported and importing the data in the equipment kilometer post table to be imported into a plan panel; the header of the plan view panel is consistent with the header of the kilometer sign table of the equipment to be guided;
and the CAD import unit is used for matching the equipment in the plan view panel with the equipment in the CAD electronic map and importing the kilometer posts to be imported of the equipment which is successfully matched in the plan view panel into the equipment attribute of the corresponding equipment in the CAD electronic map.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method for importing and exporting kilometer posts of the device according to any one of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method for importing and exporting kilometer posts by the device according to any one of claims 1 to 7.
CN202110720802.XA 2021-06-28 Equipment kilometer post import and export method and device, electronic equipment and storage medium Active CN113553634B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110720802.XA CN113553634B (en) 2021-06-28 Equipment kilometer post import and export method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110720802.XA CN113553634B (en) 2021-06-28 Equipment kilometer post import and export method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113553634A true CN113553634A (en) 2021-10-26
CN113553634B CN113553634B (en) 2024-07-05

Family

ID=

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004245932A (en) * 2003-02-12 2004-09-02 Mitsubishi Electric Corp Report position search device and report position search method
KR20060124013A (en) * 2005-05-30 2006-12-05 (주)에스오씨건설엔지니어링 Automatic recording method of description details and file names for title block of auto cad
CN101138280A (en) * 2005-03-11 2008-03-05 皇家飞利浦电子股份有限公司 Commissioning wireless network devices according to an installation plan
CN107798991A (en) * 2017-11-15 2018-03-13 交控科技股份有限公司 A kind of electronic map Gradient generation method
CN109558643A (en) * 2018-11-05 2019-04-02 西南交通大学 A kind of modeling of traffic scene and model monomerization approach
CN111950047A (en) * 2020-07-24 2020-11-17 通号城市轨道交通技术有限公司 Method and system for drawing signal plane layout diagram
CN112182727A (en) * 2020-10-23 2021-01-05 筑友智造科技投资有限公司 Method and device for automatically laying supporting pieces of building engineering and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004245932A (en) * 2003-02-12 2004-09-02 Mitsubishi Electric Corp Report position search device and report position search method
CN101138280A (en) * 2005-03-11 2008-03-05 皇家飞利浦电子股份有限公司 Commissioning wireless network devices according to an installation plan
KR20060124013A (en) * 2005-05-30 2006-12-05 (주)에스오씨건설엔지니어링 Automatic recording method of description details and file names for title block of auto cad
CN107798991A (en) * 2017-11-15 2018-03-13 交控科技股份有限公司 A kind of electronic map Gradient generation method
CN109558643A (en) * 2018-11-05 2019-04-02 西南交通大学 A kind of modeling of traffic scene and model monomerization approach
CN111950047A (en) * 2020-07-24 2020-11-17 通号城市轨道交通技术有限公司 Method and system for drawing signal plane layout diagram
CN112182727A (en) * 2020-10-23 2021-01-05 筑友智造科技投资有限公司 Method and device for automatically laying supporting pieces of building engineering and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘益民;: "利用AutoCAD制图软件绘制桥梁上部复杂受力线型进行施工控制", 科技信息, no. 18, 25 June 2011 (2011-06-25) *
张林, 梁晋: "列车自动报点系统电子地图设计", 铁道标准设计, no. 11, 20 November 2004 (2004-11-20) *

Similar Documents

Publication Publication Date Title
KR102171220B1 (en) Character recognition method, device, server and storage medium of claim documents
CN108427731B (en) Page code processing method and device, terminal equipment and medium
CN112861648A (en) Character recognition method and device, electronic equipment and storage medium
CN107315682A (en) Test browser-safe method, device, storage medium and electronic equipment
CN109033282A (en) A kind of Web page text extracting method and device based on extraction template
CN111159016A (en) Standard detection method and device
CN110717801A (en) Commodity information pushing method and device
CN111475494A (en) Mass data processing method, system, terminal and storage medium
CN106954094A (en) Processing method, device and the service terminal of barrage information
CN113741898A (en) Form generation method, device and equipment
CN111369294A (en) Software cost estimation method and device
CN113779681A (en) Building model establishing method and related device
CN113190680A (en) Unstructured data marking method, device, equipment and storage medium
CN109740074B (en) Method, device and equipment for processing parameter configuration information
CN112433935A (en) Test method, test device, electronic equipment and storage medium
CN113553634B (en) Equipment kilometer post import and export method and device, electronic equipment and storage medium
CN112541688A (en) Service data checking method and device, electronic equipment and computer storage medium
CN113553634A (en) Equipment kilometer post import and export method and device, electronic equipment and storage medium
CN114896161A (en) File construction method and device based on artificial intelligence, computer equipment and medium
CN115116070A (en) Method, device and equipment for accurately cutting PDF and storage medium
CN111190986B (en) Map data comparison method and device
CN113536762A (en) JSON text comparison method and device
CN114332809A (en) Image identification method and device, electronic equipment and storage medium
CN113177389A (en) Text processing method and device, electronic equipment and storage medium
CN111651362A (en) Test case generation method and device, storage medium and computer equipment

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