Automatic graph output method, device and computer readable storage medium

By acquiring device macro model information and matching attribute information, and using a macro logic matching table to automatically call macro commands to generate drawings, the inefficiency caused by manually selecting target loop macros in existing technologies is solved, and efficient automatic drawing generation of intelligent devices is achieved.

CN115758950BActive Publication Date: 2025-10-24GUANGDONG LYRIC ROBOT INTELLIGENT AUTOMATION CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211518728.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-30
Publication Date
2025-10-24
Estimated Expiration
2042-11-30

AI Technical Summary

Technical Problem

Existing electrical drawing software requires designers to manually select and call target circuit macros based on a pre-set assembly list of intelligent devices, resulting in low efficiency in drawing intelligent device drawings and wasting a lot of manpower and time.

Method used

By acquiring the device macro model information, matching the attribute information in the preset macro logic matching table, and generating the target drawing at the preset location according to the drawing generation command, the preset macro logic matching table is used to automatically call macro commands, reducing manual screening steps and improving drawing output efficiency.

Benefits of technology

It enables automatic generation of drawings for intelligent devices, reducing manual information searching and filling steps, lowering labor and time costs, and improving drawing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115758950B_ABST
    Figure CN115758950B_ABST
Patent Text Reader

Abstract

The application discloses an automatic drawing output method and device and a computer readable storage medium. The method comprises the following steps: obtaining device macro model information in a worksheet; matching attribute information in a preset macro logic matching table according to the device macro model information, and displaying the attribute information on the worksheet, wherein the attribute information comprises device structure information corresponding to the device macro model information; obtaining a drawing generation instruction, and in response to the drawing generation instruction, generating a target drawing at a preset position according to the drawing generation instruction and the device structure information. According to the application, the attribute information corresponding to the device macro model information is matched through the preset macro logic matching table, and in response to the drawing generation instruction, the attribute information can be used to automatically call a macro command to realize automatic drawing output. Compared with the scheme of manually screening a target loop macro to realize drawing output, the application effectively improves the drawing output efficiency of intelligent device drawings.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to, but is not limited to, the technical field of computer-aided design, and in particular to an automatic drawing output method and device and a computer readable storage medium. BACKGROUND

[0002] In the field of industrial manufacturing, before product design, intelligent device drawings need to be drawn. In the related art, the drawing of intelligent device drawings is usually realized by electrical drawing software. However, the existing electrical drawing software requires a designer to filter and call a loop macro provided by the electrical drawing software based on a pre-set intelligent device overall assembly list, so as to determine a target loop macro matched with a target structure component in the overall assembly list, and then realize the drawing of the intelligent device drawing based on the target loop macro filtered manually. It can be seen that such a drawing scheme needs to consume a large amount of human and time costs, and affects the drawing efficiency of the intelligent device drawing. SUMMARY

[0003] The embodiments of the present application provide an automatic drawing output method, device and computer readable storage medium, which can effectively improve the drawing efficiency of intelligent device drawings.

[0004] In a first aspect, the embodiments of the present application provide an automatic drawing output method, comprising:

[0005] Obtaining device macro model information from a worksheet;

[0006] Matching attribute information in a pre-set macro logic matching table according to the device macro model information, and displaying the attribute information on the worksheet, wherein the attribute information comprises device structure information corresponding to the device macro model information;

[0007] Obtaining a drawing generation instruction, and in response to the drawing generation instruction, generating a target drawing at a pre-set position according to the drawing generation instruction and the device structure information.

[0008] In some embodiments, the device macro model information corresponds to a position identifier, the position identifier representing a storage position of the device macro model information in the worksheet, and the obtaining of the device macro model information from the worksheet comprises:

[0009] Obtaining a file import instruction, wherein the file import instruction comprises a file storage address;

[0010] In response to the file import instruction, obtaining a target import file corresponding to the file storage address, determining a target position identifier from a position identifier of the target import file, and the target position identifier matches the position identifier;

[0011] identifying a corresponding data of the target position as the device macro model information.

