Method and device for generating mechanical engineering drawing, equipment and storage medium

By reading and selecting the configuration information of components from the configuration database, and generating program call files based on the location and attribute information entered by the user, the problem of lack of universality of existing mechanical engineering drawing generation software is solved, and mechanical engineering drawing generation is achieved without limitations of specific structural characteristics, enhancing the universality and customization capabilities of the system.

CN119538443APending Publication Date: 2025-02-28MESNAC CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411596021.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The existing mechanical drawing generation software lacks universality and cannot support the rapid expansion of special drawings that are separated from the characteristics of the enterprise structure.

Method used

By reading the configuration information of the specified components from the pre-generated configuration database, selecting the configuration information of the drawing components, and generating a program call file based on the position information and attribute information entered by the user, and finally generating a mechanical engineering drawing.

Benefits of technology

It realizes the generation of mechanical engineering drawings that are not restricted by specific structural characteristics, enhances the universality of the system, supports customized design needs, and meets the personalized engineering drawing generation needs of different industries and enterprises.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119538443A_ABST
    Figure CN119538443A_ABST
Patent Text Reader

Abstract

The invention provides a method and device for generating a mechanical engineering drawing, equipment and a storage medium, and the method comprises the steps: reading the configuration information of a specified component from a pre-generated configuration database; selecting configuration information of drawing components from the configuration information of the specified components, wherein the drawing components are used for generating a mechanical engineering drawing; generating a program calling file according to the configuration information of the drawing components and the position information and the attribute information of the drawing components input by the user; and generating the mechanical engineering drawing according to the program calling file. The method for generating the mechanical engineering drawing provided by the embodiment of the invention is enhanced in universality and high in expandability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of mechanical engineering drawing model generation, and in particular to a method, device, equipment and storage medium for generating a mechanical engineering drawing. Background Art

[0002] At present, the dedicated mechanical engineering drawing generation software that enterprises have can only provide engineering drawings generated according to the structural characteristics of the enterprise. When special engineering drawings that are independent of the structural characteristics of the enterprise are needed, the dedicated mechanical engineering drawing generation software cannot support the rapid expansion of special engineering drawings. Therefore, the current mechanical engineering drawing generation software lacks versatility. Summary of the invention

[0003] The present disclosure provides a method to solve or alleviate one or more technical problems in the prior art.

[0004] In a first aspect, the present disclosure provides a method for generating a mechanical engineering drawing, comprising:

[0005] Read the configuration information of the specified components from the pre-generated configuration database;

[0006] Selecting configuration information of a drawing component from the configuration information of the designated component, the drawing component being used to generate the mechanical engineering drawing;

[0007] Generate a program calling file according to the configuration information of the drawing component and the position information and attribute information of the drawing component input by the user;

[0008] The mechanical engineering drawing is generated according to the program calling file.

[0009] In one embodiment, the configuration database is generated in advance in the following manner:

[0010] For each component, receiving configuration information of the component input by the user through the configuration interface;

[0011] The received configuration information of the component is written into the configuration database.

[0012] In one embodiment, selecting configuration information of a drawing component from the specified component includes:

[0013] Receiving a component selected by a user from the designated component in a first drop-down box in a setting interface as a drawing component; the first drop-down box is a drop-down box in the setting interface for the user to select a component;

[0014] The configuration information of the drawing component is used as the configuration information of the drawing component.

[0015] In one embodiment, the setting interface further includes an input box for the user to input attribute information, and the user inputs the attribute information through the input box; and / or,

[0016] The setting interface also includes a second drop-down box for the user to select attribute information, and the user inputs the attribute information through the second drop-down box.

[0017] In one embodiment, the user is provided with input of the position information of the drawing component in the following manner:

[0018] Saving the configuration information and attribute information of the drawing components;

[0019] The position information of the drawing component input by the user through the coordinate system of the drawing interface is received.

[0020] In one embodiment, the configuration information includes a category name, a category code, graphic element display information, a corresponding source file, and association information with other components;

[0021] The position information includes coordinate parameters of the components;

[0022] The attribute information includes length, width, height and / or tilt angle.

