Method and device for generating computer-aided design (CAD) construction drawings

By using template files to record configuration data in CAD design, the problem of the generation of construction drawings in the existing technology requires a large amount of manual modification, and efficient generation of construction drawings that meet the specifications is achieved.

CN113868737BActive Publication Date: 2025-07-11GUANGDONG SANWEIJIA INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111078380.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-14
Publication Date
2025-07-11
Estimated Expiration
2041-09-14

AI Technical Summary

Technical Problem

The existing CAD design software requires a lot of manual modifications when generating construction drawings, and the process is complicated and it is difficult to adjust the plan.

Method used

The template file is used to record configuration data, and by obtaining and determining the data identification, CAD construction drawings that comply with the drawing style specifications are generated to reduce the re-modification operation.

Benefits of technology

It improves the efficiency of CAD construction drawing generation, simplifies the modification process, and reduces cost and complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113868737B_ABST
    Figure CN113868737B_ABST
Patent Text Reader

Abstract

An embodiment of the present disclosure discloses a method and apparatus for generating a computer-aided design (CAD) construction drawing. The method for generating a CAD construction drawing includes: obtaining configuration data for generating the above CAD construction drawing, and using the above configuration data as first configuration data; determining a data identifier of the above first configuration data; writing the above data identifier into a template file for generating the above CAD construction drawing, wherein the drawing style specification of the CAD construction drawing generated using the above template file is determined in advance; and generating a CAD construction drawing that conforms to the above drawing style specification based on the above template file. The embodiment of the present disclosure uses a template file to record the configuration data of the CAD construction drawing generated after each modification, thereby reducing the operation of making further modifications to the exported CAD construction drawing and improving the generation efficiency of the final CAD construction drawing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of CAD construction drawings, and in particular, to a method and device for generating computer-aided design CAD construction drawings. Background Art

[0002] CAD (Computer Aided Design) software can perform various operations through an interactive menu or command line. It can run on microcomputers and workstations supported by various operating systems.

[0003] In the prior art, a standard drawing output module is usually stored in CAD design software, and manual modification is performed after the drawing is issued. In this way, a large amount of modification work will be generated. In addition, a special customization plan can also be formulated with the design software developer, but the process is long, the procedures are complicated, and it is not easy to adjust the plan.

[0004] In view of the above problems, no effective solution has been proposed yet. Summary of the Invention

[0005] Embodiments of the present disclosure provide a method and device for generating computer-aided design CAD construction drawings to solve some or all of the above technical problems.

[0006] According to the first aspect of the embodiments of the present disclosure, a method for generating computer-aided design CAD construction drawings is provided, including:

[0007] Obtain configuration data for generating the above CAD construction drawings, and use the above configuration data as the first configuration data;

[0008] Determine the data identifier of the above first configuration data;

[0009] Write the above data identifier into a template file for generating the above CAD construction drawings, where the drawing style specification of the CAD construction drawings generated using the above template file is pre-determined;

[0010] Generate CAD construction drawings that conform to the above drawing style specification based on the above template file.

[0011] Optionally, in some embodiments, the generating CAD construction drawings that conform to the above drawing style specification based on the above template file includes:

[0012] Determine, from a pre-determined set of configuration data, the configuration data corresponding to the data identifier written into the above template file, and use the determined configuration data as the second configuration data;

[0013] Generate CAD construction drawings that conform to the above drawing style specification based on the above template file and the above second configuration data.

[0014] Optionally, in some embodiments, the above configuration data includes multiple types of data; and

[0015] The above obtaining the configuration data for generating the above CAD construction drawings includes:

[0016] For each type of data among the above multiple types of data, if the user-uploaded data of this type is not obtained, then obtain the default data of this type, and use the default data of this type as the data of this type included in the above configuration data, where the default data of each type among the above multiple types of data is determined in advance.

[0017] Optionally, in some embodiments, the above method further includes:

[0018] Obtain the drawing style specification information input by the user;

[0019] Adjust at least one of the multiple generated CAD construction drawings according to the drawing style specification indicated by the above drawing style specification information.

[0020] Optionally, in some embodiments, the above method further includes:

[0021] Obtain an image of the construction site corresponding to the above CAD construction drawings;

[0022] If the construction layout method indicated by the above image of the construction site does not match the construction layout method indicated by the above CAD construction drawings, then generate a prompt message.

[0023] Optionally, in some embodiments, the above method further includes:

[0024] Determine whether there are construction drawing blocks that do not meet the preset safety standards among the construction drawing blocks included in the above CAD construction drawings;

[0025] If there are construction drawing blocks that do not meet the above preset safety standards, then adjust the construction drawing blocks that do not meet the above preset safety standards to generate construction drawing blocks that meet the above preset safety standards.

[0026] Optionally, in some embodiments, the above obtaining the configuration data for generating the above CAD construction drawings includes:

[0027] Obtain the home design CAD file uploaded by the user;

[0028] Determine the file drawing blocks selected by the user from the above home design CAD file;

[0029] Extract cover data, drawing frame data, explanatory drawing data, and furniture drawing block data from the above file drawing blocks;

[0030] From the above-mentioned home design CAD file, determine the layer selected by the user to obtain layer data;

[0031] From the dimension styles included in the above-mentioned home design CAD file, determine the dimension style selected by the user to obtain dimension style data;

[0032] From the hatch patterns included in the above-mentioned home design CAD file, determine the hatch pattern selected by the user to obtain hatch pattern data;

[0033] Determine the font style data of the font file uploaded by the user;

[0034] Use the above-mentioned cover data, the above-mentioned title block data, the above-mentioned specification drawing data, the above-mentioned furniture block data, the above-mentioned layer data, the above-mentioned dimension style data, the above-mentioned hatch pattern data, and the above-mentioned font style data as the configuration data for generating the above-mentioned CAD construction drawings.

[0035] According to the second aspect of the embodiments of the present disclosure, a device for generating computer-aided design (CAD) construction drawings is provided. The device includes:

[0036] A first acquisition unit configured to acquire configuration data for generating the above-mentioned CAD construction drawings and use the configuration data as first configuration data;

[0037] A first determination unit configured to determine the data identifier of the above-mentioned first configuration data