[0012] In some embodiments, the generating drawing instruction comprises a target component identification, and the generating a target drawing at a preset position according to the generating drawing instruction and the device structure information comprises:

[0013] When there is a drawing record corresponding to the target component identification in a historical drawing record, obtaining a reference drawing record corresponding to the target component identification from the historical drawing record, the reference drawing record comprising historical device structure information;

[0014] When the historical device structure information is the same as the numerical value of the device structure information, determining a historical drawing corresponding to the historical drawing record as the target drawing, and generating the target drawing at the preset position;

[0015] When the historical device structure information is not the same as the numerical value of the device structure information, generating the target drawing at the preset position according to the device structure information.

[0016] In some embodiments, the target component corresponding to the target component identification comprises a plurality of sub-components, the device structure information comprises a sub-component quantity and sub-component model information corresponding to each of the sub-components, and the generating the target drawing at the preset position according to the device structure information comprises:

[0017] Obtaining target style information corresponding to each of the sub-component model information from a preset component style database;

[0018] According to a preset component number allocation rule, the sub-component quantity and the sub-component number of each of the sub-components;

[0019] Generating a target drawing corresponding to the target component at the target position according to each of the target style information and each of the sub-component number.

[0020] In some embodiments, the quantity of the target components is at least two, the target drawings comprise at least a first drawing and a second drawing, and different target drawings correspond to different target components, and the method further comprises:

[0021] Allocating page numbers to the first drawing and the second drawing according to the component number allocation rule to obtain a new first drawing and a new second drawing, the new first drawing carrying a first page number and the new second drawing carrying a second page number;

[0022] The first drawing paper corresponding to the first page number and the second drawing paper corresponding to the second page number are sorted in ascending order of the page number values, and the sorted first drawing paper and the sorted second drawing paper are generated at the preset position.

[0023] In some embodiments, the automatic drawing output method further comprises:

[0024] obtaining a data checking instruction, the data checking instruction comprising checking range information and checking type information;

[0025] in response to the data checking instruction, determining a target checking result according to a preset search rule, the checking range information and the checking type information;

[0026] when the target checking result indicates that the checking type information is abnormal, generating and sending prompt information according to the checking type information that is abnormal.

[0027] In some embodiments, after the target drawing paper is generated at the preset position according to the drawing paper generation instruction and the device structure information, the method further comprises:

[0028] generating a target drawing output record according to the target component identifier and a preset drawing output record generation rule;

[0029] saving the target drawing output record.

[0030] In a second aspect, the embodiments of the present application provide an automatic drawing output device, comprising:

[0031] a data acquisition module, configured to acquire device macro model information from a worksheet;

[0032] a data processing module, configured to match attribute information in a preset macro logic matching table according to the device macro model information, and display the attribute information on the worksheet, the attribute information comprising device structure information corresponding to the device macro model information;

[0033] a target drawing paper generation module, configured to acquire a drawing paper generation instruction, and in response to the drawing paper generation instruction, generate a target drawing paper at a preset position according to the drawing paper generation instruction and the device structure information.

[0034] In a third aspect, the embodiments of the present application provide an automatic drawing output device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the automatic drawing output method of the first aspect when executing the computer program.

[0035] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the automatic drawing method as described in the first aspect.

[0036] The embodiment of the present application provides an automatic drawing method, device and computer-readable storage medium, the method comprising: obtaining device macro model information from a worksheet; matching attribute information in a preset macro logic matching table according to the device macro model information, and displaying the attribute information on the worksheet, the attribute information including device structure information corresponding to the device macro model information; obtaining a drawing generation instruction, and in response to the drawing generation instruction, generating a target drawing at a preset position according to the drawing generation instruction and the device structure information. The embodiment of the present application matches the attribute information corresponding to the device macro model information through a preset macro logic matching table. In response to the drawing generation instruction, the macro command can be automatically called according to the attribute information to achieve automatic drawing. Compared with the solution in the related art that requires manual screening of the target circuit macro to achieve drawing, the drawing generation efficiency of the smart device drawing is effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a flowchart of the steps of the automatic drawing output method provided by one embodiment of the present application;