[0023] In one embodiment, when the mechanical engineering drawing includes a guard net engineering drawing, the designated components include column components, guard net panel components and / or safety door components;

[0024] When the mechanical engineering drawing includes a guardrail engineering drawing, the designated components include mounting plate components, bracket components, guardrail components and / or inclined ladder components.

[0025] In one embodiment, generating the mechanical engineering drawing specifically includes:

[0026] When it is determined that the number of the drawing component is one, generating a mechanical engineering drawing corresponding to the drawing component according to a program calling file corresponding to the drawing component and a preset single drawing component engineering drawing generation algorithm;

[0027] When it is determined that there are multiple drawing components, mechanical engineering drawings corresponding to the multiple drawing components are generated according to program call files corresponding to the multiple drawing components and a preset assembly algorithm.

[0028] In a second aspect, the present disclosure provides a device for generating a mechanical engineering drawing, comprising:

[0029] A reading module is used to read the configuration information of a specified component from a pre-generated configuration database;

[0030] A selection module, used for selecting configuration information of a drawing component from the specified components, wherein the drawing component is used for generating the mechanical engineering drawing;

[0031] A file generation module, used to generate a program call file according to the configuration information of the drawing component, and the position information and attribute information of the drawing component input by the user;

[0032] The engineering drawing generation module is used to generate the mechanical engineering drawing according to the program calling file.

[0033] In one embodiment, the device further includes a configuration module, which is used to generate the configuration database in advance in the following manner:

[0034] For each component, receiving configuration information of the component input by the user through the configuration interface;

[0035] The received configuration information of the component is written into the configuration database.

[0036] In one implementation, the selection module is specifically configured to:

[0037] Receive the component selected by the user from the designated component in the first drop-down box in the setting interface as the drawing component; the first drop-down box is a drop-down box in the setting interface for the user to select the component; and use the configuration information of the drawing component as the configuration information of the drawing component.

[0038] In one embodiment, the setting interface further includes an input box for the user to input attribute information, and the user inputs the attribute information through the input box; and / or,

[0039] The setting interface also includes a second drop-down box for the user to select attribute information, and the user inputs the attribute information through the second drop-down box.

[0040] In one embodiment, the file generation module allows the user to input the location information of the drawing component in the following manner:

[0041] Saving the configuration information and attribute information of the drawing components;

[0042] The position information of the drawing component input by the user through the coordinate system of the drawing interface is received.

[0043] In one embodiment, the configuration information includes a category name, a category code, graphic element display information, a corresponding source file, and association information with other components;

[0044] The position information includes coordinate parameters of the components;

[0045] The attribute information includes length, width, height and / or tilt angle.

[0046] In one embodiment, when the mechanical engineering drawing includes a guard net engineering drawing, the designated components include column components, guard net panel components and / or safety door components;

[0047] When the mechanical engineering drawing includes a guardrail engineering drawing, the designated components include mounting plate components, bracket components, guardrail components and / or inclined ladder components.

[0048] In one embodiment, the engineering drawing generation module is specifically used to:

[0049] When it is determined that the number of the drawing component is one, generating a mechanical engineering drawing corresponding to the drawing component according to a program calling file corresponding to the drawing component and a preset single drawing component engineering drawing generation algorithm;

[0050] When it is determined that there are multiple drawing components, mechanical engineering drawings corresponding to the multiple drawing components are generated according to program call files corresponding to the multiple drawing components and a preset assembly algorithm.

[0051] In a third aspect, the present disclosure provides an electronic device, including:

[0052] at least one processor; and

[0053] a memory communicatively connected to the at least one processor; wherein,

[0054] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method in the embodiments of the present disclosure.

[0055] In a fourth aspect, the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute any method in the embodiments of the present disclosure.

[0056] In a fourth aspect, the present disclosure provides a computer program product, including a computer program, wherein the computer program implements the fourth aspect, any method in the embodiments of the present disclosure when executed by a processor.