[0038] A writing unit configured to write the above-mentioned data identifier into a template file for generating the above-mentioned CAD construction drawings, wherein the drawing style specification of the CAD construction drawings generated using the above-mentioned template file is pre-determined;

[0039] A first generation unit configured to generate CAD construction drawings that conform to the above-mentioned drawing style specification based on the above-mentioned template file.

[0040] Optionally, in some embodiments, the above-mentioned first generation unit includes:

[0041] A first determination subunit configured to determine, from a pre-determined set of configuration data, the configuration data corresponding to the data identifier written into the above-mentioned template file and use the determined configuration data as second configuration data;

[0042] A generation subunit configured to generate CAD construction drawings that conform to the above-mentioned drawing style specification based on the above-mentioned template file and the above-mentioned second configuration data.

[0043] Optionally, in some embodiments, the above-mentioned configuration data includes multiple types of data; and

[0044] The above-mentioned first acquisition unit includes:

[0045] A first acquisition subunit, configured to, for each type of data among the above-mentioned multiple types of data, if the user-uploaded data of this type has not been acquired, acquire the default data of this type, and use the default data of this type as the data of this type included in the above-mentioned configuration data, wherein the default data of each type among the above-mentioned multiple types of data is determined in advance.

[0046] Optionally, in some embodiments, the above-mentioned device further includes:

[0047] A second acquisition unit, configured to acquire the drawing style specification information input by the user;

[0048] A first adjustment unit, configured to adjust at least one of the multiple generated CAD construction drawings according to the drawing style specification indicated by the above-mentioned drawing style specification information.

[0049] Optionally, in some embodiments, the above-mentioned device further includes:

[0050] A third acquisition unit, configured to acquire an image of the construction site corresponding to the above-mentioned CAD construction drawing;

[0051] A second generation unit, configured to generate a prompt message if the construction layout method indicated by the above-mentioned image of the construction site does not match the construction layout method indicated by the above-mentioned CAD construction drawing.

[0052] Optionally, in some embodiments, the above-mentioned device further includes:

[0053] A second determination unit, configured to determine whether there is a construction drawing block that does not meet the preset safety standard among the construction drawing blocks included in the above-mentioned CAD construction drawing;

[0054] A second adjustment unit, configured to adjust the above-mentioned construction drawing block that does not meet the above-mentioned preset safety standard to generate a construction drawing block that meets the above-mentioned preset safety standard if there is a construction drawing block that does not meet the above-mentioned preset safety standard.

[0055] Optionally, in some embodiments, the above-mentioned first acquisition unit includes:

[0056] A second acquisition subunit, configured to acquire a home design CAD file uploaded by the user;

[0057] A second determination subunit, configured to determine the file drawing blocks selected by the user from the above-mentioned home design CAD file;

[0058] An extraction subunit, configured to extract cover data, frame data, explanatory drawing data, and furniture block data from the above-mentioned file blocks;

[0059] A third determination subunit, configured to determine a layer selected by a user from the above-mentioned home design CAD file to obtain layer data;

[0060] A fourth determination subunit, configured to determine a dimensioning style selected by a user from the dimensioning styles included in the above-mentioned home design CAD file to obtain dimensioning style data;

[0061] A fifth determination subunit, configured to determine a filling style selected by a user from the filling styles included in the above-mentioned home design CAD file to obtain filling style data;

[0062] A sixth determination subunit, configured to determine font style data of a font file uploaded by a user;

[0063] A seventh determination subunit, configured to use the above-mentioned cover data, the above-mentioned frame data, the above-mentioned explanatory drawing data, the above-mentioned furniture block data, the above-mentioned layer data, the above-mentioned dimensioning style data, the above-mentioned filling style data, and the above-mentioned font style data as the configuration data for generating the above-mentioned CAD construction drawings.

[0064] According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, including:

[0065] A memory, configured to store a computer program;

[0066] A processor, configured to execute the computer program stored in the memory, and when the computer program is executed, implement the method of any one of the embodiments of the method for generating a computer-aided design CAD construction drawing in the first aspect of the present disclosure.

[0067] According to a fourth aspect of the embodiments of the present disclosure, a computer-readable medium is provided, and when the computer program is executed by a processor, the method of any one of the embodiments of the method for generating a computer-aided design CAD construction drawing in the first aspect is implemented.

[0068] According to a fifth aspect of the embodiments of the present disclosure, a computer program is provided, and the computer program includes computer-readable code. When the computer-readable code runs on a device, instructions for causing a processor in the device to execute the steps of the method of any one of the embodiments of the method for generating a computer-aided design CAD construction drawing in the first aspect are implemented.

[0069] Based on the method and apparatus for generating computer-aided design (CAD) construction drawings provided in the above embodiments of the present disclosure, configuration data for generating the above CAD construction drawings can be obtained, and the above configuration data is used as the first configuration data. Then, the data identifier of the above first configuration data is determined, and then the above data identifier is written into a template file for generating the above CAD construction drawings, where the drawing style specification of the CAD construction drawings generated using the above template file is pre-determined. Finally, based on the above template file, a CAD construction drawing that conforms to the above drawing style specification is generated. Thus, the embodiments of the present disclosure use a template file to record the configuration data of the CAD construction drawings generated after each modification, thereby reducing the operation of making further modifications to the exported CAD construction drawings and improving the generation efficiency of the final CAD construction drawings.

[0070] The technical solutions of the present disclosure will be further described in detail below with reference to the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Other features, objects, and advantages of the present disclosure will become more apparent by reading the detailed description of the non-limiting embodiments with reference to the following drawings:

[0072] Figure 1 is an exemplary system architecture diagram to which an embodiment of the present disclosure can be applied;

[0073] Figure 2 is a flowchart of an embodiment of the method for generating computer-aided design (CAD) construction drawings according to the present disclosure;

[0074] Figure 3 is a schematic diagram of an application scenario of an embodiment of the method for generating computer-aided design (CAD) construction drawings according to the present disclosure;

[0075] Figure 4A is a flowchart of another embodiment of the method for generating computer-aided design (CAD) construction drawings according to the present disclosure;

[0076] Figure 4B is for Figure 4A an application scenario schematic diagram of the embodiment;

[0077] Figure 5 is a schematic structural diagram of an embodiment of the apparatus for generating computer-aided design (CAD) construction drawings according to the present disclosure;