[0038] Figure 2 This is a flowchart of the steps for obtaining device macro model information provided by another embodiment of the present application;

[0039] Figure 3 This is a flowchart of steps for generating a target drawing provided by another embodiment of the present application;

[0040] Figure 4 This is a flowchart of steps for generating a target drawing provided by another embodiment of the present application;

[0041] Figure 5 This is a flowchart of steps for generating a target drawing provided by another embodiment of the present application;

[0042] Figure 6 is a flowchart of the steps of a data checking method provided by another embodiment of the present application;

[0043] Figure 7 This is a flowchart of the steps for generating a target output record provided by another embodiment of the present application;

[0044] Figure 8 This is a schematic diagram of a module of an automatic image output device provided by an embodiment of the present application;

[0045] Figure 9 This is a hardware schematic diagram of an automatic image output device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0047] It is understood that although the device schematics illustrate functional module divisions and the flowcharts illustrate logical sequences, in certain circumstances, the steps shown or described may be performed in a sequence that differs from the module divisions in the device or the sequence in the flowcharts. The terms "first," "second," and the like in the specification, claims, or accompanying drawings are used to distinguish similar items and are not necessarily used to describe a specific sequence or precedence.

[0048] The embodiments of the present application provide an automatic drawing method, device, and computer-readable storage medium, the method comprising: obtaining device macro model information from a worksheet; matching attribute information in a preset macro logic matching table based on the device macro model information, and displaying the attribute information on the worksheet, the attribute information including device structure information corresponding to the device macro model information; obtaining a drawing generation instruction, and in response to the drawing generation instruction, generating a target drawing at a preset location based on the drawing generation instruction and the device structure information. The embodiments of the present application match the attribute information corresponding to the device macro model information through a preset macro logic matching table. In response to the drawing generation instruction, the macro command can be automatically called based on the attribute information to achieve automatic drawing generation. Compared with the solution in the related art that requires manual screening of the target circuit macro to achieve drawing generation, the efficiency of drawing generation for smart devices is effectively improved.

[0049] The embodiments of the present application are further described below with reference to the accompanying drawings.

[0050] like Figure 1 As shown, Figure 1 This is a flowchart of the steps of an automatic drawing method provided by an embodiment of the present application. The embodiment of the present application provides an automatic drawing method, which includes but is not limited to the following steps:

[0051] Step S110, obtaining device macro model information from the worksheet;

[0052] Step S120 , matching attribute information in a preset macro logic matching table according to the device macro model information, and displaying the attribute information on a worksheet, the attribute information including device structure information corresponding to the device macro model information;

[0053] Step S130 , obtaining a drawing generation instruction, and in response to the drawing generation instruction, generating a target drawing at a preset position according to the drawing generation instruction and the device structure information.

[0054] It should be noted that the embodiments of the present application do not limit the running environment for performing steps S110 to S130, and steps S110 to S120, i.e., obtaining device macro model information and structure identifier information from the worksheet, and matching attribute information in the preset macro logic matching table according to the device macro model information and the structure identifier information, and displaying the attribute information on the worksheet, can be developed and implemented based on Excel, and the preset position can be a preset engineering project in the electrical drawing software associated with Excel, or a preset area in the Excel software, and those skilled in the art have the motivation to adjust according to actual needs, and no more limitations are made herein. The electrical drawing software of the embodiments can be Eplan drawing software or CAD drawing software, and no more limitations are made herein; after responding to the drawing generation instruction, the target drawing is generated in the preset interface of the electrical drawing software according to the drawing generation instruction and the device structure information.

[0055] In addition, the embodiments can also match attribute information from the macro logic matching table by combining the device macro model information with the structure identifier information. It should be noted that the embodiments of the present application do not limit the specific way of obtaining device macro model information and structure identifier information in the worksheet, which can be obtained by importing external data files, or by inputting data in the cells of the worksheet by the user.

[0056] It should be noted that the embodiments of the present application do not limit the specific content of the device macro model information and the structure identifier information. The device macro model information can include motor model information, driver model information, and / or circuit breaker model information, etc. The structure identifier information is used to represent the structure symbol in the structure corresponding to the target drawing. The correspondence between the structure symbol and the structure can be obtained by referring to the preset structure symbol mapping table, and no more details are described herein.