[0057] The disclosed solution can read the configuration information of any component pre-stored in the configuration database. The component can be a component in any scenario, and the configuration information of the component required for drawing can be selected from the read configuration information of the component according to the actual application requirements, so that the mechanical engineering drawing to be generated is not restricted by specific structural features. The configuration information of components of specific structures can be selected, and the configuration information of components of non-specific structures can also be selected, so that the versatility of the disclosed embodiment is enhanced.

[0058] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments provided according to the present disclosure and should not be regarded as limiting the scope of the present disclosure.

[0060] Figure 1 A schematic diagram of a method flow for generating a mechanical engineering drawing provided by an embodiment of the present disclosure;

[0061] Figure 2 A schematic diagram of a configuration database generation process provided in an embodiment of the present disclosure;

[0062] Figure 3 A schematic diagram of a process for pre-generating a configuration database provided in an embodiment of the present disclosure;

[0063] Figure 4 A schematic diagram of a configuration interface provided for an embodiment of the present disclosure;

[0064] Figure 5 A flowchart of an implementation method of generating a mechanical engineering drawing in a mesh engineering drawing scenario provided by the present disclosure;

[0065] Figure 6 A schematic diagram of a setting interface provided for an embodiment of the present disclosure;

[0066] Figure 7 A schematic diagram of a drawing interface provided for an embodiment of the present disclosure;

[0067] Figure 8 A schematic diagram of an interactive interface for generating a mechanical engineering drawing using an algorithm provided in an embodiment of the present disclosure;

[0068] Fig. 9 A schematic diagram of a three-dimensional engineering drawing of a protective net provided in an embodiment of the present disclosure;

[0069] Fig.10 A schematic diagram of the structure of a device for generating a mechanical engineering drawing provided in an embodiment of the present disclosure;

[0070] Fig.11 A block diagram of an electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0071] The present disclosure will be further described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0072] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.

[0073] The mechanical design industry often involves the design and generation of mechanical engineering drawings. Especially in safety protection scenarios, it is often necessary to generate mechanical engineering drawings corresponding to the required safety protection system based on the application scenario to assist designers in completing the construction of the engineering drawings.

[0074] Safety protection system scenarios can include mechanical equipment protection scenarios, automated production scenarios, farm animal husbandry scenarios, road safety scenarios, etc. For example, in the mechanical equipment protection scenario, the safety protection system is mainly used to separate dangerous areas from safe areas to prevent workers from coming into contact with dangerous mechanical equipment or hazardous substances; in the automated production scenario, the safety protection system can prevent unauthorized personnel from entering the production area, causing equipment damage or production interruption; in the road safety scenario, the safety protection system can be used to divide motor vehicle roads and sidewalks; in the farm animal husbandry scenario, the safety protection system is often used to fix farm animal pens to prevent animals from escaping or foreign animals from invading.

[0075] In order to facilitate designers to generate the required mechanical engineering drawings according to their own needs, such as Figure 1 As shown, the embodiment of the present disclosure provides a method for generating a mechanical engineering drawing, comprising:

[0076] Step S101, reading the configuration information of a specified component from a pre-generated configuration database.

[0077] In one embodiment, a configuration database for storing component configuration information is pre-generated. Specifically, the user can store the required component configuration information in the configuration database according to their own needs, so as to serve as the basic data required for the subsequent generation of mechanical engineering drawings. The components and component configuration information stored in the configuration database are not limited by application scenarios, structural characteristics, etc., and can store any component configuration information required by the user.

[0078] In one embodiment, the configuration information of the specified components selected by the user is read from the configuration database. For example, in a scenario where the user needs to generate a guard net engineering drawing, the user can select all or part of the configuration information of the components required to generate the guard net engineering drawing required by the user from the configuration database. The number of specified components is not limited in the embodiment of the present disclosure. In theory, as long as the user's needs are met, for example, the number of specified components can be 1 or more.

[0079] In one embodiment, the configuration information of the component includes a classification name, a classification code, a classification parent ID, a classification attribute name array, a classification name rule array, graphic element display information, a corresponding source file, and association information with other components; in addition, the configuration information of the component may also include a schematic diagram. Among them, the classification name may be the name of the component, the classification code is the identifier of the classification to which the component belongs, the classification parent ID is the mechanical engineering drawing category to which the component belongs, the graphic element display information is the image information such as points, lines, and surfaces that constitute the component, the corresponding source file is the source file of the mechanical engineering drawing software that needs to be called to generate the component, and the association information with other components is the logical association information such as the position relationship and connection relationship between the component and other components.

