Drawing transmission and drawing method, device and equipment and storage medium
By mapping and transmitting components between AVEVA series Diagrams software and Engineering Base software, the problems of complex drawing transfer and creation are solved, achieving efficient drawing transfer and a simplified drawing process.
Patent Information
- Application Number
- CN202210634165.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-07
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2042-06-07
AI Technical Summary
In nuclear power chemical projects, the lack of a data interface between AVEVA series process diagrams software and electrical drawing engineering base software leads to complex drawing transmission and drawing processes, requiring manual format conversion and repeated drawing.
By reading the component data of the drawing in the first software and saving it to a preset format file (such as a .mdb file), and then parsing and instantiating the component information based on the component mapping relationship in the second software, the drawing can be seamlessly transferred and drawn between different software.
It enables the transfer of drawings between different software without format conversion, simplifies the drawing process, improves efficiency without increasing hardware costs, and saves time and manpower for repeated drawing.
Smart Images

Figure CN114996220B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the field of engineering design, and particularly relates to a drawing transmission and drawing method, a drawing transmission and drawing device, a terminal device and a computer readable storage medium. BACKGROUND
[0002] In engineering design, especially for process flow design and digital instrument control design, the transmission and drawing of drawings between different software are usually involved.
[0003] In current nuclear chemical projects, the software used for process flow design, such as process, equipment, and heating and ventilation flow drawings, is usually AVEVA series of flow Diagrams software, and the software used for digital instrument control design is Engineering Base software for electrical drawing. There are many mutual cross-designs when these several professions are designed, and there is no available data interface between these two software at present, which leads to the fact that when the process, equipment, and heating and ventilation professions submit drawing data to the instrument control profession, the flow chart in the Diagrams software needs to be exported into a two-dimensional drawing first, and then submitted to the instrument control profession. Before the instrument control profession carries out professional work, they need to redraw the two-dimensional drawing provided in the Engineering Base software again. SUMMARY
[0004] The present disclosure provides a drawing transmission and drawing method, device, terminal device and computer readable storage medium to at least solve the problems of format conversion and complex drawing process in the current drawing transmission process between different software.
[0005] To achieve the above-mentioned purpose, the present disclosure provides a drawing transmission and drawing method, which comprises:
[0006] reading a to-be-transmitted drawing in a first software to obtain element data of the to-be-transmitted drawing, wherein the element data comprises first software component information and position information of each component corresponding to the first software component information in the drawing in the first software;
[0007] saving the element data into a preset format file;
[0008] importing the preset format file into a second software and parsing the preset format file to obtain element data;
[0009] instantiating the first software component information in the element data according to the element form of the second software based on the element mapping relationship between the first software and the second software to obtain second software component information; and
[0010] The second software draws the drawing according to the position information of each component in the drawing and the second software component information.
[0011] In an embodiment, the preset format file is an.mdb file.
[0012] The saving of the component data into the preset format file includes saving the component data into a relational database to form an.mdb file.
[0013] In an embodiment, before reading the drawing to be transmitted in the first software, the method further includes:
[0014] In the first software, a first component library is established, and the component types of all components in the first component library are sorted, the components including component symbols for representing components and component attribute fields for describing components;
[0015] In the second software, a corresponding second component library is established according to the component types.
[0016] The component mapping relationship between the first component library and the second component library is established between the first software and the second software.
[0017] In an embodiment, the establishment of the component mapping relationship between the first component library and the second component library between the first software and the second software includes:
[0018] The components of the first component library are encapsulated according to the component forms of the second component library to obtain the component symbols and attribute parameters of the first software corresponding to the component symbols and attribute parameters of the second software;
[0019] The component mapping relationship between the first component library and the second component library is established between the first software and the second software based on the corresponding relationship between the component symbols and attribute parameters of the first software and the component symbols and attribute parameters of the second software.
[0020] In an embodiment, the preset format file is divided into several tables to store the component data, the several tables including a component symbol table, a component attribute table, an attribute mapping table and a parameter table.
[0021] According to another aspect of the present disclosure, a drawing transmission and drawing device is provided, which includes:
[0022] The reading module is configured to read a drawing to be transmitted in the first software to obtain component data of the drawing to be transmitted, the component data including first software component information and position information of each component corresponding to the first software component information in the drawing;
[0023] The storage module is configured to save the component data into a preset format file.
[0024] The parsing module is configured to import the preset format file into the second software and parse the preset format file to obtain component data.
[0025] The instantiation module is configured to instantiate first software part information in the component data according to a component form of the second software based on a component mapping relationship between the first software and the second software to obtain second software part information.
[0026] The drawing module is configured to draw a drawing according to position information of each part in the drawing and the second software part information in the second software.
[0027] In an embodiment, the preset format file is an.mdb file.
[0028] The storage module is specifically configured to save the component data into a relational database to form an.mdb file.
[0029] In an embodiment, the device further comprises:
[0030] The first establishing module is configured to establish a first component library in the first software and sort component types of all components in the first component library, the components including component symbols for representing parts and component attribute fields for describing the parts.
[0031] The second establishing module is configured to establish a corresponding second component library in the second software according to the component types.
[0032] The mapping relationship establishing module is configured to establish a component mapping relationship between the first software and the second software regarding the first component library and the second component library.
[0033] According to still another aspect of the present disclosure, a terminal device is provided, which comprises a memory and a processor, and the memory stores a computer program, when the processor executes the computer program stored in the memory, the processor executes the drawing transmission and drawing method.
[0034] According to still another aspect of the present disclosure, a computer readable storage medium is provided, which stores a computer program, when the computer program is executed by a processor, the processor executes the drawing transmission and drawing method.
[0035] According to the drawing transmission and drawing method, the terminal device and the computer readable storage medium provided by the present disclosure, by reading the to-be-transmitted drawing in the first software, the element data of the to-be-transmitted drawing is obtained, the element data includes first software component information and position information of each component corresponding to the first software component information in the drawing; the element data is saved into a preset format file; the preset format file is imported into the second software, and the preset format file is parsed to obtain the element data; the first software component information in the element data is instantiated according to the element form of the second software based on the element mapping relationship between the first software and the second software, and the second software component information is obtained; and the drawing is drawn in the second software according to the position information of each component in the drawing and the second software component information. The present disclosure can realize the transmission of drawings between different software, without considering the format problem of the drawing, and the drawing process is more simple and efficient, and without increasing any hardware cost.
[0036] Other features and advantages of the present disclosure will be set forth in the following description, and in part will become apparent from the description, or will be learned by practice of the present disclosure. The objects and other advantages of the present disclosure can be achieved and obtained by the structures specifically pointed out in the specification, claims and drawings. BRIEF DESCRIPTION OF DRAWINGS
[0037] The accompanying drawings are used to provide a further understanding of the technical solutions of the present disclosure, and constitute a part of the specification, and are used to explain the technical solutions of the present disclosure together with the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions of the present disclosure.
[0038] Figure 1 A flowchart of a drawing transmission and drawing method provided by an embodiment of the present disclosure;
[0039] Figure 2 An example diagram of element attribute information of a drawing and components in the drawing in the Diagrams software of the present disclosure;
[0040] Figure 3 An example diagram of a drawing exported from the Diagrams software of the present disclosure;
[0041] Figure 4 A schematic diagram of creating an element symbol corresponding to a component in the Engineering Base software of the present disclosure;
[0042] Figure 5 A schematic diagram of creating an element attribute corresponding to a component in the Engineering Base software of the present disclosure;
[0043] Figure 6An example diagram of drawing a corresponding drawing in the Engineering Base software according to the present disclosure;
[0044] Figure 7 A flowchart of another drawing transmission and drawing method provided by an embodiment of the present disclosure;
[0045] Figure 8 An example diagram of importing an mdb format file in the Engineering Base software according to the present disclosure;
[0046] Figure 9 An example diagram of table relationship in the mdb format file according to the present disclosure;
[0047] Figure 10 An example diagram of the Elements device table according to the present disclosure;
[0048] Figure 11 An example diagram of attribute mapping information of the valve in the Elements device table according to the present disclosure;
[0049] Figure 12 An example diagram of the AttributeMapping attribute mapping table according to the present disclosure;
[0050] Figure 13 An example diagram of corresponding drawing and attribute information created in the Engineering Base software according to the present disclosure;
[0051] Figure 14 A flowchart of another drawing transmission and drawing method provided by an embodiment of the present disclosure;
[0052] Figure 15 A structural diagram of a terminal device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0053] In order to make the purposes, technical solutions and advantages of the embodiments of the present disclosure clearer, the specific embodiments of the present disclosure are described in detail below with reference to the drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present disclosure, and are not used to limit the present disclosure.
[0054] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence; and, without conflict, the embodiments in the present disclosure and the features in the embodiments can be combined with each other at will.
[0055] The terminology used in the present disclosure is merely for the purpose of describing particular embodiments and is not intended to limit the present disclosure. The singular forms "a," "an," and "the" used in the present disclosure and the appended claims are intended to include plural forms as well, unless the context clearly indicates otherwise.
[0056] In the following description, the suffixes such as "module", "part", or "unit" used for an element are merely for facilitating the description of the present disclosure, and have no specific meaning by themselves. Thus, "module", "part", or "unit" can be mixedly used.
[0057] Please refer to Figure 1 , Figure 1 A flowchart of a drawing transmission and drawing method provided by the present disclosure is shown in FIG. 1. The method includes steps S101-S105.
[0058] The present embodiment is described by taking the first software as Diagrams software and the second software as Engineering Base software as an example.
[0059] In step S101, the drawing to be transmitted is read in the first software to obtain element data of the drawing to be transmitted, which includes first software component information and position information of each component corresponding to the first software component information in the drawing.
[0060] The drawing to be transmitted is the drawing that needs to be transmitted from the first software to the second software and drawn in the second software. The first software component information and the second software component information described below correspond to the component information in the first software and the second software, respectively. The component information can include element symbol and (element) attribute parameters in the drawing. It can be understood that the element symbol is a geometric model legend, and different model legends can represent different types of elements.
[0061] In addition, the position information of the component in the drawing is usually unchanged, and the drawing can be quickly positioned according to the position information during the drawing transmission process.
[0062] In step S102, the element data is saved into a preset format file.
[0063] In the present embodiment, the Diagrams software stores the drawing data in a structured data during the export of the drawing, that is, the drawing data is stored in a structured data in a preset format file, and then the preset format file is opened in the Engineering Base software. It should be noted that the preset format file can be set by the person skilled in the art in combination with the actual application and the prior art.
[0064] Step S103, importing the preset format file into the second software and parsing the preset format file to obtain component data.
[0065] For example, the preset format file is set as an mdb (Microsoft Database) format file. By selecting the mdb file in the Engineering Base software, the drawing data, i.e., the component data, is parsed and imported, and then the drawing is drawn.
[0066] Step S104, instantiating the first software part information in the component data according to the component form of the second software based on the component mapping relationship between the first software and the second software to obtain second software part information.
[0067] Specifically, the component mapping relationship between the Diagrams software and the Engineering Base software is established in advance. The component objects in the Engineering Base software correspond to the component objects in the Diagrams, including all design-related attribute parameters and graphic parameters, etc. The graphic parameters are pre-set in the Engineering Base software. After obtaining the first software part information, the first software part information is instantiated according to the component form of the Engineering Base software to obtain the drawing data that can be directly drawn in the Engineering Base software, i.e., the second software part information.
[0068] Step S105, drawing a drawing in the second software according to the position information of each part in the drawing and the second software part information.
[0069] Specifically, in steps S104 and S105, the part objects are instantiated with corresponding components in the Engineering Base, and the design-related attribute parameters carried by the parts are parsed and assigned. Meanwhile, the component graphics in the Engineering Base are referenced, and the graphics parameters parsed are instantiated and assigned in the Engineering Base according to the graphics parameters. Then, the drawing is drawn by combining the position information of the parts in the drawing. It can be understood that the part information corresponds to the part objects.
[0070] Compared to related technologies, Diagrams software requires exporting flowcharts as two-dimensional drawings, which are then given to instrumentation and control professionals. Before commencing their work, these professionals must redraw the flowcharts in Engineering Base software based on the provided two-dimensional drawings. This process is cumbersome and requires redrawing. In this embodiment, by establishing a mapping relationship between the basic graphic information of Diagrams software and the legends and component attributes of Engineering Base software, Engineering Base software can draw drawings based on the component symbols and component attribute information corresponding to the graphic data. This simplifies the process of transferring and drawing drawings between different software and eliminates any additional hardware costs.
[0071] Furthermore, this embodiment can effectively improve drawing efficiency by pre-establishing component mapping relationships between the component library in the first software and the second software. Specifically, before reading the drawing to be transferred in the first software (step S101), the following steps are also included:
[0072] A first component library is established in the first software, and the component types of all components in the first component library are sorted out. The components include component symbols for representing parts and component attribute fields for describing parts.
[0073] In the second software, a corresponding second component library is established based on the component type;
[0074] Establish a component mapping relationship between the first software and the second software regarding the first component library and the second component library.
[0075] For example, firstly, the professional components such as equipment, pipes, and instrumentation in the Diagrams software are sorted out, and then a first component library is established by category. After the first component library is established, the component types of all components are obtained. Each component object in the component library contains attribute templates that define graphic parameters and design-related parameters such as temperature and pressure. These attribute templates can be used as metadata of design parameters, instantiated during the design process, and a corresponding second component library is established in the Engineering Base software. The second component library contains component symbols and component attributes corresponding to the first component library.
[0076] Specifically, establishing the component mapping relationship between the first software and the second software regarding the first component library and the second component library includes the following steps:
[0077] The components corresponding to the components in the first component library are packaged according to the component form of the second component library to obtain the component symbols and attribute parameters of the first software corresponding to the component symbols and attribute parameters of the second software.
[0078] Based on the correspondence between the component symbols and attribute parameters of the first software and the component symbols and attribute parameters of the second software, a component mapping relationship between the first software and the second software regarding the first component library and the second component library is established.
[0079] In this embodiment, by establishing a mapping relationship between component symbols and component attributes in the Engineering Base software and the component library in the Diagrams software, a one-to-one correspondence is formed between the component symbols and component attributes in the Engineering Base software and the basic information of components in the Diagrams software. That is, the establishment of the above mapping relationship is equivalent to the establishment of a mapping database. When the drawing (component) data of the Diagrams software is obtained, the component symbols and component attribute information corresponding to the first component library or the second component library can be quickly found according to the mapping relationship.
[0080] The component data refers to the model data of the drawings that the Diagrams software needs to transfer to the Engineering Base software. This data may include component symbols, component attributes, and location coordinates. For ease of understanding, [further details are provided in the original text]. Figures 2-5 As shown, Figure 2 This is an example drawing of the drawing and the component attribute information corresponding to the component object (i.e., the first part information) in the drawing. The component attribute information includes attribute fields and attribute values that represent the characteristics of the component. The drawing consists of "A3B / V-01", the reducing joint "A3B / R-32" and two pipe sections. Selecting the valve "A3B / V-01" will display all its attributes in its attribute bar. Figure 3 This is an example drawing exported from Diagrams software. After exporting the drawing, it is converted into the corresponding .mdb format file so that the corresponding component symbols and component attribute information can be quickly found in Engineering Base software. Then, the corresponding component symbols and component attributes can be created according to the mapping relationship. Figure 4 This is a schematic diagram illustrating the creation of component symbols for corresponding component objects (second software component information) in the Engineering Base software. Figure 5 This is a schematic diagram illustrating the component attributes for generating corresponding component objects in the Engineering Base software.
[0081] Combination Figure 6 As shown, Figure 6 This is an example diagram of how the Engineering Base software, after obtaining the corresponding component symbols and component attribute information, draws the corresponding drawings in this embodiment.
[0082] Please refer to Figure 7 , Figure 7This is a flowchart illustrating another drawing data transmission and drawing method provided in this embodiment. Based on the previous embodiment, the preset format file is defined as a .mdb file. In this embodiment, the component data of the second software is stored in a relational database to form a .mdb file, thereby realizing the transmission and acquisition of component data. This improves the transmission and acquisition efficiency of component symbols and component attribute parameters in component information, and further improves the transmission and drawing efficiency of drawing data between different software. Specifically, saving the component data to the preset format file (step S102) is further divided into step S102a.
[0083] Step S102a: Save the component data to a relational database to form a .mdb file.
[0084] A relational database is a database that uses a relational model to organize data. It stores data in rows and columns for easy user understanding. These rows and columns in a relational database are called tables, and a group of tables makes up the database. In this embodiment, a relational database is used to store metadata to facilitate quick retrieval and lookup of component data.
[0085] Specifically, during the export process, Diagrams software stores the drawing data as structured data, that is, it stores the drawing data as structured data in a preset format file and then sends it to Engineering Base software.
[0086] It is understandable that an MDB file is a relational database format file, which can be opened with Microsoft Office Access. It facilitates the classification and retrieval of data. Storing drawing data as an MDB file can effectively improve the efficiency of obtaining legends (i.e., component symbols) and component attribute information in graphic data.
[0087] Furthermore, the preset format file is divided into several tables to store the component data. The several tables include a component symbol table, a component attribute table, an attribute mapping table, and a parameter table.
[0088] In this embodiment, the aforementioned table in the preset format file can be set based on the component mapping relationship, such as... Figures 9-12 As shown, Figure 9 Here is an example diagram of the table relationships in an mdb file, where...
[0089] The AttributeMapping table is used to configure the attribute mapping information of the source Diagrams object and the Engineering Base, the target object.
[0090] The Elements table stores all equipment, valves, pipes, and other components.
[0091] The ElementsRefAtta table stores the attribute values of all components.
[0092] The parameter table is used to store all graphic information such as lines, circles, arcs, and rectangles in the drawing;
[0093] In addition, it may include a SymbolMapping table, which stores mapping information such as the name or type of the legend;
[0094] Shapes are used to store all graphic information such as lines, circles, arcs, and rectangles in the drawing;
[0095] The ShapeGroup table is used to store grouping information for all shapes.
[0096] Understandably, Diagrams software can obtain such data during the drawing export process. Figure 10 The Elements symbol table shown displays storage information for three types of devices: valves, pipes, and reducers. Expanding the valve "A3B / V-01" reveals its device attribute information, such as... Figure 11 As shown, ID number 107 has the value "A3B / V-01" and its attribute is 55, corresponding to... Figure 12 The mapping information for row ID 55 in the AttributeMapping table shown is an example. The attribute mapping table and component symbol table are tables that can obtain the corresponding attributes and component symbols according to the mapping relationship.
[0097] Specifically, the .mdb file is parsed to obtain component data such as component symbols and component attribute information, which can then be used to generate corresponding drawings in Engineering Base software, such as... Figure 8 As shown, in the Engineering Base software, right-clicking the generated drawing allows you to reproduce the legends and attribute data from the MDB file based on its mapping relationship, thus generating the drawing. In one implementation, you can choose to open it with Visio to view the specific content and attribute information of the drawing, such as... Figure 13 As shown, the valve attribute information generated in Engineering Base can be mapped one-to-one with the valve attributes in Diagrams.
[0098] The process described in this embodiment is essentially as follows: Diagrams software graphically represents data and stores it in structured data. Simultaneously, database objects are integrated into the corresponding model database. This embodiment reads information such as drawings and legend attributes from the model database and exports the information to a mapping database. Then, the drawings and data in the mapping database are converted into the actual project applied in the Engineering Base software. This enables the transfer of flowcharts and data items between Diagrams software and Engineering Base software, facilitating interaction between intelligent process design and digital instrumentation and control design systems. This makes the drawing system simple and convenient to operate, more practical, and frees up manpower, realizing the vision of intelligent process design. It provides great convenience for drawing transfer and data interaction between process engineering, equipment engineering, HVAC, and instrumentation and control engineering disciplines. It also significantly saves time spent on redrawing drawings and reduces costs considerably.
[0099] Furthermore, the embodiments disclosed herein can also be applied to drawing conversion and data transfer in other industries and professions. Based on the software implementation of this embodiment, targeted correspondences can be created for design legends of different professions, thereby enabling the transfer of graphics and data between Diagrams software and Engineering Base software.
[0100] To facilitate understanding of the embodiments of this disclosure, the following are further examples of the transmission and drawing of P&ID diagrams between Diagrams software and Engineering Base software:
[0101] The first step is to sort out the professional components such as equipment, piping, and instrumentation in the Diagrams software, and build a model component library by category. Each component object in the component library contains attribute templates that define graphic parameters and design-related parameters such as temperature and pressure. These attribute templates serve as metadata for design parameters and are instantiated during the design process.
[0102] The second step involves encapsulating each component in the P&ID diagram of the Diagrams software as a component library object. The graphical parameters and design-related attribute parameters of the component are extracted and saved in a structured data format to the database, forming a .mdb file. The database stores the component object data in the following tables:
[0103] The component (symbol) table stores all component objects, including all equipment, valves, pipes, etc., and related information such as object names and component object references.
[0104] The attribute mapping table is used to configure the names of all attribute information for component objects;
[0105] The component attribute table stores the attribute values of all components, and it corresponds one-to-one with the attribute mapping table.
[0106] The graphic parameter table is used to store all graphic information such as lines, circles, arcs, and rectangles in the drawing;
[0107] Grouping table, used to store grouping information for all shapes;
[0108] The legend mapping table is used to store mapping information such as the legend name and type of Diagrams.
[0109] The third step is to create mapped component objects in the Engineering Base software. These mapped component objects correspond to the component objects in the Diagrams, including all design-related attribute parameters and their graphical parameters. The graphical parameters are pre-defined in the Engineering Base software.
[0110] The fourth step is to import the .mdb format file into the Engineering Base software, parse the component object data in the .mdb file, instantiate the component objects in Engineering Base with the corresponding components, parse and assign the design-related attribute parameters of the components, and reference the component graphics in Engineering Base. According to the parsed graphic parameters, instantiate and assign values in Engineering Base to form the drawing.
[0111] Diagrams software graphical data is decomposed into component objects and stored in a database as structured data. This invention reads the model database, parses the component objects, and extracts the corresponding object graphical information and design-related parameter data. By creating corresponding component objects in the Engineering Base, the component objects extracted from the database are instantiated according to the components, and the parsed graphical information and design-related parameters are assigned to the component objects, thus completing the drawing. Applied to actual projects, it can realize the drawing conversion between intelligent process flow design and digital instrumentation and control design systems, making the drawing system simple and convenient to operate, more practical, and freeing up manpower.
[0112] Based on the same technical concept, this disclosure also provides a drawing transmission and drawing device, such as... Figure 14 As shown, the device includes:
[0113] The reading module 141 is configured to read the drawing to be transmitted in the first software and obtain the component data of the drawing to be transmitted. The component data includes the component information of the first software and the position information of each component corresponding to the component information of the first software in the drawing.
[0114] Storage module 142 is configured to save the component data to a preset format file;
[0115] The parsing module 143 is configured to import the preset format file into the second software and parse the preset format file to obtain the component data;
[0116] Instantiation module 144 is configured to instantiate the first software component information in the component data according to the component form of the second software based on the component mapping relationship between the first software and the second software, thereby obtaining the second software component information; and,
[0117] The drawing module 145 is configured to draw drawings in the second software based on the position information of each component in the drawing and the component information of the second software.
[0118] In one implementation, the preset format file is a .mdb file.
[0119] The storage module is specifically configured to save the component data to a relational database, forming a .mdb file.
[0120] In one embodiment, the device further includes:
[0121] The first creation module is configured to create a first component library in the first software and sort out the component types of all components in the first component library. The components include component symbols for representing parts and component attribute fields for describing parts.
[0122] The second creation module is configured to create a corresponding second component library in the second software according to the component type;
[0123] The mapping relationship establishment module is configured to establish a component mapping relationship between the first software and the second software regarding the first component library and the second component library.
[0124] In one implementation, the mapping relationship establishment module includes:
[0125] The packaging unit is configured to package the components corresponding to the components of the first component library according to the component form of the second component library, so as to obtain the component symbols and attribute parameters of the first software corresponding to the component symbols and attribute parameters of the second software.
[0126] The establishment unit is configured to establish a component mapping relationship between the first software and the second software regarding the first component library and the second component library based on the correspondence between the component symbols and attribute parameters of the first software and the component symbols and attribute parameters of the second software.
[0127] In one embodiment, the preset format file is divided into several tables to store the component data, and the several tables include a component symbol table, a component attribute table, an attribute mapping table, and a parameter table.
[0128] Based on the same technical concept, this disclosure also provides a common terminal device, such as... Figure 15 As shown, the terminal device includes a memory 10 and a processor 20. The memory 10 stores a computer program. When the processor 20 runs the computer program stored in the memory 10, the processor 20 executes the drawing transmission and drawing method.
[0129] Based on the same technical concept, this disclosure also provides a computer-readable storage medium storing a computer program thereon, wherein when the computer program is executed by a processor, the processor executes the drawing transmission and drawing method described above.
[0130] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled 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 storing 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 technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this disclosure, and are not intended to limit them. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this disclosure.
Claims
1. A method for transmitting and drawing drawings, characterized in that, include: The drawing to be transmitted is read in the first software to obtain the component data of the drawing to be transmitted. The component data includes the component information of the first software and the position information of each component in the drawing corresponding to the component information of the first software. Save the component data to a preset format file; The preset format file is imported into the second software, and the preset format file is parsed to obtain the component data; Based on the component mapping relationship between the first software and the second software, the first software component information in the component data is instantiated according to the component form of the second software to obtain the second software component information; as well as, The drawing is created in the second software based on the position information of each component in the drawing and the component information in the second software. The first software is Diagrams software, and the second software is Engineering Base software. The preset format file is a .mdb file. Saving the component data to a preset format file includes: saving the component data to a relational database to form a .mdb file.
2. The method according to claim 1, characterized in that, Before the first software reads the drawing to be transferred, it also includes: A first component library is established in the first software, and the component types of all components in the first component library are sorted out. The components include component symbols for representing parts and component attribute fields for describing parts. In the second software, a corresponding second component library is established based on the component type; Establish a component mapping relationship between the first software and the second software regarding the first component library and the second component library.
3. The method according to claim 2, characterized in that, Establishing a component mapping relationship between the first software and the second software regarding the first component library and the second component library, including: The components corresponding to the components in the first component library are packaged according to the component form of the second component library to obtain the component symbols and attribute parameters of the first software corresponding to the component symbols and attribute parameters of the second software. Based on the correspondence between the component symbols and attribute parameters of the first software and the component symbols and attribute parameters of the second software, a component mapping relationship between the first software and the second software regarding the first component library and the second component library is established.
4. The method according to claim 1, characterized in that, The preset format file is divided into several tables to store the component data. The several tables include a component symbol table, a component attribute table, an attribute mapping table, and a parameter table.
5. A drawing transmission and drawing device, characterized in that, include: The reading module is configured to read the drawing to be transmitted in the first software and obtain the component data of the drawing to be transmitted. The component data includes the component information of the first software and the position information of each component in the drawing corresponding to the component information of the first software. A storage module configured to save the component data to a preset format file; The parsing module is configured to import the preset format file into the second software and parse the preset format file to obtain the component data; The instantiation module is configured to instantiate the first software component information in the component data according to the component form of the second software based on the component mapping relationship between the first software and the second software, so as to obtain the second software component information; as well as, The drawing module is configured to draw drawings in the second software based on the position information of each component in the drawing and the component information of the second software. The first software is Diagrams software, and the second software is Engineering Base software. The preset format file is a .mdb file. The storage module is specifically configured to save the component data to a relational database, forming a .mdb file.
6. The apparatus according to claim 5, characterized in that, Also includes: The first creation module is configured to create a first component library in the first software and sort out the component types of all components in the first component library. The components include component symbols for representing parts and component attribute fields for describing parts. The second creation module is configured to create a corresponding second component library in the second software according to the component type; The mapping relationship establishment module is configured to establish a component mapping relationship between the first software and the second software regarding the first component library and the second component library.
7. A terminal device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the drawing transmission and drawing method according to any one of claims 1 to 4.
8. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed by a processor, performs the drawing transmission and drawing method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Circuit simulation model establishment method and system and related components
CN114139474A