[0057] It can be understood that each information in the device macro model information corresponds to a different macro, the macro logic matching table represents the mapping relationship between the device macro model and the device structure information, the device structure information is matched from the macro logic matching table according to the device macro model information and the structure identifier information, the device structure information includes the macro name, the macro variable and the macro position information of the device corresponding to the device macro model, the device structure information is displayed to the preset position of the worksheet, and the macro is called according to the device structure information, so that the target drawing is generated in the preset position. It can be seen that, by the preset macro logic matching table, the attribute information corresponding to the device macro model information is matched, and in response to the generation of the drawing instruction, the macro command can be automatically called according to the attribute information to realize automatic drawing. Compared with the related art scheme of manually screening the target loop macro to realize drawing, the steps of manual information searching and information filling are reduced, the labor cost and time cost are effectively reduced, and the drawing efficiency of the intelligent equipment drawing is improved.

[0058] It should be noted that the generation of the drawing instruction can include the generation of the target device object information corresponding to the drawing. The target device object information of the embodiment of the application can be the device corresponding to all device generators currently established, or can be a sub-component object in the device corresponding to a device generator customized by the user. No more limitation is made here.

[0059] In addition, before generating the target drawing, the embodiment of the application further provides the following method: obtaining a drawing preview instruction, and responding to the drawing preview instruction, the drawing preview instruction can include target preview object information, and the preview drawing is displayed through the target preview object information. The preview drawing can be previewed before the target drawing file is generated. It can be understood that the time spent for executing the preview drawing instruction is shorter than the time spent for generating the target drawing. Through the preview drawing, it can be evaluated whether the preview drawing meets the design expectation without downloading the target drawing, thereby effectively reducing the time cost in the electrical drawing design stage.

[0060] In addition, in an embodiment, the device macro model information corresponds to a position identifier, and the position identifier represents the storage position of the device macro model information in the worksheet. Referring to Figure 2 , Figure 1 The step S110 in the embodiment shown in the figure further includes but is not limited to the following steps:

[0061] Step S210, obtaining a file import instruction, the file import instruction including a file storage address;

[0062] Step S220, responding to the file import instruction, obtaining a target import file corresponding to the file storage address, determining a target position identifier from the position identifier of the target import file, and the target position identifier matches the position identifier;

[0063] Step S230, the data corresponding to the target position identifier is confirmed as the device macro model information.

[0064] It can be understood that, since the position identifier represents the storage position of the device macro model information in the worksheet, in the case that the device macro model information is acquired by importing an external data file, the specific data acquisition step can be: acquiring a file import instruction, the file import instruction including a file storage address, in response to the file import instruction, acquiring a target import file corresponding to the file storage address, determining a target position identifier from the position identifier of the target import file, wherein the target position identifier matches the position identifier, when the position identifier of the target import file and the position identifier of the worksheet match each other, it indicates that the cell corresponding to the position identifier of the worksheet is a target import cell corresponding to the data of the position identifier of the target import file, and the data corresponding to the target position identifier is confirmed as the device macro model information, thereby realizing acquisition of the device macro model information.

[0065] The present embodiment does not limit the specific process of importing data in the target import file into the worksheet, which can be real-time detection of the specific value of the target import file during the data import process, when it is detected that the value of the position corresponding to the target position identifier is empty, the data is not imported, and when it is detected that the value of the position corresponding to the target position identifier does not satisfy the preset data format, the data is not imported.

[0066] In addition, in an embodiment, the drawing generation instruction includes a target component identifier, and the reference Figure 3 , Figure 1 The step S130 in the embodiment shown includes but is not limited to the following steps:

[0067] Step S310, when the historical drawing record corresponding to the target component identifier exists in the historical drawing record, acquiring the reference drawing record corresponding to the target component identifier from the historical drawing record, the reference drawing record including historical device structure information;