[0080] In one embodiment, the position information of the component includes coordinate parameters of the component in the generated engineering drawing, which are used to indicate the specific position of the component.

[0081] In one implementation, the attribute information of the component includes the length, width, height and / or tilt angle of the component.

[0082] In one implementation, the configuration information of a specified component may be searched and read from a configuration database by using the identifier of the specified component. Of course, the configuration information of a specified component may also be searched and read from the configuration database by other methods, which are not limited here.

[0083] Step S102, selecting configuration information of a drawing component from the configuration information of the designated component, wherein the drawing component is used to generate the mechanical engineering drawing.

[0084] Specifically, the configuration information of the designated components read may be more than the configuration information of the components used to generate the mechanical engineering drawing. In this step, the configuration information of the drawing components used to generate the mechanical engineering drawing is selected from the configuration information of the designated components read.

[0085] Step S103, generating a program calling file according to the configuration information of the drawing component, and the position information and attribute information of the drawing component input by the user.

[0086] Specifically, a program calling file for generating mechanical engineering drawings is generated according to the configuration information, location information and attribute information of drawing components. The format of the program calling file can be determined according to actual needs and is not limited here.

[0087] Step S104, generating the mechanical engineering drawing according to the program calling file.

[0088] Specifically, a software interface for generating mechanical engineering drawings is called, and a program call file is sent to the software through the interface, and the software generates a mechanical engineering drawing. The mechanical engineering drawing can be a two-dimensional drawing or a three-dimensional drawing, and the generated mechanical engineering drawing can also include a bill of materials.

[0089] By using the mechanical engineering drawing generation method provided by the embodiment of the present disclosure, the configuration information of any component pre-stored in the configuration database can be read. The component can be a component in any scenario, and the configuration information of the component required for drawing can be selected from the read configuration information of the component according to the actual application requirements, so that the mechanical engineering drawing to be generated is not limited by specific structural features, that is, the configuration information of the component of a specific structure can be selected, and the configuration information of the component of a non-specific structure can also be selected, so that the versatility of the embodiment of the present disclosure is enhanced. In addition, the user can input the location information and attribute information of the component, that is, the location information and attribute information can be set by the user according to actual needs, without being limited by the structure and scenario, further enhancing the versatility of the embodiment of the present disclosure.

[0090] The mechanical engineering drawing generation method provided by the embodiment of the present disclosure can also support customized design requirements and meet the personalized engineering drawing generation requirements of different industries, manufacturers or enterprises.

[0091] In one embodiment, Figure 2 As shown, the configuration database can be generated in advance in the following way:

[0092] Step S201: for each component, receiving configuration information of the component input by the user through the configuration interface.

[0093] Specifically, the configuration database may store configuration information of multiple components. For each component, the configuration information of the component needs to be configured separately in the configuration database.

[0094] In this embodiment, when a configuration database needs to be generated, the user can open a configuration interface, which includes an input box for inputting configuration information of a component, and / or a drop-down box for the user to select configuration information of a component. The user configures the configuration information of the component through the input box and / or drop-down box of the configuration interface, and after the configuration is completed, the user can click a save or confirm button of the configuration interface. When a save or confirm instruction is received, the configuration information of the component is received.

[0095] Step S202, writing the received configuration information of the component into a configuration database.

[0096] In specific implementation, the received configuration information of the components is written into the configuration data storage, that is, saved to the configuration database. In one embodiment, the user can update the configuration database according to actual needs, such as deleting, modifying and adding configuration information of components in the configuration database, and use the updated configuration database as the currently available configuration database.

[0097] The configuration database may store a lot of configuration information of components. If the configuration is performed simply in text or table form, the configuration efficiency is low. This embodiment allows users to complete the configuration of configuration information in a visual manner through the configuration interface, which can improve the configuration efficiency. In addition, when the configuration interface includes a configuration information drop-down box, the user can directly select the information to be configured through the information provided in the drop-down box, which can further improve the configuration efficiency.