[0078] Figure 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0079] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: Unless otherwise specifically stated, the relative arrangements of components and steps, numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure.

[0080] Those skilled in the art can understand that terms such as "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices, or modules, etc., and do not represent any specific technical meaning, nor do they represent the logical order between them.

[0081] It should also be understood that in the embodiments of the present disclosure, "a plurality of" may refer to two or more, and "at least one" may refer to one, two, or more.

[0082] It should also be understood that for any component, data, or structure mentioned in the embodiments of the present disclosure, in the absence of a clear definition or contrary indication in the context, it is generally understood to be one or more.

[0083] In addition, the term " / and" in the present disclosure is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in the present disclosure generally represents an "or" relationship between the associated objects before and after.

[0084] It should also be understood that the present disclosure emphasizes the differences between various embodiments. The same or similar parts thereof can be referred to each other. For the sake of brevity, they will not be elaborated one by one.

[0085] The following description of at least one exemplary embodiment is actually merely illustrative and in no way limits the present disclosure or its application or use.

[0086] Techniques, methods, and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such techniques, methods, and devices should be regarded as part of the specification.

[0087] It should be noted that: Similar reference numerals and letters denote similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.

[0088] It should be noted that, without conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other. The present disclosure will be described in detail below with reference to the drawings and in combination with the embodiments.

[0089] Figure 1An exemplary system architecture 100 showing embodiments of a method for generating a computer-aided design (CAD) construction drawing or an apparatus for generating a CAD construction drawing to which embodiments of the present disclosure can be applied is shown.

[0090] As Figure 1 shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0091] Users can use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send data (such as configuration data), etc. Various client applications, such as CAD software, may be installed on the terminal devices 101, 102, 103.

[0092] The terminal devices 101, 102, 103 can be either hardware or software. When the terminal devices 101, 102, 103 are hardware, they can be various electronic devices with a display screen, including but not limited to smartphones, tablets, laptop portable computers, and desktop computers, etc. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. It can be implemented as multiple software or software modules (such as software or software modules for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0093] The server 105 can be a server that provides various services, such as a background server for storing data sent by the terminal devices 101, 102, 103. As an example, the server 105 can be a cloud server.

[0094] It should be noted that the server can be either hardware or software. When the server is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (such as software or software modules for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0095] It should also be noted that the method for generating computer-aided design (CAD) construction drawings provided by the embodiments of the present disclosure can be executed by a server, or by a terminal device, or by the server and the terminal device cooperating with each other. Correspondingly, each part (such as each unit, subunit, module, sub-module) included in the device for generating CAD construction drawings can be all arranged in the server, or all arranged in the terminal device, or respectively arranged in the server and the terminal device.

[0096] It should be understood that Figure 1 the numbers of the terminal devices, networks, and servers in

[0097] Continuing to refer to Figure 2 , a flowchart 200 of an embodiment of the method for generating CAD construction drawings according to the present disclosure is shown. The method for generating CAD construction drawings includes the following steps:

[0098] Step 201, obtain configuration data for generating the above CAD construction drawings, and use the above configuration data as the first configuration data.

[0099] In this embodiment, the execution subject (such as Figure 1 the terminal device or server shown) of the method for generating CAD construction drawings can obtain the configuration data for generating the above CAD construction drawings from other electronic devices or locally through a wired connection method or a wireless connection method, so as to use the obtained above configuration data as the first configuration data.

[0100] Among them, the above configuration data can be various data for generating CAD construction drawings. As an example, the configuration data can include but is not limited to at least one of the following: cover drawing frame configuration data, description drawing configuration data, drawing block configuration data in CAD construction drawings (such as furniture drawing block configuration data), font style configuration data, layer configuration data, dimension style configuration data, fill style configuration data, and so on.

[0101] Step 202, determine the data identifier of the above first configuration data.

[0102] In this embodiment, the above execution subject can determine the data identifier of the above first configuration data.

[0103] Here, the above-mentioned execution entity can determine the data identifier of the above-mentioned first configuration data in various ways. For example, the hash value of the first configuration data can be used as the data identifier of the first configuration data. For another example, for each first configuration data, an identifier associated with the configuration data can be determined in advance, so as to obtain a two-dimensional table or database that associates all the first configuration data and the identifiers of the first configuration data. In this way, the identifier associated with the first configuration data in the two-dimensional table or database can be used as the data identifier of the first configuration data. For another example, the category of the first configuration data can be determined first, and then the category of the first configuration data or the identifier of the category of the first configuration data can be used as the data identifier of the first configuration data.

[0104] Step 203: Write the above data identifier into the template file for generating the above CAD construction drawing.

[0105] In this embodiment, the above-mentioned execution entity can write the above data identifier into the template file for generating the above CAD construction drawing.

[0106] Among them, the drawing style specification of the CAD construction drawing generated using the above template file is determined in advance. Here, the drawing style specification can be used to indicate the format of the data for generating the CAD construction drawing. For example, the drawing style specification can be used to indicate at least one of the following: font height, line width, baseline spacing, font color, etc.

[0107] Here, after writing the above data identifier into the template file for generating the above CAD construction drawing, the template file can record the configuration data corresponding to the written data identifier, so as to record the configuration data of the CAD construction drawing generated after each modification.

[0108] Step 204: Generate a CAD construction drawing that conforms to the above drawing style specification based on the above template file.

[0109] In this embodiment, the above-mentioned execution entity can generate a CAD construction drawing that conforms to the above drawing style specification based on the above template file.

[0110] As an example, the above-mentioned execution entity can directly generate a CAD construction drawing that conforms to the above drawing style specification based on the configuration data recorded in the template file; or on the basis of the configuration data recorded in the template file, adjust the configuration data recorded in the template file to generate a CAD construction drawing that conforms to the above drawing style specification.

[0111] In some alternative implementation manners of this embodiment, the above configuration data includes multiple types of data. As an example, the configuration data may include: cover frame configuration data, explanatory drawing configuration data, block configuration data in CAD construction drawings (such as furniture block configuration data), font style configuration data, layer configuration data, dimension style configuration data, fill style configuration data, and so on. Here, the types of configuration data can be divided according to needs. For example, the cover configuration data, frame configuration data, explanatory drawing configuration data, block configuration data in CAD construction drawings, font style configuration data, layer configuration data, dimension style configuration data, and fill style configuration data can be regarded as one type of configuration data respectively, so as to obtain 8 types of configuration data.