[0068] Step S320, when the historical device structure information and the device structure information have the same value, determining the historical drawing corresponding to the historical drawing record as the target drawing, and generating the target drawing at the preset position;

[0069] Step S330, when the historical device structure information and the device structure information have different values, generating the target drawing at the preset position according to the device structure information.

[0070] It can be understood that the historical drawing record includes a plurality of drawing records, different drawing records correspond to different historical component identifiers, a target historical identifier is determined from the plurality of historical component identifiers, the target historical identifier corresponds to a reference drawing record, historical device structure information corresponding to the reference drawing record is compared with the currently matched device structure information, when the historical device structure information and the device structure information are the same, the historical drawing record corresponding to the historical drawing record is determined as the target drawing (without repeating drawing), and the target drawing is generated at the preset position, when the historical device structure information and the device structure information are not the same, the target drawing is generated at the preset position according to the device structure information, thereby effectively improving the efficiency of generating the drawing.

[0071] It should be noted that different component identifiers correspond to different types of components, different types of components correspond to selection of different component generators to realize drawing of the drawing, the number of types of component generators is preset by a software developer, and an administrator can increase grouping of the component generator based on the preset component drawing template, and determine necessary data and non-necessary data required for the new component generator to generate the target drawing.

[0072] It should be noted that the target drawing generated in the embodiment of the application can be an editable drawing, and the target drawing can be modified after being generated, and then the drawing is exported by triggering the target drawing export instruction.

[0073] In addition, in an embodiment, the target component corresponding to the target component identifier includes a plurality of sub-components, and the device structure information includes a sub-component number corresponding to each sub-component and sub-component model information. Figure 4 , Figure 3 The step S330 in the embodiment shown in the drawing includes but is not limited to the following steps:

[0074] Step S410, obtaining target style information corresponding to each sub-component model information from a preset component style database;

[0075] Step S420, determining a sub-component number of each sub-component according to a preset component number allocation rule and the sub-component number;

[0076] Step S430, generating a target drawing corresponding to the target component at the preset position according to each target style information and each sub-component number.

[0077] It can be understood that the target style information corresponding to the model information of each sub-component is obtained from the preset component style database, the sub-component number of each sub-component is determined according to the preset component number allocation rule and the sub-component number, and the target drawing corresponding to the target component is generated at the preset position according to each target style information and each sub-component number. Since the device structure information including the sub-component number and the model information of each sub-component is data matched from the macro logic matching table according to the device macro model information and the structure identifier information, compared with the scheme in the related art that the target loop macro is realized by drawing by manually screening, the steps of manual information searching and information filling are reduced, the human cost and the time cost are effectively reduced, and thus the drawing efficiency of the intelligent equipment drawing is improved.

[0078] It should be noted that the embodiment of the present application does not limit the specific component number allocation rule, which can be numbered and sorted according to the sequence number of the component generator, or can be sorted according to each component identifier.

[0079] In an embodiment, the number of target components is at least two, and the target drawing includes at least a first drawing and a second drawing. Different target drawings correspond to different target components, and the first drawing and the second drawing are sorted according to the component number allocation rule. Figure 5 The automatic drawing method provided by the embodiment of the present application also includes but is not limited to the following steps:

[0080] In step S510, page numbers are allocated to the first drawing and the second drawing according to the component number allocation rule, to obtain a new first drawing and a new second drawing. The new first drawing carries a first page number, and the new second drawing carries a second page number.

[0081] In step S520, the first drawing corresponding to the first page number and the second drawing corresponding to the second page number are sorted in ascending order of the page number value, and the sorted first drawing and second drawing are generated at the preset position.

[0082] It can be understood that when a drawing generation instruction is obtained, and when the drawing generation instruction indicates the drawing generation requirements corresponding to at least two component generators, different component generators correspond to different target components. In response to the drawing generation instruction, at least two drawings (a first drawing and a second drawing) will be generated, and page numbers are assigned to the first drawing and the second drawing according to the component number allocation rule to obtain a new first drawing and a new second drawing. The new first drawing carries a first page number, and the new second drawing carries a second page number. The first drawing corresponding to the first page number and the second drawing corresponding to the second page number are sorted in order from small to large page number values, and the sorted first drawing and second drawing are generated at a preset position, that is, the presentation method of the target drawing can assign page numbers to the drawings generated by each component generator according to the preset component number allocation rule, and arrange and display the generated drawings in order from small to large page number values.