[0098] In addition, the configuration database can store the configuration information of any component, regardless of the application scenario and structural characteristics. The component configuration information stored in the configuration database can be read and used repeatedly, without the need for users to repeatedly configure the components, thus improving the efficiency of generating mechanical engineering drawings.

[0099] In one embodiment, selecting configuration information of a drawing component from a specified component includes:

[0100] Receive the component selected by the user from the designated component in the first drop-down box in the setting interface as the drawing component; the first drop-down box is a drop-down box in the setting interface for the user to select the component; and use the configuration information of the drawing component as the configuration information of the drawing component.

[0101] Specifically, when the user needs to select the configuration information of the drawing component, the setting interface is opened, the setting interface displays a first drop-down box, and the specified component is displayed through the first drop-down box. The user can select the drawing component from the specified components displayed in the first drop-down box. After receiving the drawing component selected by the user, the configuration information of the drawing component is saved.

[0102] This embodiment allows users to complete the selection of component configuration information in a visual way through the setting interface, which can improve configuration efficiency. In addition, when the configuration interface includes a configuration information drop-down box, the user can directly select the required configuration information through the information provided in the drop-down box, which can further improve configuration efficiency.

[0103] In one implementation, the setting interface further includes an input box for the user to input attribute information, and the user inputs the attribute information through the input box.

[0104] In another embodiment, the setting interface further includes a second drop-down box for the user to select attribute information, and the user enters the attribute information through the second drop-down box. Specifically, the second drop-down box can display multiple attribute information, and the user can select the attribute information to be input from the attribute information displayed in the second drop-down box.

[0105] In another embodiment, the setting interface also includes an input box for the user to input attribute information, and a second drop-down box for the user to select attribute information. The user chooses to enter the attribute information through the input box, and the user can also select the attribute information to be input from the attribute information displayed in the second drop-down box.

[0106] Specifically, after the user inputs the attribute information, the attribute information input by the user is saved.

[0107] In one implementation, the user may input the location information of the drawing component in the following manner:

[0108] Save the configuration information and attribute information of the drawing components; receive the position information of the drawing components input by the user through the coordinate system of the drawing interface.

[0109] In specific implementation, the configuration information of the drawing components selected by the user is saved, and the attribute information of the drawing components input by the user is saved. When the user needs to input the location information of the drawing components, the drawing interface is opened, and the coordinate system is displayed in the drawing interface. The user can use the mouse to draw the primitive information of the drawing components in the coordinate system. At this time, the coordinate parameters selected by the mouse in the coordinate system are recorded. In addition, the user can also enter specific coordinate values ​​through the coordinate input box of the drawing interface to obtain the location information of the drawing components.

[0110] Specifically, after the user inputs the location information, the location information input by the user is saved.

[0111] In one embodiment, the mechanical engineering drawings include guardrail engineering drawings. In this case, the specified components include necessary components for forming the guardrail engineering drawings, such as column components, guardrail panel components and / or safety door components.

[0112] In another embodiment, the mechanical engineering drawings include guardrail engineering drawings. In this case, the specified components include necessary components for forming guardrail engineering drawings, such as mounting plate components, bracket components, guardrail components and / or inclined ladder components.

[0113] In another embodiment, the mechanical engineering drawings include guardrail engineering drawings and guardrail engineering drawings. In this case, the specified components include necessary components for forming the guardrail engineering drawings, such as column components, guardrail panel components and / or safety door components, and the specified components include necessary components for forming the guardrail engineering drawings, such as mounting plate components, bracket components, guardrail components and / or inclined ladder components.

[0114] As an implementation method, generating a mechanical engineering drawing in step S104 specifically includes:

[0115] When it is determined that the number of the drawing component is one, a mechanical engineering drawing corresponding to the drawing component is generated according to a program call file corresponding to the drawing component and a preset single drawing component engineering drawing generation algorithm. Specifically, the preset single drawing component engineering drawing generation algorithm is an existing general algorithm and is not limited here.