[0112] On this basis, the above execution entity can adopt the following method to execute the above step 201 to obtain the configuration data for generating the above CAD construction drawing:

[0113] For each type of data among the above multiple types of data, if the data of this type uploaded by the user is not obtained, then obtain the default data of this type, and use the default data of this type as the data of this type included in the above configuration data.

[0114] Among them, the default data of each type among the above multiple types of data is determined in advance. For example, for the font style configuration data, the default data of this type can be Song typeface. In practice, the default data of each type can be set according to actual needs, and no specific limitation is made here.

[0115] It can be understood that in the above alternative implementation manners, first, the data uploaded by the user is used to determine the configuration data for generating the CAD construction drawing. If not obtained, the corresponding default data is used to determine the configuration data for generating the CAD construction drawing. In this way, each type of data among multiple types can be included in the generated CAD construction drawing, thereby improving the data richness of the CAD construction drawing.

[0116] In some alternative implementation manners of this embodiment, the above execution entity can also execute the following steps:

[0117] First, obtain the drawing style specification information input by the user.

[0118] Among them, the drawing style specification information input by the user can be used to indicate the format of the data of the CAD construction drawings to be generated by the user. For example, the drawing style specification can be used to indicate at least one of the following: font height, line width, baseline spacing, font color, etc. The drawing style specification information input by the user may conform to the above drawing style specification or may not conform to the above drawing style specification. In the case where the drawing style specification information input by the user conforms to the above drawing style specification, the user may need to further optimize and adjust the details in the generated CAD construction drawings; in the case where the drawing style specification information input by the user does not conform to the above drawing style specification, the user may need to perform personalized processing on the generated CAD construction drawings, so that the personalized processed part does not conform to the above drawing style specification.

[0119] After that, adjust at least one of the multiple generated CAD construction drawings according to the drawing style specification indicated by the above drawing style specification information.

[0120] Here, the CAD construction drawings to be adjusted can be one or more.

[0121] It can be understood that in the above optional implementation manners, after generating the CAD construction drawings that conform to the above drawing style specification, further adjustment can be made to the generated CAD construction drawings that conform to the drawing style specification according to the personalized needs of the user.

[0122] In some optional implementation manners of this embodiment, the above execution subject may further perform the following steps:

[0123] First, obtain an image of the construction site corresponding to the above CAD construction drawings.

[0124] Among them, the CAD construction drawings can be used to guide the construction of the construction site corresponding to the CAD construction drawings. For example, in practice, construction workers can place furniture according to the furniture positions indicated by the CAD construction drawings.

[0125] After that, if the construction layout method indicated by the above image of the construction site does not match the construction layout method indicated by the above CAD construction drawings, generate a prompt message.

[0126] It can be understood that in the above optional implementation manners, in the case where the construction layout method indicated by the image of the construction site does not match the construction layout method indicated by the above CAD construction drawings, a prompt is automatically given, which helps to effectively supervise the construction.

[0127] In some optional implementation manners of this embodiment, the above execution subject may further perform the following steps:

[0128] First, determine whether there are construction drawing blocks in the above CAD construction drawings that do not meet the preset safety standards. Among them, the preset safety standards can be information preset to indicate whether the construction is safe. As an example, if the CAD construction drawing is the structure of children's desks and chairs, then the preset safety standards can be used to indicate the corner arc of the children's desks and chairs.

[0129] After that, if there are construction drawing blocks that do not meet the above preset safety standards, then adjust the construction drawing blocks that do not meet the above preset safety standards to generate construction drawing blocks that meet the above preset safety standards.

[0130] It can be understood that in the above optional implementation methods, the construction drawing blocks that do not meet the preset safety standards can be automatically adjusted to construction drawing blocks that meet the above preset safety standards, improving the safety of the final construction according to the generated CAD construction drawings.

[0131] In some optional implementation methods of this embodiment, the above execution entity can also adopt the following method to execute the above step 201 to obtain the configuration data for generating the above CAD construction drawings:

[0132] Step 1, obtain the home design CAD file uploaded by the user. Among them, the home design CAD file uploaded by the user can be a home design CAD file that the user has preliminarily edited, or a home design CAD file that a certain user has completed editing.

[0133] Step 2, determine the file blocks selected by the user from the above home design CAD file. Among them, after the user uploads the home design CAD file, the various file blocks in the home design CAD file can be presented so that the user can select one or more file blocks from them, thereby determining the file blocks selected by the user.

[0134] Step 3, extract cover data, drawing frame data, explanatory drawing data, and furniture block data from the above file blocks.

[0135] Step 4, determine the layers selected by the user from the above home design CAD file to obtain layer data. Among them, after obtaining the above home design CAD file, the various layers in the home design CAD file can be presented to the user so that the user can select one or more layers from them, thereby obtaining the layers selected by the user.

[0136] Step 5, determine the dimensioning styles selected by the user from the dimensioning styles included in the above home design CAD file to obtain dimensioning style data. Among them, the various dimensioning styles included in the home design CAD file can be presented for the user to select one or more dimensioning styles from them, thereby obtaining the dimensioning style data.

[0137] Step 6: Determine the filling style selected by the user from the filling styles included in the above home design CAD file to obtain filling style data. Among them, the user can be provided with each filling style included in the home design CAD file for selection of one or more filling styles therefrom, so as to obtain the filling style data.

[0138] Step 7: Determine the font style data of the font file uploaded by the user.

[0139] Step 8: Use the above cover data, the above drawing frame data, the above specification drawing data, the above furniture block data, the above layer data, the above dimensioning style data, the above filling style data, and the above font style data as the configuration data for generating the above CAD construction drawing.

[0140] It can be understood that in the above optional implementation manners, the cover data, the above drawing frame data, the above specification drawing data, the above furniture block data, the above layer data, the above dimensioning style data, the above filling style data, and the above font style data selected by the user can be determined through the home design CAD file uploaded by the user as the configuration data for generating the above CAD construction drawing, so that the saving of the configuration data can be implemented through subsequent steps to facilitate the secondary modification of the configuration data.