[0083] In addition, since different target drawings correspond to different target components, different target components may correspond to different component label information. In the process of generating target drawings at preset positions, the automatic drawing output method of the embodiment of the present application also includes: naming the target drawings according to preset file naming rules and component label information, thereby reducing the tedious naming workload of designers during the drawing design process.

[0084] In addition, refer to Figure 6 In one embodiment, referring to Figure 5 The automatic drawing method provided in the embodiment of the present application also includes but is not limited to the following steps:

[0085] Step S610: Obtain a data inspection instruction, which includes inspection range information and inspection type information;

[0086] Step S620 , in response to the data inspection instruction, determining a target inspection result according to preset search rules, inspection range information, and inspection type information;

[0087] Step S630 : When the target inspection result indicates that the inspection type information is abnormal, a prompt message is generated and sent according to the abnormal inspection type information.

[0088] It should be noted that the embodiments of the present application do not limit the judgment conditions for determining whether the target inspection results are abnormal. It may be that the value of the inspection type information is empty, or the value of the inspection type information does not conform to the preset data format. Those skilled in the art can determine it according to the actual situation.

[0089] It should be noted that the embodiment of the present application does not impose specific restrictions on the inspection scope information, which can be the entire worksheet or several rows of the worksheet. At the same time, this embodiment does not impose specific restrictions on the inspection type information, which can include data anomalies corresponding to the device macro model information, data anomalies corresponding to the attribute information matched from the macro logic matching table and displayed on the worksheet, and the quantity information and generator identification information of the component generator in the state of not generating the target drawing, etc.

[0090] It should be noted that the trigger source of the data check instruction can be triggered by the user clicking the data check virtual button, or it can be triggered in response to the drawing generation instruction; the embodiment of the present application does not limit the presentation method of the prompt information, and it can be to generate window prompt information, which includes the position information corresponding to the abnormal value, or highlight the position corresponding to the abnormal value (such as a cell), so that the user can quickly locate the abnormal position according to the prompt information, and refill or modify the data in the abnormal position.

[0091] It should be noted that in response to the instruction to generate drawings and triggering the execution of data check instructions, when it is detected that certain information in the worksheet that does not affect the generation of the target drawings is missing, that is, non-essential data is missing, for example, the motor label information is empty, in the target drawing presented based on the essential data corresponding to the worksheet, the area corresponding to the motor label information displays the word "pending", which can facilitate modifications by designers in the subsequent drawing design process, thereby improving the efficiency of drawing output.

[0092] It should be noted that the macro in the device macro model information may correspond to multiple sets of macro attribute information. In the case where the macro corresponds to multiple sets of attribute information, the corresponding multiple sets of attribute information need to be determined through the macro variable information. The embodiment of the present application also includes: after triggering the execution of the data check instruction, the position corresponding to the macro variable information in the worksheet is highlighted, so as to facilitate the designer to modify the original macro variable information as needed (or update the macro variable information by importing an external file, which is not restricted here), so as to obtain the corresponding new multiple sets of macro attribute information based on the modified macro variable information, thereby providing an effective data basis for generating the target drawing.

[0093] In addition, refer to Figure 7 In one embodiment, when executing Figure 1 After step S130 in the illustrated embodiment, the automatic image output method provided by the embodiment of the present application further includes but is not limited to the following steps:

[0094] Step S710, generating a target drawing record according to the target component identifier and a preset drawing record generation rule;

[0095] Step S720: Save the target drawing record.

[0096] It can be understood that, according to the target component identification and the preset drawing record generation rule, the target drawing record is generated and saved, the quick positioning of the problem according to the record can be realized in the case of drawing error, and thus the drawing efficiency in the electrical drawing design stage is effectively improved.

[0097] It should be noted that the present application does not limit the specific database for saving the target drawing record, which can be an SQL Server database or a MySQL database, and a person skilled in the art can select according to the actual situation.