[0116] When it is determined that there are multiple drawing components, mechanical engineering drawings corresponding to the multiple drawing components are generated according to the program call files corresponding to the multiple drawing components and the preset assembly algorithm. Specifically, the preset assembly algorithm is an existing general algorithm and is not limited here.

[0117] By using the embodiments of the present disclosure, it is possible to generate mechanical engineering drawings corresponding to a single component as well as mechanical engineering drawings corresponding to multiple components, so that the application scope of the embodiments of the present disclosure is wider and the versatility is stronger.

[0118] The following takes the generated mechanical engineering drawing as a guard net engineering drawing as an example to illustrate an implementation of the pre-generated configuration database provided by the present disclosure, including:

[0119] Step S301, when receiving an instruction to open a configuration interface sent by a user, a configuration interface pops up.

[0120] After the configuration interface pops up, the user can select the configuration information of the components to be configured through the configuration interface, such as Figure 4 As shown, it is a schematic diagram of a configuration interface provided by this embodiment. Figure 4 The configuration information options displayed include: category code, category name, category parent ID, category attribute name array, and category name rule array. Users can select the information they need to configure through the drop-down box in the configuration information options. Figure 4 This is just one example of the configuration interface. More configuration information options can be provided to users in the configuration interface based on actual needs.

[0121] Step S302, receiving the configuration information of the guard panel component, the configuration information of the column component and the configuration information of the safety door component configured by the user in the configuration interface respectively.

[0122] Step S303, writing the received configuration information of each component into the configuration database.

[0123] After the configuration information of the components is written into the configuration database, the pre-generated configuration database can be obtained.

[0124] The following takes the generated mechanical engineering drawing as a guard net engineering drawing as an example to illustrate an implementation method of generating a mechanical engineering drawing provided by the present disclosure. Figure 5 As shown, including:

[0125] Step S501, reading the configuration information of the guard net components from a pre-generated configuration database.

[0126] Step S502, when receiving the opening setting interface instruction sent by the user, the setting interface pops up, and loads the read configuration information of the guard net component into the setting interface, and the setting interface also includes an input box for inputting the attribute information of the guard net component.

[0127] Specifically, the setting interface includes a first drop-down box for the user to select the configuration information of the drawing component, and also includes an input box and a drop-down box for the user to input the component attribute information. Figure 6 As shown, it is a schematic diagram of a setting interface provided by an embodiment of the present disclosure. The input box corresponding to the right side of "Code" in the figure is the first drop-down box. Clicking the first drop-down box can display the code in the configuration information of the protective net components, and the user can select the required component information. Figure 6 The angle, position and height are the attribute information of the guardrail components. Figure 6 You can enter the corresponding attribute information in the angle input box, position input box and height input box.

[0128] Step S503, receiving the guard net component for generating the guard net engineering drawing selected by the user through the first drop-down box in the setting interface, and using the configuration information of the guard net component as the configuration information of the drawing component.

[0129] In this embodiment, it is assumed that the user selects multiple guard net components.

[0130] Step S504, saving the configuration information and property information of the drawing component set by the user through the setting interface.

[0131] Step S505, when receiving the instruction to open the drawing interface sent by the user, the drawing interface pops up and loads the configuration information and attribute information of the saved drawing components into the drawing interface. The drawing interface also includes a coordinate system for the user to input the component position information.

[0132] like Figure 7 As shown in FIG. 1 , a drawing interface diagram provided by an embodiment of the present disclosure is provided. The user can select the currently required components from the configuration information "code" on the left, such as selecting the safety door component, and select the corresponding attribute information from the attribute information such as angle and height on the left, and set the position information of each guard net component in the guard net engineering drawing to be generated by the mouse in the coordinate system on the right, such as Figure 7 The fan-shaped area on the right side shows the location information of one of the safety door components.

[0133] Step S506, receiving and saving the position information of the drawing component input by the user through the coordinate system of the drawing interface.

[0134] Step S507, generating a program calling file based on the configuration information and property information of the drawing components set by the user through the setting interface, and the position information input by the user through the drawing interface.