[0141] Continue to refer to Figure 3 , Figure 3 which is a schematic diagram of an application scenario of the method for generating a CAD construction drawing according to this embodiment. In the Figure 3 application scenario, the terminal device 310 can be used as the above execution subject. Figure 3 In, the terminal device 310 first obtains the configuration data for generating the above CAD construction drawing and uses the above configuration data as the first configuration data 301. Then, the terminal device 310 determines the data identifier 302 of the above first configuration data 301. Subsequently, the terminal device 310 writes the above data identifier 302 into the template file 303 for generating the above CAD construction drawing. Among them, the drawing style specification of the CAD construction drawing generated by using the above template file 303 is determined in advance. Finally, the terminal device 310 generates a CAD construction drawing 304 that conforms to the above drawing style specification based on the above template file.

[0142] The method provided by the above embodiments of the present disclosure obtains the configuration data for generating the above CAD construction drawings, uses the above configuration data as the first configuration data, then determines the data identifier of the above first configuration data, and then writes the above data identifier into the template file for generating the above CAD construction drawings, where the drawing style specification of the CAD construction drawings generated using the above template file is determined in advance, and finally, based on the above template file, a CAD construction drawing that conforms to the above drawing style specification is generated. Thus, the embodiments of the present disclosure use a template file to record the configuration data of the CAD construction drawings generated after each modification, thereby reducing the operation of making further modifications to the exported CAD construction drawings and improving the generation efficiency of the final CAD construction drawings.

[0143] Further reference is made to Figure 4A , which shows the flowchart 400 of another embodiment of the method for generating computer-aided design (CAD) construction drawings. The flowchart 400 of the method for generating CAD construction drawings includes the following steps:

[0144] Step 401, obtain the configuration data for generating the above CAD construction drawings, and use the above configuration data as the first configuration data.

[0145] In this embodiment, step 401 is basically the same as Figure 2 step 201 in the corresponding embodiment, and will not be elaborated here.

[0146] Step 402, determine the data identifier of the above first configuration data.

[0147] In this embodiment, step 402 is basically the same as Figure 2 step 202 in the corresponding embodiment, and will not be elaborated here.

[0148] Step 403, write the above data identifier into the template file for generating the above CAD construction drawings.

[0149] In this embodiment, step 403 is basically the same as Figure 2 step 203 in the corresponding embodiment, and will not be elaborated here.

[0150] Step 404, determine, from the pre-determined set of configuration data, the configuration data corresponding to the data identifier written into the above template file, and use the determined configuration data as the second configuration data.

[0151] In this embodiment, the execution entity of the method for generating CAD construction drawings (such as Figure 1 the terminal device or server shown) can determine, from the pre-determined set of configuration data, the configuration data corresponding to the data identifier written into the above template file, and use the determined configuration data as the second configuration data.

[0152] Among them, in the above configuration data set, all configuration data for generating CAD construction drawings can be included. The configuration data set can include the association relationship between configuration data and the data identifier of the configuration data. Thus, based on this association relationship, the above-mentioned execution entity can determine the configuration data corresponding to the data identifier written into the above template file from the pre-determined configuration data set.

[0153] Step 405, generate a CAD construction drawing that conforms to the above drawing style specification based on the above template file and the above second configuration data.

[0154] In this embodiment, the above-mentioned execution entity can also generate a CAD construction drawing that conforms to the above drawing style specification based on the above template file and the above second configuration data.

[0155] As an example, the above-mentioned execution entity can directly generate a CAD construction drawing that conforms to the above drawing style specification based on the configuration data recorded in the template file and the above second configuration data; it can also adjust the configuration data (including the above second configuration data) recorded in the template file on the basis of the configuration data recorded in the template file and the above second configuration data, so as to generate a CAD construction drawing that conforms to the above drawing style specification.

[0156] As an example, please continue to refer to Figure 4B , Figure 4B is a schematic diagram of an application scenario of an embodiment for Figure 4A the embodiment.

[0157] In Figure 4B , the method for generating a CAD construction drawing includes a CAD construction drawing configuration system process and a back-end export process. Among them, the CAD construction drawing configuration system process is used to describe the configuration process of configuration data, and this process is implemented through the front-end system. The back-end export process is used to describe the export process of the CAD construction drawing, and this process is implemented through the back-end system.

[0158] As shown in the figure, the configuration process of the configuration data involved in the method for generating a CAD construction drawing includes: cover configuration, drawing frame configuration, explanatory drawing configuration, furniture block configuration, font style configuration, layer configuration, dimension style configuration, and filling style configuration. Among them:

[0159] The cover configuration process includes: the user uploads a CAD file (such as the above-mentioned home design CAD file); obtains a specific block of the CAD file (that is, the file block selected by the user); sets the block attribute definition; stores the block in the template CAD file (that is, the template file for generating the above CAD construction drawing); and stores the configuration in the database (that is, determines the data identifier of the above first configuration data).

[0160] The process of frame configuration includes: the user uploads a CAD file (such as the above-mentioned home design CAD file); obtains specific drawing blocks of the CAD file (i.e., the file drawing blocks selected by the user above); sets the drawing area; sets the definition of drawing block attributes; stores the drawing blocks into the template CAD file (i.e., the above-mentioned template file used to generate the above-mentioned CAD construction drawings); stores the configuration into the database (i.e., determines the data identifier of the above-mentioned first configuration data).

[0161] The process of specification drawing configuration includes: the user specifies the specification drawing type, and the drawing type can be divided into design specifications, construction specifications, electrical specifications, and legend specifications; the user uploads a CAD file; obtains specific drawing blocks of the CAD file; sets the relative position of the drawing blocks to the drawing frame; stores the drawing blocks into the template CAD file; stores the configuration into the database.

[0162] The process of furniture drawing block configuration includes: the user specifies the furniture classification, which is the classification existing in the home decoration data; the user specifies the view type, which is divided into top view, front view, and left view; the user uploads a CAD file; obtains specific drawing blocks of the CAD file; stores the drawing blocks into the template CAD file; stores the configuration into the database.

[0163] The process of font style configuration includes: the user uploads a font file; stores the font file into a unified server; stores the configuration into the database;

[0164] The process of layer configuration includes: the user uploads a CAD file; lists all layers; the user specifies the layers corresponding to the classification; stores the layers into the template CAD file; stores the configuration into the database;