[0098] In addition, referring to Figure 8 , Figure 8 is a module schematic diagram of an automatic drawing device provided by another embodiment of the present application. In an embodiment, the present application provides an automatic drawing device 800, which comprises:

[0099] The data acquisition module 810 is configured to acquire device macro model information from the worksheet.

[0100] The data processing module 820 is configured to match attribute information in the preset macro logic matching table according to the device macro model information, and display the attribute information on the worksheet. The attribute information comprises device structure information corresponding to the device macro model information.

[0101] The target drawing generation module 830 is configured to acquire a drawing generation instruction, and in response to the drawing generation instruction, generate a target drawing at a preset position according to the drawing generation instruction and the device structure information.

[0102] The specific implementation of the automatic drawing device is basically the same as the specific embodiments of the automatic drawing method described above, and will not be repeated here.

[0103] In addition, referring to Figure 9 , Figure 9 is a hardware structure diagram of an automatic drawing device provided by another embodiment of the present application. One embodiment of the present application further provides an automatic drawing device 900, which comprises a memory 910, a processor 920, and a computer program stored in the memory 910 and capable of running on the processor 920.

[0104] The processor 920 and the memory 910 can be connected through a bus or other means.

[0105] The non-transitory software program and instructions required to implement the automatic graphing method of the above embodiments are stored in the memory 910, and when executed by the processor 920, perform the automatic graphing method in the above embodiments, for example, perform the method steps S110-S130 in Figure 1 , the method steps S210-S230 in Figure 2 , the method steps S310-S330 in Figure 3 , the method steps S410-S430 in Figure 4 , the method steps S510-S520 in Figure 5 , the method steps S610-S630 in Figure 6 , and the method steps S710-S720 in Figure 7 .

[0106] The device embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separated, i.e., can be located in one place, or can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment.

[0107] In addition, an embodiment of the present application also provides a computer readable storage medium, which stores computer executable instructions, and the computer executable instructions are executed by a processor or a controller, for example, a processor in the above automatic graphing device 900 embodiment, so that the above processor executes the automatic graphing method in the above embodiments, for example, performs the method steps S110-S130 in Figure 1 , the method steps S210-S230 in Figure 2 , the method steps S310-S330 in Figure 3 , the method steps S410-S430 in Figure 4 , the method steps S510-S520 in Figure 5 , the method steps S610-S630 in Figure 6 , and the method steps S710-S720 in Figure 7The method steps S710-S720 in the above disclosed method can be implemented as software, firmware, hardware, or appropriate combination thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software can be distributed on computer readable media, which can comprise computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Further, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and includes any information delivery media.

Claims

1. An automatic plotter method characterized by, The method comprises the following steps: obtaining device macro model information from a worksheet; matching attribute information in a preset macro logic matching table according to the device macro model information, and displaying the attribute information on the worksheet, wherein the attribute information comprises device structure information corresponding to the device macro model information; obtaining a drawing generation instruction, and generating a target drawing at a preset position according to the drawing generation instruction and the device structure information in response to the drawing generation instruction; the drawing generation instruction comprises a target component identifier, and the generation of the target drawing at the preset position according to the drawing generation instruction and the device structure information comprises: when there is a drawing record corresponding to the target component identifier in a historical drawing record, obtaining a reference drawing record corresponding to the target component identifier from the historical drawing record, wherein the reference drawing record comprises historical device structure information; when the numerical value of the historical device structure information is the same as that of the device structure information, determining a historical drawing corresponding to the historical drawing record as the target drawing, and generating the target drawing at the preset position; when the numerical value of the historical device structure information is different from that of the device structure information, generating the target drawing at the preset position according to the device structure information; the target component corresponding to the target component identifier comprises a plurality of sub-components, and the device structure information comprises sub-component quantity and sub-component model information corresponding to each sub-component, and the generation of the target drawing at the preset position according to the device structure information comprises: obtaining target style information corresponding to each sub-component model information from a preset component style database; determining a sub-component number of each sub-component according to a preset component number allocation rule, the sub-component quantity and the sub-component number; generating a target drawing corresponding to the target component at the preset position according to each target style information and each sub-component number.