[0135] In specific implementation, the configuration information and property information saved in step S504 and the location information saved in step S507 are saved to the same program calling file, and the format of the program calling file can be a .TXT file or a file of other formats, which is not limited here.

[0136] Step S508, when receiving the instruction for generating the guard net engineering drawing sent by the user, calling the program calling file, and generating the guard net engineering drawing by using the preset assembly algorithm and the information in the program calling file.

[0137] like Figure 8As shown in the figure, it is an interactive interface for generating mechanical engineering drawings using algorithms. In this interface, users can select the classification name, classification code and attribute information of the components in the guard net engineering drawings to be generated. The information selected by the user is the information read from the program call file, and then the assembly algorithm and the read information are used to generate the final required guard net engineering drawings, such as Fig. 9 The figure shows a schematic diagram of a generated three-dimensional engineering drawing of a protective net.

[0138] In another embodiment, the present disclosure provides an apparatus for generating a mechanical engineering drawing, such as Fig.10 As shown, including:

[0139] The reading module 1001 is used to read the configuration information of the specified component from the pre-generated configuration database;

[0140] A selection module 1002 is used to select configuration information of a drawing component from the specified components, and the drawing component is used to generate the mechanical engineering drawing;

[0141] The file generation module 1003 is used to generate a program call file according to the configuration information of the drawing component and the position information and attribute information of the drawing component input by the user;

[0142] The engineering drawing generation module 1004 is used to generate the mechanical engineering drawing according to the program calling file.

[0143] Among them, in the device for generating mechanical engineering drawings provided by the present disclosure, Figure 3 As shown, the reading module 1002, the selecting module 1002 and the file generating module 1003 can constitute a layout drawing module, that is, the apparatus for generating mechanical engineering drawings provided by the present disclosure includes a layout drawing module.

[0144] In one embodiment, Figure 3 As shown, the device also includes a configuration module 1005, which is used to generate the configuration database in advance in the following manner:

[0145] For each component, receiving configuration information of the component input by the user through the configuration interface;

[0146] The received configuration information of the component is written into the configuration database.

[0147] In one implementation, the selection module 1002 is specifically configured to:

[0148] Receive the component selected by the user from the designated component in the first drop-down box in the setting interface as the drawing component; the first drop-down box is a drop-down box in the setting interface for the user to select the component; and use the configuration information of the drawing component as the configuration information of the drawing component.

[0149] In one embodiment, the setting interface further includes an input box for the user to input attribute information, and the user inputs the attribute information through the input box; and / or,

[0150] The setting interface also includes a second drop-down box for the user to select attribute information, and the user inputs the attribute information through the second drop-down box.

[0151] In one implementation, the file generation module 1003 allows the user to input the location information of the drawing component in the following manner:

[0152] Saving the configuration information and attribute information of the drawing components;

[0153] The position information of the drawing component input by the user through the coordinate system of the drawing interface is received.

[0154] In one embodiment, the configuration information includes a category name, a category code, graphic element display information, a corresponding source file, and association information with other components;

[0155] The position information includes coordinate parameters of the components;

[0156] The attribute information includes length, width, height and / or tilt angle.

[0157] In one embodiment, when the mechanical engineering drawing includes a guard net engineering drawing, the designated components include column components, guard net panel components and / or safety door components;

[0158] When the mechanical engineering drawing includes a guardrail engineering drawing, the designated components include mounting plate components, bracket components, guardrail components and / or inclined ladder components.

[0159] In one implementation, the engineering drawing generation module 1004 is specifically used to:

[0160] When it is determined that the number of the drawing component is one, generating a mechanical engineering drawing corresponding to the drawing component according to a program calling file corresponding to the drawing component and a preset single drawing component engineering drawing generation algorithm;

[0161] When it is determined that there are multiple drawing components, mechanical engineering drawings corresponding to the multiple drawing components are generated according to program call files corresponding to the multiple drawing components and a preset assembly algorithm.

[0162] Fig.11 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Fig.11 As shown, the electronic device includes: a memory 1110 and a processor 1120, and the memory 1110 stores a computer program that can be run on the processor 1120. The number of memories 1110 and processors 1120 can be one or more. The memory 1110 can store one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device executes the method provided by the above method embodiment. The electronic device may also include: a communication interface 1130, which is used to communicate with external devices and perform data exchange transmission.