[0165] The process of dimension style configuration includes: the user uploads a CAD file; obtains a specific dimension style; the user specifies the dimension styles corresponding to the classification; stores the dimension styles into the template CAD file; stores the configuration into the database;

[0166] The process of hatch style configuration includes: the user uploads a CAD file; the user uploads a hatch style file; stores the hatch style file into a unified server; obtains a specific hatch style; the user specifies the hatch styles corresponding to the classification; stores the hatch styles into the template CAD file; stores the configuration into the database;

[0167] In practice, during the export process, the configuration information and the template CAD file can be obtained first (i.e., determine the configuration data corresponding to the data identifier written into the above-mentioned template file from the pre-determined set of configuration data, and use the determined configuration data as the second configuration data), and then the CAD construction drawing file can be exported (i.e., generate a CAD construction drawing that conforms to the above-mentioned drawing style specification based on the above-mentioned template file and the above-mentioned second configuration data).

[0168] It should be noted that in addition to the content recorded above, the embodiments of the present disclosure may also includeFigure 2 Features and effects similar to those of the corresponding embodiments will not be described herein again.

[0169] In the prior art, for different users, CAD construction drawings have their own independent drawing style specifications. For example, for the same home improvement data, the CAD construction drawings exported by different users are drawings with their own unique style specifications. In the conventional scenario, a standard drawing generation module is embedded in the home design software. After the drawings are generated, a large amount of manual modification work is required, or a special customization plan is formulated with the home design software developer. However, the process is time-consuming, the procedures are complicated, and it is not easy to adjust the plan.

[0170] In the above application scenario in the process 400 of the method for generating computer-aided design CAD construction drawings in this embodiment, it includes the rule configuration of the cover, drawing frame, explanatory drawings, furniture blocks, font styles, layers, dimensioning styles, and filling styles. Before each subsequent export of CAD construction drawings, the corresponding configuration is read, and CAD construction drawings with their own style specifications are exported, reducing the operation of making secondary modifications to the exported CAD construction drawings. Moreover, CAD construction drawings that conform to the style specifications of decoration companies or users can be generated with one click, reducing modification operations and costs. For decoration companies, the process is simple, the effects are visible, and the unique style specifications can be assembled by operating in a browser; for designers, it can simplify the complicated adjustment and drawing modification work and improve the drawing efficiency.

[0171] Further reference Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for generating computer-aided design CAD construction drawings. This device embodiment corresponds to the above method embodiment. Except for the features described below, this device embodiment may also include features identical or corresponding to those of the above method embodiment, and produce effects identical or corresponding to those of the above method embodiment. This device can be specifically applied to various electronic devices.

[0172] As Figure 5 shown, the device 500 for generating computer-aided design CAD construction drawings in this embodiment includes: a first acquisition unit 501, a first determination unit 502, a writing unit 503, and a first generation unit 504. Among them, the first acquisition unit 501 is configured to acquire configuration data for generating the above CAD construction drawings and use the above configuration data as the first configuration data; the first determination unit 502 is configured to determine the data identifier of the above first configuration data; the writing unit 503 is configured to write the above data identifier into a template file for generating the above CAD construction drawings, where the drawing style specification of the CAD construction drawings generated using the above template file is determined in advance; the first generation unit 504 is configured to generate CAD construction drawings that conform to the above drawing style specification based on the above template file.

[0173] In this embodiment, the first acquisition unit 501 of the computer-aided design (CAD) construction drawing generation device 500 can acquire the configuration data for generating the above CAD construction drawing and use the above configuration data as the first configuration data.

[0174] In this embodiment, the first determination unit 502 can determine the data identifier of the above first configuration data.

[0175] In this embodiment, the above writing unit 503 can write the above data identifier into the template file for generating the above CAD construction drawing. Among them, the drawing style specification of the CAD construction drawing generated using the above template file is determined in advance.

[0176] In this embodiment, the above first generation unit 504 can generate a CAD construction drawing that conforms to the above drawing style specification based on the above template file.

[0177] In some alternative implementation manners of this embodiment, the above first generation unit 504 includes:

[0178] A first determination subunit (not shown in the figure), configured to determine, from a pre-determined set of configuration data, the configuration data corresponding to the data identifier written into the above template file, and use the determined configuration data as the second configuration data;

[0179] A generation subunit (not shown in the figure), configured to generate a CAD construction drawing that conforms to the above drawing style specification based on the above template file and the above second configuration data.

[0180] In some alternative implementation manners of this embodiment, the above configuration data includes multiple types of data; and

[0181] The above first acquisition unit 501 includes:

[0182] A first acquisition subunit (not shown in the figure), configured to, for each type of data among the above multiple types of data, if the user-uploaded data of this type is not acquired, acquire the default data of this type, and use the default data of this type as the data of this type included in the above configuration data, where the default data of each type among the above multiple types of data is determined in advance.

[0183] In some alternative implementation manners of this embodiment, the above device 500 further includes:

[0184] A second acquisition unit (not shown in the figure), configured to acquire the drawing style specification information input by the user;

[0185] A first adjustment unit (not shown in the figure) is configured to adjust at least one of the generated multiple CAD construction drawings according to the drawing style specification indicated by the above-mentioned drawing style specification information.

[0186] In some alternative implementation manners of this embodiment, the above-mentioned apparatus 500 further includes:

[0187] A third acquisition unit (not shown in the figure) is configured to acquire an image of the construction site corresponding to the above-mentioned CAD construction drawing;

[0188] A second generation unit (not shown in the figure) is configured to generate a prompt message if the construction layout manner indicated by the image of the above-mentioned construction site does not match the construction layout manner indicated by the above-mentioned CAD construction drawing.

[0189] In some alternative implementation manners of this embodiment, the above-mentioned apparatus 500 further includes:

[0190] A second determination unit (not shown in the figure) is configured to determine whether there is a construction drawing block that does not meet the preset safety standard among the construction drawing blocks included in the above-mentioned CAD construction drawing;

[0191] A second adjustment unit (not shown in the figure) is configured to adjust the above-mentioned construction drawing block that does not meet the above-mentioned preset safety standard to generate a construction drawing block that meets the above-mentioned preset safety standard if there is a construction drawing block that does not meet the above-mentioned preset safety standard.

[0192] In some alternative implementation manners of this embodiment, the above-mentioned first acquisition unit 501 includes:

[0193] A second acquisition subunit (not shown in the figure) is configured to acquire a home design CAD file uploaded by a user;

[0194] A second determination subunit (not shown in the figure) is configured to determine a file drawing block selected by the user from the above-mentioned home design CAD file;

[0195] An extraction subunit (not shown in the figure) is configured to extract cover data, drawing frame data, explanatory drawing data, and furniture drawing block data from the above-mentioned file drawing block;

[0196] A third determination subunit (not shown in the figure) is configured to determine a layer selected by the user from the above-mentioned home design CAD file to obtain layer data;

[0197] A fourth determination subunit (not shown in the figure) is configured to determine a dimensioning style selected by the user from the dimensioning styles included in the above-mentioned home design CAD file to obtain dimensioning style data;

[0198] A fifth determination subunit (not shown in the figure) is configured to determine a fill style selected by the user from the fill styles included in the above-mentioned home design CAD file to obtain fill style data;

[0199] A sixth determination subunit (not shown in the figure) is configured to determine font style data of a font file uploaded by the user;

[0200] A seventh determination subunit (not shown in the figure) is configured to use the above-mentioned cover data, the above-mentioned drawing frame data, the above-mentioned explanatory drawing data, the above-mentioned furniture block data, the above-mentioned layer data, the above-mentioned dimensioning style data, the above-mentioned fill style data, and the above-mentioned font style data as the configuration data for generating the above-mentioned CAD construction drawing.

[0201] The device 500 provided in the above embodiment of the present disclosure obtains configuration data for generating the above-mentioned CAD construction drawing through the first acquisition unit 501, and uses the above-mentioned configuration data as the first configuration data. Then, the first determination unit 502 determines the data identifier of the above-mentioned first configuration data. Subsequently, the writing unit 503 writes the above-mentioned data identifier into a template file for generating the above-mentioned CAD construction drawing, where the drawing style specification of the CAD construction drawing generated using the above-mentioned template file is pre-determined. Finally, the first generation unit 504 generates a CAD construction drawing that conforms to the above-mentioned drawing style specification based on the above-mentioned template file. Thus, the embodiment of the present disclosure uses a template file to record the configuration data of the CAD construction drawing generated after each modification, thereby reducing the operation of making further modifications to the exported CAD construction drawing and improving the generation efficiency of the final CAD construction drawing.

[0202] Figure 6 It is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. Figure 6 The illustrated electronic device 600 includes: at least one processor 601, a memory 602, at least one network interface 604, and other user interfaces 603. Each component in the electronic device 600 is coupled together through a bus system 605. It can be understood that the bus system 605 is used to realize the connection and communication between these components. The bus system 605 includes, in addition to a data bus, a power bus, a control bus, and a status signal bus. However, for the sake of clear illustration, in Figure 6 all kinds of buses are labeled as the bus system 605.

[0203] Among them, the user interface 603 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball, a touchpad, or a touch screen, etc.).

[0204] It will be appreciated that the memory 602 in the embodiments of the present disclosure 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 be a read-only memory (ROM), a programmable ROM (PROM), an erasable programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), or a flash memory. The volatile memory may be 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, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synch link DRAM (SLDRAM), and direct rambus RAM (DRRAM). The memory 602 described herein is intended to include but not be limited to these and any other suitable types of memory.

[0205] In some embodiments, the memory 602 stores the following elements, executable units or data structures, or subsets or supersets thereof: an operating system 6021 and application programs 6022.

[0206] Among them, the operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., and is used to implement various basic services and process hardware-based tasks. The application programs 6022 include various application programs, such as a media player and a browser, etc., and are used to implement various application services. The program for implementing the method of the embodiments of the present disclosure may be included in the application programs 6022.

[0207] In the embodiments of the present disclosure, by invoking the programs or instructions stored in the memory 602, specifically, the programs or instructions stored in the application program 6022, the processor 601 is configured to execute the method steps provided in each method embodiment, for example, including: obtaining configuration data for generating the above CAD construction drawings, and using the above configuration data as the first configuration data; determining the data identifier of the above first configuration data; writing the above data identifier into a template file for generating the above CAD construction drawings, wherein the drawing style specification of the CAD construction drawings generated using the above template file is determined in advance; and generating CAD construction drawings that conform to the above drawing style specification based on the above template file.

[0208] The method disclosed in the above embodiments of the present disclosure can be applied to or implemented by the processor 601. The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor 601 or by instructions in software form. The above processor 601 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present disclosure. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present disclosure can be directly embodied as being executed by a hardware decoding processor or completed by a combination of hardware and software units in the decoding processor. The software unit may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and combines its hardware to complete the steps of the above method.

[0209] It can be understood that the embodiments described herein can be implemented using hardware, software, firmware, middleware, microcode, or any combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in this application, or any combination thereof.

[0210] For software implementation, the technologies described herein can be implemented by units that execute the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented within the processor or externally to the processor.

[0211] The electronic device provided in this embodiment can be an electronic device as shown in Figure 6 and can execute all steps of the method for generating CAD construction drawings as shown in Figure 2 so as to achieve the technical effects of the method for generating CAD construction drawings shown in Figure 2 For specific details, please refer to the relevant description in Figure 2 For the sake of brevity, it will not be elaborated here.

[0212] The embodiments of the present disclosure also provide a storage medium (computer-readable storage medium). The storage medium stores one or more programs. Here, the storage medium can include volatile memory, such as random access memory; the memory can also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; the memory can also include a combination of the above types of memory.

[0213] When one or more programs in the storage medium can be executed by one or more processors, the method for generating CAD construction drawings executed on the electronic device side can be implemented.

[0214] The processor is used to execute the communication program stored in the memory to implement the steps of the following method for generating CAD construction drawings executed on the electronic device side: obtaining configuration data for generating the above CAD construction drawings, and using the above configuration data as the first configuration data; determining the data identifier of the above first configuration data; writing the above data identifier into the template file for generating the above CAD construction drawings, wherein the drawing style specification of the CAD construction drawings generated using the above template file is pre-determined; generating CAD construction drawings that conform to the above drawing style specification based on the above template file.

[0215] Those skilled in the art should also be able to further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this disclosure.