2. The automatic map output method according to claim 1, characterized by, The device macro model information corresponds to a position identifier, which represents the storage position of the device macro model information in the worksheet, and the obtaining of the device macro model information from the worksheet comprises: obtaining a file import instruction, wherein the file import instruction comprises a file storage address; obtaining a target import file corresponding to the file storage address in response to the file import instruction, determining a target position identifier from the position identifier of the target import file, and matching the target position identifier with the position identifier; confirming data corresponding to the target position identifier as the device macro model information.

3. The automatic map output method according to claim 1, characterized by, The number of target components is at least two, and the target drawings comprise at least a first drawing and a second drawing, wherein different target drawings correspond to different target components, and the method further comprises: allocating page numbers to the first drawing and the second drawing according to the component number allocation rule to obtain a new first drawing and a new second drawing, wherein the new first drawing carries a first page number, and the new second drawing carries a second page number. The first drawing paper corresponding to the first page number and the second drawing paper corresponding to the second page number are sorted in ascending order of the page number values, and the sorted first drawing paper and the sorted second drawing paper are generated at the preset position.

4. The automatic map output method according to claim 1, characterized by, The method further comprises: obtaining a data inspection instruction, the data inspection instruction comprising inspection range information and inspection type information; in response to the data inspection instruction, determining a target inspection result according to a preset search rule, the inspection range information, and the inspection type information; when the target inspection result indicates that the inspection type information is abnormal, generating and sending prompt information according to the abnormal inspection type information.

5. The automatic map output method according to claim 1, characterized by, After the target drawing paper is generated at the preset position according to the drawing paper generation instruction and the device structure information, the method further comprises: generating a target drawing record according to the target component identifier and a preset drawing record generation rule; saving the target drawing record.

6. An automatic plotter, characterized by Comprise: a data acquisition module, the data acquisition module is used to obtain device macro model information from a worksheet; a data processing module, the data processing module is used to match attribute information in a preset macro logic matching table according to the device macro model information, and display the attribute information on the worksheet, the attribute information comprising device structure information corresponding to the device macro model information; a target drawing paper generation module, the target drawing paper generation module is used to obtain a drawing paper generation instruction, and in response to the drawing paper generation instruction, generate a target drawing paper at a preset position according to the drawing paper generation instruction and the device structure information; the drawing paper generation instruction comprises a target component identifier, and the target drawing paper is generated at the preset position according to the drawing paper generation instruction and the device structure information, comprising: when there is a drawing record corresponding to the target component identifier in the historical drawing record, obtaining a reference drawing record corresponding to the target component identifier from the historical drawing record, the reference drawing record comprising historical device structure information; when the numerical value of the historical device structure information is the same as that of the device structure information, determining a historical drawing paper corresponding to the historical drawing record as the target drawing paper, and generating the target drawing paper at the preset position; when the numerical value of the historical device structure information is not the same as that of the device structure information, generating the target drawing paper at the preset position according to the device structure information; the target component corresponding to the target component identifier comprises a plurality of sub-components, and the device structure information comprises sub-component quantity and sub-component model information corresponding to each sub-component, and the target drawing paper is generated at the preset position according to the device structure information, comprising: obtaining target style information corresponding to each sub-component model information from a preset component style database; determining a sub-component number of each sub-component according to a preset component number allocation rule, the sub-component quantity, and the sub-component number; generating a target drawing paper corresponding to the target component at the preset position according to each target style information and each sub-component number.

7. An automated plotter apparatus comprising: The memory, the processor and the computer program stored in the memory and capable of running on the processor, wherein the processor implements the automatic drawing method according to any one of claims 1 to 5 when executing the computer program. 8.A computer readable storage medium storing computer executable instructions for performing the automatic drawing method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Drawing generation method and apparatus

    CN106897508A

  • Manufacturing method of electrical diagram

    CN112016173A

  • Drawing and data processing method and device, computer equipment and storage medium

    CN113900988A