[0163] If the memory 1110, the processor 1120 and the communication interface 1130 are implemented independently, the memory 1110, the processor 1120 and the communication interface 1130 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0164] Optionally, in a specific implementation, if the memory 1110, the processor 1120 and the communication interface 1130 are integrated on a chip, the memory 1110, the processor 1120 and the communication interface 1130 can communicate with each other through an internal interface.

[0165] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.

[0166] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).

[0167] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (for example: coaxial cable, optical fiber, data subscriber line (Digital Subscriber Line, DSL)) or wireless (for example: infrared, Bluetooth, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc. It is worth noting that the computer-readable storage medium mentioned in the present disclosure may be a non-volatile storage medium, in other words, a non-transient computer-readable storage medium.

[0168] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0169] In the description of the embodiments of the present disclosure, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0170] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means or, for example, A / B can mean A or B. "And / or" in this article is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0171] In the description of the embodiments of the present disclosure, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.

[0172] The above description is only an exemplary embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for generating a mechanical engineering drawing, characterized in that: include: Read the configuration information of the specified components from the pre-generated configuration database; Selecting configuration information of a drawing component from the configuration information of the designated component, the drawing component being used to generate the mechanical engineering drawing; Generate a program calling file according to the configuration information of the drawing component and the position information and attribute information of the drawing component input by the user; The mechanical engineering drawing is generated according to the program calling file.

2. The method according to claim 1, characterized in that: The configuration database is generated in advance in the following manner: For each component, receiving configuration information of the component input by the user through the configuration interface; The received configuration information of the component is written into the configuration database.

3. The method according to claim 1, characterized in that The configuration information of the drawing component is selected from the specified components, including: Receiving a component selected by a user from the designated component in a first drop-down box in a setting interface as a drawing component; the first drop-down box is a drop-down box in the setting interface for the user to select a component; The configuration information of the drawing component is used as the configuration information of the drawing component.

4. The method according to claim 3, characterized in that The setting interface further includes an input box for the user to input attribute information, and the user inputs the attribute information through the input box; and / or, The setting interface also includes a second drop-down box for the user to select attribute information, and the user inputs the attribute information through the second drop-down box.

5. The method according to claim 1, characterized in that The user is provided with input of the position information of the drawing component in the following manner: Saving the configuration information and attribute information of the drawing components; The position information of the drawing component input by the user through the coordinate system of the drawing interface is received.

6. The method according to any one of claims 1 to 5, characterized in that: The configuration information includes the category name, category code, graphic element display information, corresponding source files and association information with other components; The position information includes coordinate parameters of the components; The attribute information includes length, width, height and / or tilt angle.

7. The method according to any one of claims 1 to 5, characterized in that: When the mechanical engineering drawing includes a guard net engineering drawing, the designated components include column components, guard net panel components and / or safety door components; When the mechanical engineering drawing includes a guardrail engineering drawing, the designated components include mounting plate components, bracket components, guardrail components and / or inclined ladder components.

8. The method according to any one of claims 1 to 5, characterized in that: Generating the mechanical engineering drawing specifically includes: When it is determined that the number of the drawing component is one, generating a mechanical engineering drawing corresponding to the drawing component according to a program calling file corresponding to the drawing component and a preset single drawing component engineering drawing generation algorithm; When it is determined that there are multiple drawing components, mechanical engineering drawings corresponding to the multiple drawing components are generated according to program call files corresponding to the multiple drawing components and a preset assembly algorithm.

9. A device for generating mechanical engineering drawings, characterized in that: include: A reading module is used to read the configuration information of a specified component from a pre-generated configuration database; A selection module, used for selecting configuration information of a drawing component from the specified components, wherein the drawing component is used for generating the mechanical engineering drawing; A file generation module, used to generate a program call file according to the configuration information of the drawing component, and the position information and attribute information of the drawing component input by the user; The engineering drawing generation module is used to generate the mechanical engineering drawing according to the program calling file.

10. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.

12. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 8.