[0216] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented by hardware, software modules executed by a processor, or a combination of the two. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0217] The specific implementation manners described above further elaborate on the purpose, technical solution, and beneficial effects of the present disclosure. It should be understood that the above description is only the specific implementation manners of the present disclosure and is not used to limit the protection scope of the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for generating a computer-aided design (CAD) construction drawing, characterized in that, The method includes: Obtaining configuration data for generating the CAD construction drawing, and using the configuration data as the first configuration data; Determining the data identifier of the first configuration data; Writing the data identifier into a template file for generating the CAD construction drawing, wherein the drawing style specification of the CAD construction drawing generated using the template file is predetermined; Generating a CAD construction drawing that conforms to the drawing style specification based on the template file; Wherein, the determining the data identifier of the first configuration data includes the following methods: Using the hash value of the first configuration data as the data identifier of the first configuration data; Or for each first configuration data, pre-determining the identifier associated with the configuration data, obtaining a two-dimensional table or database associating all the first configuration data and the identifiers of the first configuration data, and using the identifier associated with the first configuration data in the two-dimensional table or database as the data identifier of the first configuration data; Or determining the category of the first configuration data, and using the category of the first configuration data or the identifier of the category of the first configuration data as the data identifier of the first configuration data; Wherein, the generating a CAD construction drawing that conforms to the drawing style specification based on the template file includes: Determining, from a pre-determined set of configuration data, the configuration data corresponding to the data identifier written into the template file, and using the determined configuration data as the second configuration data; Generating a CAD construction drawing that conforms to the drawing style specification based on the template file and the second configuration data; Wherein, the configuration data includes multiple types of data; and The obtaining the configuration data for generating the CAD construction drawing includes: For each type of data among the multiple types of data, if the user-uploaded data of this type is not obtained, then obtaining the default data of this type, and using the default data of this type as the data of this type included in the configuration data, wherein the default data of each type among the multiple types of data is pre-determined; Wherein, the method further includes: Determining whether there is a construction drawing block in the CAD construction drawing that does not conform to the preset safety standard; If there is a construction drawing block that does not conform to the preset safety standard, then adjusting the construction drawing block that does not conform to the preset safety standard to generate a construction drawing block that conforms to the preset safety standard; Wherein, the obtaining the configuration data for generating the CAD construction drawing includes: Obtaining a home design CAD file uploaded by the user; Determining the file blocks selected by the user from the home design CAD file; Extracting cover data, drawing frame data, explanatory drawing data, and furniture block data from the file blocks; Determining the layers selected by the user from the home design CAD file to obtain layer data; Determining the dimensioning style selected by the user from the dimensioning styles included in the home design CAD file to obtain dimensioning style data; Determining the hatch pattern selected by the user from the hatch patterns included in the home design CAD file to obtain hatch pattern data; Determining the font style data of the font file uploaded by the user; The cover data, the drawing frame data, the explanatory drawing data, the furniture drawing block data, the layer data, the dimensioning style data, the filling style data, and the font style data are used as the configuration data for generating the CAD construction drawings.

2. The method according to claim 1, wherein The method further includes: Obtaining the drawing style specification information input by the user; Adjusting at least one of the generated multiple CAD construction drawings according to the drawing style specification indicated by the drawing style specification information.

3. The method according to claim 1, wherein The method further includes: Obtaining an image of the construction site corresponding to the CAD construction drawing; If the construction layout method indicated by the image of the construction site does not match the construction layout method indicated by the CAD construction drawing, generating a prompt message.

4. A generating device for computer-aided design (CAD) construction drawings, characterized in that, The device includes: A first obtaining unit configured to obtain the configuration data for generating the CAD construction drawings and use the configuration data as the first configuration data; A first determining unit configured to determine the data identifier of the first configuration data; A writing unit configured to write the data identifier into the template file for generating the CAD construction drawings, wherein the drawing style specification of the CAD construction drawings generated using the template file is predetermined; A first generating unit configured to generate CAD construction drawings conforming to the drawing style specification based on the template file; Among them, the first generating unit includes: a first determining subunit configured to determine, from a predetermined set of configuration data, the configuration data corresponding to the data identifier written into the template file and use the determined configuration data as the second configuration data; a generating subunit configured to generate CAD construction drawings conforming to the drawing style specification based on the template file and the second configuration data; Among them, the configuration data includes multiple types of data; Among them, the first obtaining unit includes: a first obtaining subunit configured to, for each type of data among the multiple types of data, if the user-uploaded data of this type is not obtained, obtain the default data of this type and use the default data of this type as the data of this type included in the configuration data, wherein the default data of each type among the multiple types of data is predetermined; Among them, the device further includes: a second determining unit configured to determine whether there is a construction drawing block in the CAD construction drawing that does not meet the preset safety standard; a second adjusting unit configured to, if there is a construction drawing block that does not meet the preset safety standard, adjust the construction drawing block that does not meet the preset safety standard to generate a construction drawing block that meets the preset safety standard; Among them, the first obtaining unit includes: a second obtaining subunit configured to obtain the home design CAD file uploaded by the user; A second determining subunit configured to determine the file drawing blocks selected by the user from the home design CAD file; An extraction subunit configured to extract the cover data, the drawing frame data, the explanatory drawing data, and the furniture drawing block data from the file drawing blocks; A third determination subunit, configured to determine a layer selected by a user from the home design CAD file to obtain layer data; A fourth determination subunit, configured to determine a dimensioning style selected by the user from the dimensioning styles included in the home design CAD file to obtain dimensioning style data; A fifth determination subunit, configured to determine a filling style selected by the user from the filling styles included in the home design CAD file to obtain filling style data; A sixth determination subunit, configured to determine font style data of a font file uploaded by the user; A seventh determination subunit, configured to use the cover data, the drawing frame data, the specification drawing data, the furniture block data, the layer data, the dimensioning style data, the filling style data, and the font style data as configuration data for generating the CAD construction drawing.

5. An electronic device, characterized in that, Comprising: A memory for storing a computer program; A processor for executing the computer program stored in the memory, and when the computer program is executed, implementing the method according to any one of claims 1-3.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the method according to any one of claims 1-3 is implemented.

Citation Information

Patent Citations

  • Automatic drawing method for target controller cabinet and system thereof

    CN112989446A

  • Construction drawing datamation method and device based on drawing POI and electronic equipment

    CN113094787A