CAD drawing processing method and device, storage medium and electronic equipment
By implementing the automatic checksum update function in the CAD platform, the problem of low processing efficiency of CAD drawings is solved, automatic adjustment is realized, and processing efficiency and user experience are improved.
Patent Information
- Application Number
- CN202411454953.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2024-11-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The processing efficiency of CAD drawings is low, and the existing technology has failed to effectively solve the problems of manual verification and adjustment, resulting in a long processing time.
By implementing the automatic checksum update function in the CAD platform, in response to the verification operation of candidate CAD drawings, parameters that do not meet the standards are prompted, and recommended parameters are provided according to the reference drawing parameter interval for automatic adjustment.
It greatly improves the processing efficiency of CAD drawings, reduces the time for manual adjustments, and improves the degree of automation of processing.
Smart Images

Figure CN119047052A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of construction engineering, and in particular, to a method and device for processing CAD drawings, a storage medium and an electronic device. Background Art
[0002] When drawing CAD drawings on a CAD platform, in order to avoid negative impact on subsequent construction due to content in the CAD drawings that does not meet the design standards, technical personnel are usually required to manually check the contents in the CAD drawings to determine the content in the CAD drawings that does not meet the design standards, and then the designers manually adjust the content in the CAD drawings that does not meet the standards.
[0003] However, this processing method based on manual verification and updating of the contents in the CAD drawings takes a lot of time, resulting in a technical problem of low processing efficiency of the CAD drawings.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present application provide a method and device for processing CAD drawings, a storage medium, and an electronic device, so as to at least solve the technical problem of low processing efficiency of CAD drawings.
[0006] According to one aspect of an embodiment of the present application, a method for processing CAD drawings is provided, comprising: in response to a verification operation performed on a candidate CAD drawing displayed in a CAD drawing editing interface, verifying candidate drawing parameters of the candidate CAD drawing, wherein the candidate drawing parameters are used to describe the properties of an object displayed in the candidate CAD drawing; in a case where the candidate drawing parameters do not match a reference drawing parameter interval used for verification, prompting that the candidate drawing parameters do not meet a reference condition, and determining the candidate CAD drawing as an object CAD drawing to be updated; in response to a parameter recommendation operation performed on the object CAD drawing, displaying recommended drawing parameters that match the objects in the object CAD drawing determined based on the reference drawing parameter interval; in response to an update operation performed on the object CAD drawing, displaying in the CAD drawing editing interface a target CAD drawing obtained by updating the object CAD drawing using the recommended drawing parameters.
[0007] Optionally, in this embodiment, prompting that the candidate drawing parameters do not meet the reference conditions includes at least one of the following: displaying the candidate drawing parameters that do not meet the reference conditions in a first display style in a CAD drawing verification interface after jumping from the CAD drawing editing interface; displaying target prompt information in the CAD drawing verification interface after jumping from the CAD drawing editing interface, wherein the target prompt information is used to prompt that the candidate drawing parameter is greater than a second boundary value of a reference drawing parameter interval, or the target prompt information is used to prompt that the candidate drawing parameter is less than a first boundary value of a reference drawing parameter interval, and the second boundary value is greater than the first boundary value.
[0008] Optionally, in this embodiment, in response to a parameter recommendation operation performed on an object CAD drawing, displaying recommended drawing parameters that match an object in the object CAD drawing determined based on a reference drawing parameter interval includes: in response to a touch operation on candidate drawing parameters displayed in a CAD drawing verification interface after jumping to a CAD drawing editing interface, displaying a parameter recommendation pop-up window, wherein the parameter recommendation pop-up window includes a parameter recommendation control; in response to a touch operation on the parameter recommendation control, displaying a recommended drawing parameter interface, wherein recommended drawing parameters are displayed in the recommended drawing parameter interface.
[0009] Optionally, in this embodiment, in response to an update operation performed on the object CAD drawing, displaying in the CAD drawing editing interface a target CAD drawing obtained by updating the object CAD drawing using the recommended drawing parameters includes: in response to a touch operation on a drawing update control in the recommended drawing parameter interface, when an update prompt option in the recommended drawing parameter interface is selected, prompting the target CAD drawing in the CAD drawing editing interface, wherein the target objects associated with the candidate drawing parameters that do not meet the reference conditions are displayed in the target CAD drawing according to the second display style.
[0010] Optionally, in this embodiment, in response to a parameter recommendation operation performed on the object CAD drawing, after displaying the recommended drawing parameters that match the object in the object CAD drawing determined based on the reference drawing parameter interval, it also includes: acquiring drawing attribute information of the object CAD drawing; updating the object CAD drawing based on the drawing attribute information and the recommended drawing parameters to obtain the target CAD drawing.
[0011] Optionally, in this embodiment, in response to a parameter recommendation operation performed on the object CAD drawing, after displaying the recommended drawing parameters that match the object in the object CAD drawing determined based on the reference drawing parameter interval, it also includes: determining a target pixel display style for a target pixel object associated with the candidate drawing parameters that do not meet the reference conditions in the object CAD drawing, and determining a target annotation display style for a target annotation object associated with the candidate drawing parameters in the object CAD drawing; adjusting the target pixel object and the target annotation object based on the recommended drawing parameters to obtain an updated target pixel object and an updated target annotation object; determining the object CAD drawing including the updated target pixel object and the updated target annotation object as the target CAD drawing, wherein the target pixel object is displayed in the CAD drawing according to the target pixel display style, and the target annotation object is displayed in the CAD drawing according to the target annotation display style.
[0012] According to another aspect of an embodiment of the present application, a CAD drawing processing device is also provided, including: a verification unit, for verifying candidate drawing parameters of a candidate CAD drawing in response to a verification operation performed on a candidate CAD drawing displayed in a CAD drawing editing interface, wherein the candidate drawing parameters are used to describe the properties of an object displayed in the candidate CAD drawing; a prompt unit, for prompting that the candidate drawing parameters do not meet the reference conditions when the candidate drawing parameters do not match a reference drawing parameter interval used for verification, and determining the candidate CAD drawing as an object CAD drawing to be updated; a first display unit, for displaying recommended drawing parameters that match the objects in the object CAD drawing determined based on the reference drawing parameter interval in response to a parameter recommendation operation performed on the object CAD drawing; and a second display unit, for displaying in the CAD drawing editing interface a target CAD drawing obtained by updating the object CAD drawing using the recommended drawing parameters in response to an update operation performed on the object CAD drawing.
[0013] Optionally, in this embodiment, the prompt unit includes: a first display module, used to display candidate drawing parameters that do not meet the reference conditions in a first display style in a CAD drawing verification interface after jumping from the CAD drawing editing interface; a second display module, used to display target prompt information in the CAD drawing verification interface after jumping from the CAD drawing editing interface, wherein the target prompt information is used to prompt that the candidate drawing parameter is greater than the second boundary value of the reference drawing parameter interval, or the target prompt information is used to prompt that the candidate drawing parameter is less than the first boundary value of the reference drawing parameter interval, and the second boundary value is greater than the first boundary value.
[0014] Optionally, in this embodiment, the above-mentioned first display unit includes: a third display module, used to display a parameter recommendation pop-up window in response to a touch operation on the candidate drawing parameters displayed in the CAD drawing verification interface after jumping from the CAD drawing editing interface, wherein the parameter recommendation pop-up window includes a parameter recommendation control; a fourth display module, used to display a recommended drawing parameter interface in response to a touch operation on the parameter recommendation control, wherein the recommended drawing parameter interface displays recommended drawing parameters.
[0015] Optionally, in this embodiment, the above-mentioned second display unit includes: a first prompt module, which is used to respond to the touch operation of the drawing update control in the recommended drawing parameter interface, and prompt the target CAD drawing in the CAD drawing editing interface when the update prompt option in the recommended drawing parameter interface is selected, wherein the target objects associated with the candidate drawing parameters that do not meet the reference conditions are displayed in the target CAD drawing according to the second display style.
[0016] Optionally, in this embodiment, the above-mentioned device also includes: an acquisition unit, used to acquire drawing attribute information of the object CAD drawing; a generation unit, used to update the object CAD drawing based on the drawing attribute information and recommended drawing parameters to obtain a target CAD drawing.
[0017] Optionally, in this embodiment, the above-mentioned device also includes: a first determination unit, used to determine the target pixel display style of the target pixel object associated with the candidate drawing parameters that do not meet the reference conditions in the object CAD drawing, and determine the target annotation display style of the target annotation object associated with the candidate drawing parameters in the object CAD drawing; an adjustment unit, used to adjust the target pixel object and the target annotation object based on the recommended drawing parameters to obtain an updated target pixel object and an updated target annotation object; a second determination unit, used to determine the object CAD drawing including the updated target pixel object and the updated target annotation object as the target CAD drawing, wherein the target pixel object is displayed in the CAD drawing according to the target pixel display style, and the target annotation object is displayed in the CAD drawing according to the target annotation display style.
[0018] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned CAD drawing processing method when running.
[0019] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above CAD drawing processing method.
[0020] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the above-mentioned CAD drawing processing method through the computer program.
[0021] In an embodiment of the present application, in response to a verification operation performed on a candidate CAD drawing displayed in a CAD drawing editing interface, the candidate drawing parameters of the candidate CAD drawing are verified, wherein the candidate drawing parameters are used to describe the properties of the object displayed in the candidate CAD drawing. Then, in the case where the candidate drawing parameters do not match the reference drawing parameter interval used for verification, it is prompted that the candidate drawing parameters do not meet the reference conditions, and the candidate CAD drawing is determined as the object CAD drawing to be updated. Next, in response to a parameter recommendation operation performed on the object CAD drawing, the recommended drawing parameters that match the object in the object CAD drawing determined based on the reference drawing parameter interval are displayed. Furthermore, in response to an update operation performed on the object CAD drawing, the target CAD drawing obtained by updating the object CAD drawing using the recommended drawing parameters is displayed in the CAD drawing editing interface. In other words, by using an embodiment of the present application, the candidate CAD drawings are automatically verified in the CAD platform, and then the contents that do not meet the specifications in the CAD drawings are automatically modified to obtain a target CAD drawing that meets the specifications, which greatly improves the efficiency of CAD drawings, thereby solving the technical problem of low processing efficiency of CAD drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0023] Figure 1 is a flowchart of an optional CAD drawing processing method according to an embodiment of the present application;
[0024] Figure 2 is a schematic diagram of an optional CAD drawing processing method according to an embodiment of the present application;
[0025] Figure 3is a schematic diagram of an optional CAD drawing processing method according to an embodiment of the present application;
[0026] Figure 4 is a schematic diagram of an optional CAD drawing processing method according to an embodiment of the present application;
[0027] Figure 5 is a schematic diagram of an optional CAD drawing processing method according to an embodiment of the present application;
[0028] Figure 6 is a flowchart of an optional CAD drawing processing method according to an embodiment of the present application;
[0029] Figure 7 is a schematic structural diagram of an optional CAD drawing processing device according to an embodiment of the present application;
[0030] Figure 8 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] Alternatively, as an alternative, Figure 1 As shown, the processing method of the above CAD drawings includes:
[0034] S102, in response to a verification operation performed on a candidate CAD drawing displayed in a CAD drawing editing interface, verifying candidate drawing parameters of the candidate CAD drawing, wherein the candidate drawing parameters are used to describe properties of an object displayed in the candidate CAD drawing.
[0035] Optionally, the above-mentioned CAD drawing processing method can be but is not limited to being applied to CAD drawing drawing scenarios. Specifically, the drawn CAD drawings are automatically verified to extract drawing parameters in the CAD drawings, and the drawing parameters in the CAD drawings are compared with standard drawing parameters, so as to determine non-compliant drawing parameters in the CAD drawings, and then generate compliant drawing parameters, and use the above-mentioned compliant drawing parameters to automatically modify the CAD drawings to achieve optimization of the CAD drawings.
[0036] It should be noted that, in this embodiment, the above-mentioned CAD drawing editing interface can be used, but is not limited to, to indicate a drawing editing interface in a CAD platform, wherein the CAD platform is a method for product design and drawing using computer technology, which is widely used in engineering, architecture, electronics, automobiles and other fields.
[0037] Optionally, in this embodiment, the candidate drawing parameters of the candidate CAD drawings may be, but are not limited to, attribute parameters used to indicate the objects displayed in the candidate CAD drawings, for example, size parameters: basic dimensions of the object such as length, width, height, diameter, etc.; shape parameters: shape description of the object, such as circle, rectangle, polygon, etc.; position parameters: specific position of the object on the drawing, including X, Y, Z coordinates; direction parameters: direction of the object relative to other objects or reference points, which may include angle or rotation information; material parameters: type of material used for the object, such as concrete, steel, plastic, etc.; strength parameters: mechanical properties of the object, such as compressive strength, tensile strength strength, etc.; reinforcement parameters (for structural design): in structural engineering drawings, reinforcement parameters may include: steel bar diameter, number of steel bars, steel bar spacing, steel bar arrangement method (such as single layer or double layer), steel bar anchorage length and size, etc.; connection parameters: the connection method between objects and other objects, such as welding, bolt connection, riveting, etc.; surface treatment parameters: the surface treatment method of objects, such as coating, polishing, sandblasting, etc.; assembly parameters: in assembly drawings, the assembly relationship and assembly sequence between objects; performance parameters: performance requirements of objects under specific applications, such as electrical parameters, thermal performance parameters, etc.; manufacturing parameters: parameters used in the manufacturing process, such as processing tolerances, surface roughness, etc.
[0038] It should be noted that, in this embodiment, the above-mentioned candidate drawing parameters may also be used to indicate other parameters besides the parameters shown in the above-mentioned examples, and this is not limited in this embodiment.
[0039] S104, when the candidate drawing parameters do not match the reference drawing parameter interval used for verification, it is prompted that the candidate drawing parameters do not meet the reference conditions, and the candidate CAD drawing is determined as the object CAD drawing to be updated.
[0040] Optionally, in this embodiment, the above-mentioned reference drawing parameter interval can be used, but is not limited to, to indicate the safety range data of various parameters of the structure obtained by modeling and analyzing the building to be built before designing the CAD drawing, so as to generate a calculation book result with the designed structure, and the calculation book result can be used as a basis for drawing civil construction CAD drawings.
[0041] Furthermore, the reference drawing parameter interval may be, but is not limited to, a parameter range corresponding to the candidate drawing parameter recorded in the calculation results. For example, assuming that the candidate drawing parameter is a reinforcement parameter of a substructure in a building, the reference drawing parameter interval may be a reinforcement range corresponding to a substructure of the building recorded in the calculation results, or may be a specific reinforcement parameter recorded, and this is not limited in the present embodiment.
[0042] It should be noted that, in the present embodiment, it is possible but not limited to displaying the candidate drawing parameters in different display styles (e.g., different colors) to indicate that the candidate drawing parameters do not meet the reference conditions; it is also possible to display a prompt message to indicate that the candidate drawing parameters do not meet the reference conditions; it is also possible to display the candidate drawing parameters in different display styles at the same time and display a prompt message to indicate that the candidate drawing parameters do not meet the reference conditions. In the present embodiment, there is no limitation on this.
[0043] S106 , in response to the parameter recommendation operation performed on the target CAD drawing, displaying recommended drawing parameters that match the object in the target CAD drawing and are obtained based on the reference drawing parameter interval.
[0044] Optionally, in this embodiment, in response to the parameter recommendation operation performed on the object CAD drawing, displaying the recommended drawing parameters that match the object in the object CAD drawing determined based on the reference drawing parameter interval may include, but is not limited to: in response to a touch operation on the candidate drawing parameters displayed in the CAD drawing verification interface after jumping from the CAD drawing editing interface, displaying a parameter recommendation pop-up window, wherein the parameter recommendation pop-up window includes a parameter recommendation control. Then, in response to a touch operation on the parameter recommendation control, displaying a recommended drawing parameter interface, wherein the recommended drawing parameters are displayed in the recommended drawing parameter interface.
[0045] S108, in response to the update operation performed on the object CAD drawing, displaying a target CAD drawing obtained by updating the object CAD drawing using the recommended drawing parameters in the CAD drawing editing interface.
[0046] Optionally, in this embodiment, in response to the update operation performed on the object CAD drawing, the target CAD drawing obtained by updating the object CAD drawing using the recommended drawing parameters is displayed in the CAD drawing editing interface, which may include but is not limited to: in response to a touch operation on the drawing update control in the recommended drawing parameter interface, when the update prompt option in the recommended drawing parameter interface is selected, the target CAD drawing is prompted in the CAD drawing editing interface, wherein the target objects associated with the candidate drawing parameters that do not meet the reference conditions are displayed in the target CAD drawing according to the second display style.
[0047] Optionally, in this embodiment, in response to the verification operation performed on the candidate CAD drawing displayed in the CAD drawing editing interface, before verifying the candidate drawing parameters of the candidate CAD drawing, it also includes: acquiring all drawing parameters of the candidate CAD drawing displayed in the above-mentioned CAD drawing editing interface.
[0048] Furthermore, after obtaining all the drawing parameters of the candidate CAD drawing displayed in the above-mentioned CAD drawing editing interface, the following operations may be performed, but are not limited to: displaying all the above-mentioned drawing parameters; in response to an editing operation on a first drawing parameter among all the drawing parameters, obtaining updated drawing parameters corresponding to the above-mentioned first drawing parameters; and further, in response to an update operation performed on the object CAD drawing, displaying in the CAD drawing editing interface a target CAD drawing obtained by updating the object CAD drawing using the updated drawing parameters.
[0049] After verifying the candidate drawing parameters of the candidate CAD drawing in response to the verification operation performed on the candidate CAD drawing displayed in the CAD drawing editing interface, the following methods may also be used, but are not limited to: displaying the above candidate drawing parameters in the CAD drawing verification interface; then, in response to the editing operation on the above candidate drawing parameters, obtaining updated candidate drawing parameters corresponding to the above candidate drawing parameters; and further, in response to the update operation performed on the object CAD drawing, displaying the target CAD drawing obtained by updating the object CAD drawing using the updated candidate drawing parameters in the CAD drawing editing interface.
[0050] Optionally, in some embodiments, after verifying the candidate drawing parameters of the candidate CAD drawing in response to the verification operation performed on the candidate CAD drawing displayed in the CAD drawing editing interface, the following steps may also be performed, but are not limited to: when it is determined that the candidate drawing parameters displayed in the CAD drawing verification interface are touched, a parameter recommendation pop-up window is displayed, wherein the parameter recommendation pop-up window includes a parameter recommendation control; then, when the parameter recommendation control is touched, it is determined that the parameter recommendation operation performed on the object CAD drawing is completed. Then, the above step S106 and the above step S108 are performed again.
[0051] That is to say, using the above embodiment, the designer can use one of the following two methods to update the CAD drawing:
[0052] Method 1: After picking up the global parameter information of the CAD drawing, the designer can manually edit and modify the parameters in the interactive interface to achieve the purpose of automatically modifying the graphics and text information of the original drawing as these parameters are modified. In this way, designers can flexibly modify the CAD drawing based on their own ideas, thereby achieving the technical effect of improving the update flexibility of the CAD drawing.
[0053] Method 2: After picking up the global parameter information of the CAD drawing, an intelligent parameter modification method is provided based on the verification of the parameters. Specifically, first obtain the global parameter information of the drawing, and at the same time verify the drawing to filter out the parameters that do not meet the verification conditions. Then, combined with the program's reinforcement selection algorithm, the corresponding satisfactory and optimal reinforcement results are given as the basis for parametric modification. If the plan is approved by the designer, the program automatically modifies the graphics and text information in the original drawing according to the new plan. In this way, designers do not need to do too much operation, and can realize intelligent modification of CAD drawings through simple interface interaction, thereby greatly improving the update efficiency of CAD drawings and improving the user experience.
[0054] In an embodiment of the present application, in response to a verification operation performed on a candidate CAD drawing displayed in a CAD drawing editing interface, the candidate drawing parameters of the candidate CAD drawing are verified, wherein the candidate drawing parameters are used to describe the properties of the object displayed in the candidate CAD drawing. Then, in the case where the candidate drawing parameters do not match the reference drawing parameter interval used for verification, it is prompted that the candidate drawing parameters do not meet the reference conditions, and the candidate CAD drawing is determined as the object CAD drawing to be updated. Next, in response to a parameter recommendation operation performed on the object CAD drawing, the recommended drawing parameters matching the object in the object CAD drawing obtained based on the reference drawing parameter interval are displayed. Furthermore, in response to an update operation performed on the object CAD drawing, the target CAD drawing obtained by updating the object CAD drawing using the recommended drawing parameters is displayed in the CAD drawing editing interface. In other words, by using an embodiment of the present application, the candidate CAD drawings are automatically verified in the CAD platform, and then the content that does not conform to the specification in the CAD drawing is automatically modified to obtain a target CAD drawing that conforms to the specification, which greatly improves the efficiency of CAD as drawings, thereby solving the technical problem of low processing efficiency of CAD drawings.
[0055] Optionally, in this embodiment, prompting that the candidate drawing parameter does not meet the reference condition includes at least one of the following:
[0056] In the CAD drawing verification interface after jumping to the CAD drawing editing interface, candidate drawing parameters that do not meet the reference conditions are displayed in a first display style.
[0057] It should be noted that, in this embodiment, the above-mentioned first display style can be but is not limited to being used to indicate the display color, that is, the candidate drawing parameters that do not meet the reference conditions can be displayed in a color different from the display color of the candidate drawing parameters in the CAD drawing verification interface after jumping from the CAD drawing editing interface.
[0058] Target prompt information is displayed in the CAD drawing verification interface after jumping to the CAD drawing editing interface, wherein the target prompt information is used to prompt that the candidate drawing parameter is greater than the second boundary value of the reference drawing parameter interval, or the target prompt information is used to prompt that the candidate drawing parameter is less than the first boundary value of the reference drawing parameter interval, and the second boundary value is greater than the first boundary value.
[0059] For example, assuming that the above candidate drawing parameters are greater than the second boundary value of the reference drawing parameter interval, then the above target prompt information may be "too large"; assuming that the above candidate drawing parameters are less than the first boundary value of the reference drawing parameter interval, then the above target prompt information may be "too small".
[0060] As an optional example, it is assumed that the candidate drawing parameters are displayed in different display styles at the same time, and a prompt message is displayed to indicate that the candidate drawing parameters do not meet the reference conditions. It is assumed that the candidate CAD drawing includes candidate drawing parameters A, candidate drawing parameters B, and candidate drawing parameters C. Taking the above candidate drawing parameters as reinforcement parameters as an example, it can be referred to but not limited to the following. Figure 2 The following example is shown to illustrate the above steps:
[0061] like Figure 2 As shown in (a), a candidate CAD drawing 202 and a verification operation control 204 are displayed on the CAD drawing editing interface.
[0062] Next, when the verification operation control is touched, candidate drawing parameter A, candidate drawing parameter B, and candidate drawing parameter C are compared with their corresponding reference drawing parameter intervals, and it is determined that candidate drawing parameter C does not meet the reference condition.
[0063] Furthermore, Figure 2 As shown in (b), a CAD drawing verification interface is displayed, in which candidate drawing parameter A, candidate drawing parameter B, and candidate drawing parameter C are displayed, wherein candidate drawing parameter A also includes candidate drawing sub-parameter A1, candidate drawing sub-parameter A2, candidate drawing sub-parameter A3, and candidate drawing sub-parameter A4, candidate drawing parameter B also includes candidate drawing sub-parameter B1, candidate drawing sub-parameter B2, candidate drawing sub-parameter B3, and candidate drawing sub-parameter B4, and candidate drawing parameter C also includes candidate drawing sub-parameter C1, candidate drawing sub-parameter C2, candidate drawing sub-parameter C3, and candidate drawing sub-parameter C4. Candidate drawing parameter C is displayed in a display style different from that of candidate drawing parameters A and candidate drawing parameters B, and a prompt message 206 for prompting that candidate drawing parameter C is too large is also displayed in the data row where candidate drawing parameter C is displayed.
[0064] It should be noted that the above example is an optional example provided to facilitate explanation of the above CAD drawing processing method, and there is no limitation on the specific implementation of the above CAD drawing processing method.
[0065] In an embodiment of the present application, in a CAD drawing verification interface after jumping from a CAD drawing editing interface, candidate drawing parameters that do not meet the reference conditions are displayed in a first display style; in a CAD drawing verification interface after jumping from a CAD drawing editing interface, target prompt information is displayed, wherein the target prompt information is used to prompt that the candidate drawing parameter is greater than the second boundary value of the reference drawing parameter interval, or the target prompt information is used to prompt that the candidate drawing parameter is less than the first boundary value of the reference drawing parameter interval, and the second boundary value is greater than the first boundary value. In other words, using an embodiment of the present application, by using a display style and / or prompt information in a CAD drawing verification interface after jumping from a CAD drawing editing interface to prompt that the candidate drawing parameters do not meet the reference conditions, the user can more intuitively see which candidate drawing parameters do not meet the reference conditions, thereby achieving a technical effect of improving the user experience.
[0066] Optionally, in this embodiment, in response to the parameter recommendation operation performed on the object CAD drawing, displaying the recommended drawing parameters matching the object in the object CAD drawing obtained based on the reference drawing parameter interval includes:
[0067] S1, in response to a touch operation on candidate drawing parameters displayed in a CAD drawing verification interface after jumping to a CAD drawing editing interface, a parameter recommendation pop-up window is displayed, wherein the parameter recommendation pop-up window includes a parameter recommendation control.
[0068] S2, in response to a touch operation on the parameter recommendation control, displaying a recommended drawing parameter interface, wherein the recommended drawing parameter interface displays recommended drawing parameters.
[0069] As an optional example, assuming that the candidate drawing parameters are displayed in different display styles at the same time, assuming that the candidate CAD drawing includes candidate drawing parameter A, candidate drawing parameter B, and candidate drawing parameter C, assuming that candidate drawing parameter C does not meet the reference condition, taking the above candidate drawing parameters as reinforcement parameters as an example, it can be but not limited to referring to the following. Figure 3 The following example is shown to illustrate the above steps:
[0070] like Figure 3 As shown in (a), candidate drawing parameter A, candidate drawing parameter B, and candidate drawing parameter C are displayed on the CAD drawing verification interface, wherein candidate drawing parameter C is displayed in a different display style from candidate drawing parameter A and candidate drawing parameter B.
[0071] Next, when the data row where the candidate drawing parameter C is located is selected, Figure 3 As shown in (b), a parameter recommendation pop-up window 302 is displayed, wherein a parameter recommendation control 304 is also displayed in the parameter recommendation pop-up window.
[0072] Furthermore, when the parameter recommendation control is touched, Figure 3 As shown in (c), a recommended drawing parameter interface is displayed, in which recommended drawing parameters matching the candidate drawing parameters are displayed.
[0073] It should be noted that the above example is an optional example provided to facilitate explanation of the above CAD drawing processing method, and there is no limitation on the specific implementation of the above CAD drawing processing method.
[0074] In the embodiment of the present application, in response to a touch operation on the candidate drawing parameters displayed in the CAD drawing verification interface after jumping from the CAD drawing editing interface, a parameter recommendation pop-up window is displayed, wherein the parameter recommendation pop-up window includes a parameter recommendation control; in response to a touch operation on the parameter recommendation control, a recommended drawing parameter interface is displayed, wherein the recommended drawing parameter interface displays recommended drawing parameters. In other words, by adopting the embodiment of the present application, the purpose of automatically providing recommended drawing parameters that meet the specifications is achieved by automatically displaying the recommended drawing parameters when the parameter recommendation control is touched, thereby achieving the technical effect of improving the processing efficiency of CAD drawings.
[0075] Optionally, in this embodiment, in response to the update operation performed on the object CAD drawing, displaying in the CAD drawing editing interface a target CAD drawing obtained by updating the object CAD drawing using the recommended drawing parameters includes:
[0076] In response to a touch operation on a drawing update control in a recommended drawing parameter interface, when an update prompt option in the recommended drawing parameter interface is selected, a target CAD drawing is prompted in a CAD drawing editing interface, wherein target objects associated with candidate drawing parameters that do not meet reference conditions are displayed in the target CAD drawing in a second display style.
[0077] It should be noted that the update prompt option can be, but is not limited to, used to indicate an option box or an option button, and this is not limited in the present embodiment. Further, the update prompt option can be, but is not limited to, used to determine whether to use the second display style to mark the target object modified in the target CAD image. For example, the second display style can be a display style that displays a color type.
[0078] As an optional example, you can refer to but not limited to Figure 4 The following example is shown to illustrate the above steps:
[0079] like Figure 4As shown in (a), a recommended drawing parameter interface is displayed, in which recommended drawing parameters matching the candidate drawing parameters C that do not meet the reference condition, an update prompt option 402 , and an update drawing control 404 are displayed.
[0080] Next, with the Recommend drawing parameters and Update prompt options selected, and Update controls also selected, Figure 4 As shown in (b), the target CAD drawing 406 is displayed, and the target object associated with the candidate drawing parameter C in the target CAD drawing is displayed in a display style different from that of other objects in the CAD drawing.
[0081] As another optional example, the above steps may also be explained with reference to, but not limited to, the following examples:
[0082] As an optional example, you can refer to but not limited to Figure 5 The following example is shown to illustrate the above steps:
[0083] like Figure 5 As shown in (a), a recommended drawing parameter interface is displayed, in which a parameter picking control 502, a recommended parameter display control 504, an update control 506 and an update prompt option 508 are displayed.
[0084] Then, with the parameter picker selected, Figure 5 As shown in (b), the recommended drawing parameter interface displays detailed parameter information of the candidate drawing parameters C that do not meet the reference conditions, such as basic parameters, longitudinal reinforcement parameters, stirrup parameters, and calculation parameters.
[0085] Next, with the recommended parameter display control selected, Figure 5 As shown in (c), the recommended drawing parameter interface contains detailed parameter information of each item in the recommended drawing parameters, such as basic parameters, longitudinal reinforcement parameters, stirrup parameters, and calculation parameters.
[0086] Furthermore, when the update prompt option is selected and the update control is also selected, Figure 5 As shown in (d), the target CAD drawing 510 is displayed, and the target object associated with the candidate drawing parameter C in the target CAD drawing is displayed in a display style different from that of other objects in the CAD drawing.
[0087] It should be noted that the above example is an optional example provided to facilitate explanation of the above CAD drawing processing method, and there is no limitation on the specific implementation of the above CAD drawing processing method.
[0088] In an embodiment of the present application, in response to a touch operation on a drawing update control in a recommended drawing parameter interface, when the update prompt option in the recommended drawing parameter interface is selected, a target CAD drawing is prompted in the CAD drawing editing interface, wherein the target object associated with the candidate drawing parameters that do not meet the reference condition is displayed in the target CAD drawing in accordance with the second display style. In other words, by adopting an embodiment of the present application, by displaying the modified target object in the target CAD drawing in the second display style, the user can more intuitively see which contents of the CAD drawing have been modified, so that the user can quickly understand the changes in the CAD drawing, thereby facilitating further processing of the CAD drawing, thereby achieving the technical effect of improving the processing efficiency of the CAD drawing.
[0089] Optionally, in this embodiment, after displaying the recommended drawing parameters matching the object in the object CAD drawing obtained based on the reference drawing parameter interval in response to the parameter recommendation operation performed on the object CAD drawing, the method further includes:
[0090] S1, obtaining drawing attribute information of the object CAD drawing;
[0091] S2: updating the object CAD drawing based on the drawing attribute information and the recommended drawing parameters to obtain the target CAD drawing.
[0092] Optionally, in the present embodiment, the above-mentioned drawing attribute information may be, but is not limited to, parametric information corresponding to the above-mentioned object CAD drawing obtained after identifying the pixels of the above-mentioned object CAD drawing, for example, global drawing parameter information of the above-mentioned object CAD drawing (such as reinforcement information), feature information of pixel objects in the drawing, feature information of text objects in the drawing, etc., and no limitation is made to this in the present embodiment.
[0093] Furthermore, the characteristic information of the pixel objects in the above drawings can be but is not limited to being used to indicate the display style of the pixel objects, for example: the type of pixel objects, such as line, circle, arc, polyline, text, block; the geometric dimensions of the pixel objects, such as length, width, height, radius, etc.; the color of the pixel objects displayed on the screen; the layer to which the pixel objects belong; the line style of the pixel objects, such as solid line, dotted line, dash-dot line, etc.; the transparency of the pixel objects; the scaling ratio of the pixel objects, etc., and no limitation is imposed on this in the present embodiment.
[0094] The characteristic information of the above-mentioned text object can be used but is not limited to indicating the display style of the text object, for example: the font style of the text object; the font size of the text object; the style of the text object, such as bold, italic or underline; the display color of the text object; the rotation angle of the text object, etc., and no limitation is imposed on this in the present embodiment.
[0095] In other words, in the above embodiment, since the drawing attribute information of the original drawing (i.e., the above object CAD drawing) is also referred to when the object CAD drawing is updated based on the recommended drawing parameters, the updated drawing (i.e., the above target CAD drawing) is compared with the original drawing, except for individual elements that do not meet the conditions being adjusted, the remaining elements and display styles are consistent with the original drawing. With this drawing update method, designers can modify the content that does not meet the conditions in the original drawing through interface interaction, while retaining the drawing display style of the original drawing and other content that does not need to be modified, thereby avoiding the problem of confusion in the display position of the pixel objects and the corresponding text annotations in the modified drawing caused by the designer manually adjusting each element in the CAD drawing one by one in the related technology, and achieving the technical effect of improving drawing efficiency and accuracy.
[0096] Optionally, in this embodiment, after displaying the recommended drawing parameters matching the object in the object CAD drawing obtained based on the reference drawing parameter interval in response to the parameter recommendation operation performed on the object CAD drawing, the method further includes:
[0097] S1, determining a target pixel display style of a target pixel object associated with a candidate drawing parameter that does not meet a reference condition in a target CAD drawing, and determining a target annotation display style of a target annotation object associated with the candidate drawing parameter in a target CAD drawing;
[0098] S2, adjusting the target pixel object and the target annotation object based on the recommended drawing parameters to obtain an updated target pixel object and an updated target annotation object;
[0099] S3, determining the object CAD drawing including the updated target pixel object and the updated target annotation object as the target CAD drawing, wherein the target pixel object is displayed in the CAD drawing according to the target pixel display style, and the target annotation object is displayed in the CAD drawing according to the target annotation display style.
[0100] Optionally, in this embodiment, the target pixel object may be, but is not limited to, a pixel in the object CAD drawing corresponding to the candidate drawing parameter. Specifically, a pixel is a basic graphic element constituting a CAD drawing, such as a line, circle, polygon, arc, point, spline, polyline, block, etc. Each pixel has its own attributes, such as color, line type, line width, layer, position, etc. A pixel can be geometrically transformed, such as moved, rotated, scaled, etc. A pixel is also an entity used to represent a design object in a CAD drawing, and is a direct expression of the design intent.
[0101] Furthermore, in this embodiment, the target annotation object is the annotation corresponding to the candidate drawing parameters. Specifically, the annotation is a text description, annotation, dimension line, symbol, etc. attached to the drawing to provide additional design information and guidance. Annotations can include dimension annotations, tolerance annotations, surface roughness symbols, welding symbols, annotation text, etc. Annotations are usually associated with pixels, but they are independent entities and can be edited and modified separately. The purpose of annotations is to provide explanations and supplementary information of the drawings to help understand the design intent and manufacturing requirements.
[0102] Optionally, in this embodiment, the target pixel display style may include but is not limited to the pixel size, pixel color, pixel shape, etc. of the target pixel object, and this is not limited in this embodiment. The target pixel display style may include but is not limited to the size, color, etc. of the target pixel object, and this is not limited in this embodiment.
[0103] It should be noted that, in the present embodiment, except for the target pixel objects and target annotation objects in the target CAD drawing which are different from those in the target CAD drawing, other pixel objects and annotation objects remain unchanged.
[0104] In an embodiment of the present application, the target pixel display style of the target pixel object associated with the candidate drawing parameters that do not meet the reference conditions in the object CAD drawing is determined, and the target annotation display style of the target annotation object associated with the candidate drawing parameters in the object CAD drawing is determined. Then, the target pixel object and the target annotation object are adjusted based on the recommended drawing parameters to obtain an updated target pixel object and an updated target annotation object. Furthermore, the object CAD drawing including the updated target pixel object and the updated target annotation object is determined as the target CAD drawing, wherein the target pixel object is displayed in the CAD drawing according to the target pixel display style, and the target annotation object is displayed in the CAD drawing according to the target annotation display style. In other words, by adopting the embodiment of the present application, by maintaining the display style of the original CAD drawing when modifying the CAD drawing, the modified CAD drawing can still maintain the original drawing style, thereby achieving the technical effect of improving the user experience.
[0105] Optionally, as an optional solution, taking the candidate drawing parameters as reinforcement parameters as an example, it can be but not limited to referring to the following Figure 6 The following steps are used to illustrate the overall processing method of the above CAD drawings:
[0106] Step S602, identifying the CAD drawing to obtain the original reinforcement parameters in the CAD drawing;
[0107] Step S604, comparing the original reinforcement parameters in the CAD drawing with the calculation data;
[0108] Step S606, determining the original reinforcement parameters that are too small or too large;
[0109] Step S608, obtaining recommended reinforcement parameters according to the original reinforcement parameters in the CAD drawing and the calculation data;
[0110] Step S610, when it is determined that the user has selected the recommended reinforcement parameters, displaying the original reinforcement parameters and the recommended reinforcement parameters in the form of a list;
[0111] Step S612: when the control for recommending reinforcement parameters and updating drawings is selected, the CAD drawing is modified based on the recommended reinforcement parameters in accordance with the original CAD drawing style.
[0112] By adopting the embodiment of the present application, the candidate CAD drawings are automatically verified in the CAD platform, and then the non-compliant contents in the CAD drawings are automatically modified to obtain the target CAD drawings that meet the specifications, which greatly improves the efficiency of CAD drawings, thereby solving the technical problem of low processing efficiency of CAD drawings. Furthermore, by adopting the embodiment of the present application, the display style of the original CAD drawings is maintained when modifying the CAD drawings, so that the modified CAD drawings can still maintain the original drawing style, thereby achieving the technical effect of improving the user experience.
[0113] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0114] According to another aspect of the embodiment of the present application, a CAD drawing processing device for implementing the above-mentioned CAD drawing processing method is also provided. Figure 7 As shown, the device comprises:
[0115] A verification unit 702, configured to verify candidate drawing parameters of the candidate CAD drawing in response to a verification operation performed on the candidate CAD drawing displayed in the CAD drawing editing interface, wherein the candidate drawing parameters are used to describe properties of an object displayed in the candidate CAD drawing;
[0116] A prompting unit 704 is used to prompt that the candidate drawing parameters do not meet the reference condition when the candidate drawing parameters do not match the reference drawing parameter interval used for verification, and determine the candidate CAD drawing as the target CAD drawing to be updated;
[0117] A first display unit 706 is used to display recommended drawing parameters matching the object in the object CAD drawing obtained based on the reference drawing parameter interval in response to the parameter recommendation operation performed on the object CAD drawing;
[0118] The second display unit 708 is used to display a target CAD drawing obtained by updating the object CAD drawing using the recommended drawing parameters in the CAD drawing editing interface in response to an update operation performed on the object CAD drawing.
[0119] Optionally, in this embodiment, the prompt unit includes: a first display module, used to display candidate drawing parameters that do not meet the reference conditions in a first display style in a CAD drawing verification interface after jumping from the CAD drawing editing interface; a second display module, used to display target prompt information in the CAD drawing verification interface after jumping from the CAD drawing editing interface, wherein the target prompt information is used to prompt that the candidate drawing parameter is greater than the second boundary value of the reference drawing parameter interval, or the target prompt information is used to prompt that the candidate drawing parameter is less than the first boundary value of the reference drawing parameter interval, and the second boundary value is greater than the first boundary value.
[0120] Optionally, in this embodiment, the above-mentioned first display unit includes: a third display module, used to display a parameter recommendation pop-up window in response to a touch operation on the candidate drawing parameters displayed in the CAD drawing verification interface after jumping from the CAD drawing editing interface, wherein the parameter recommendation pop-up window includes a parameter recommendation control; a fourth display module, used to display a recommended drawing parameter interface in response to a touch operation on the parameter recommendation control, wherein the recommended drawing parameter interface displays recommended drawing parameters.
[0121] Optionally, in this embodiment, the above-mentioned second display unit includes: a first prompt module, which is used to respond to the touch operation of the drawing update control in the recommended drawing parameter interface, and prompt the target CAD drawing in the CAD drawing editing interface when the update prompt option in the recommended drawing parameter interface is selected, wherein the target objects associated with the candidate drawing parameters that do not meet the reference conditions are displayed in the target CAD drawing according to the second display style.
[0122] Optionally, in this embodiment, the above-mentioned device also includes: an acquisition unit, used to acquire drawing attribute information of the object CAD drawing; a generation unit, used to update the object CAD drawing based on the drawing attribute information and recommended drawing parameters to obtain a target CAD drawing.
[0123] Optionally, in this embodiment, the above-mentioned device also includes: a first determination unit, used to determine the target pixel display style of the target pixel object associated with the candidate drawing parameters that do not meet the reference conditions in the object CAD drawing, and determine the target annotation display style of the target annotation object associated with the candidate drawing parameters in the object CAD drawing; an adjustment unit, used to adjust the target pixel object and the target annotation object based on the recommended drawing parameters to obtain an updated target pixel object and an updated target annotation object; a second determination unit, used to determine the object CAD drawing including the updated target pixel object and the updated target annotation object as the target CAD drawing, wherein the target pixel object is displayed in the CAD drawing according to the target pixel display style, and the target annotation object is displayed in the CAD drawing according to the target annotation display style.
[0124] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for processing CAD drawings, and this embodiment will not be described in detail here.
[0125] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned CAD drawing processing method is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a terminal device as an example. Figure 8 As shown, the electronic device includes a memory 802 and a processor 804. The memory 802 stores a computer program. The processor 804 is configured to execute the steps in any of the above method embodiments through the computer program.
[0126] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0127] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0128] S1, in response to a verification operation performed on a candidate CAD drawing displayed in a CAD drawing editing interface, verifying candidate drawing parameters of the candidate CAD drawing, wherein the candidate drawing parameters are used to describe properties of an object displayed in the candidate CAD drawing;
[0129] S2, when the candidate drawing parameters do not match the reference drawing parameter interval used for verification, prompting that the candidate drawing parameters do not meet the reference conditions, and determining the candidate CAD drawing as the object CAD drawing to be updated;
[0130] S3, in response to the parameter recommendation operation performed on the object CAD drawing, displaying recommended drawing parameters matching the object in the object CAD drawing obtained based on the reference drawing parameter interval;
[0131] S4, in response to the update operation performed on the object CAD drawing, displaying a target CAD drawing obtained by updating the object CAD drawing using the recommended drawing parameters in the CAD drawing editing interface.
[0132] Alternatively, a person skilled in the art may understand that: Figure 8 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 8 The structure of the electronic device is not limited. Figure 8 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 8 Different configurations are shown.
[0133] Among them, the memory 802 can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for processing CAD drawings in the embodiments of the present application. The processor 804 executes various functional applications and data processing by running the software programs and modules stored in the memory 802, that is, realizing the above-mentioned method for processing CAD drawings. The memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 802 may further include a memory remotely located relative to the processor 804, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. As an example, Figure 8 As shown, the memory 802 may include, but is not limited to, the verification unit 702, the prompt unit 704, the first display unit 706, and the second display unit 708 in the CAD drawing processing device. In addition, other module units in the CAD drawing processing device may also be included but are not limited to, which will not be repeated in this example.
[0134] Optionally, the transmission device 806 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 806 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 806 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0135] In addition, the electronic device mentioned above further includes: a connection bus 808, which is used to connect various module components in the electronic device mentioned above.
[0136] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. The nodes may form a point-to-point network, and any form of computing device, such as a server, terminal or other electronic device, may become a node in the blockchain system by joining the point-to-point network.
[0137] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the above method. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are executed.
[0138] According to one aspect of the present application, another computer program product is also provided, including a non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps of the method in each embodiment of the present application are implemented.
[0139] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above method.
[0140] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0141] S1, in response to a verification operation performed on a candidate CAD drawing displayed in a CAD drawing editing interface, verifying candidate drawing parameters of the candidate CAD drawing, wherein the candidate drawing parameters are used to describe properties of an object displayed in the candidate CAD drawing;
[0142] S2, when the candidate drawing parameters do not match the reference drawing parameter interval used for verification, prompting that the candidate drawing parameters do not meet the reference conditions, and determining the candidate CAD drawing as the object CAD drawing to be updated;
[0143] S3, in response to the parameter recommendation operation performed on the object CAD drawing, displaying recommended drawing parameters matching the object in the object CAD drawing obtained based on the reference drawing parameter interval;
[0144] S4, in response to the update operation performed on the object CAD drawing, displaying a target CAD drawing obtained by updating the object CAD drawing using the recommended drawing parameters in the CAD drawing editing interface.
[0145] Optionally, in the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0146] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0147] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0148] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0149] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0150] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0151] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0152] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for processing CAD drawings, characterized in that: include: In response to a verification operation performed on a candidate CAD drawing displayed in a CAD drawing editing interface, verifying a candidate drawing parameter of the candidate CAD drawing, wherein the candidate drawing parameter is used to describe properties of an object displayed in the candidate CAD drawing; In the case where the candidate drawing parameters do not match the reference drawing parameter interval used for verification, prompting that the candidate drawing parameters do not meet the reference conditions, and determining the candidate CAD drawing as the object CAD drawing to be updated; In response to a parameter recommendation operation performed on the object CAD drawing, displaying recommended drawing parameters that match the object in the object CAD drawing and are obtained based on the reference drawing parameter interval; In response to an update operation performed on the object CAD drawing, a target CAD drawing obtained by updating the object CAD drawing using the recommended drawing parameters is displayed in the CAD drawing editing interface.
2. The method according to claim 1, characterized in that The prompt that the candidate drawing parameter does not meet the reference condition includes at least one of the following: Displaying the candidate drawing parameters that do not meet the reference condition in a first display style in a CAD drawing verification interface after jumping from the CAD drawing editing interface; Target prompt information is displayed in the CAD drawing verification interface after jumping based on the CAD drawing editing interface, wherein the target prompt information is used to prompt that the candidate drawing parameter is greater than the second boundary value of the reference drawing parameter interval, or the target prompt information is used to prompt that the candidate drawing parameter is less than the first boundary value of the reference drawing parameter interval, and the second boundary value is greater than the first boundary value.
3. The method according to claim 1, characterized in that In response to the parameter recommendation operation performed on the object CAD drawing, displaying the recommended drawing parameters matching the object in the object CAD drawing obtained based on the reference drawing parameter interval includes: In response to a touch operation on a candidate drawing parameter displayed in a CAD drawing verification interface after jumping from the CAD drawing editing interface, a parameter recommendation pop-up window is displayed, wherein the parameter recommendation pop-up window includes a parameter recommendation control; In response to a touch operation on the parameter recommendation control, a recommended drawing parameter interface is displayed, wherein the recommended drawing parameters are displayed in the recommended drawing parameter interface.
4. The method according to claim 3, characterized in that In response to the update operation performed on the object CAD drawing, displaying in the CAD drawing editing interface a target CAD drawing obtained by updating the object CAD drawing using the recommended drawing parameters comprises: In response to a touch operation on a drawing update control in the recommended drawing parameter interface, when an update prompt option in the recommended drawing parameter interface is selected, the target CAD drawing is prompted in the CAD drawing editing interface, wherein the target objects associated with the candidate drawing parameters that do not meet the reference conditions are displayed in the target CAD drawing in a second display style.
5. The method according to any one of claims 1 to 4, characterized in that After displaying the recommended drawing parameters matching the object in the object CAD drawing obtained based on the reference drawing parameter interval in response to the parameter recommendation operation performed on the object CAD drawing, the method further includes: Obtaining drawing attribute information of the object CAD drawing; The object CAD drawing is updated based on the drawing attribute information and the recommended drawing parameters to obtain the target CAD drawing.
6. The method according to any one of claims 1 to 4, characterized in that After displaying the recommended drawing parameters matching the object in the object CAD drawing obtained based on the reference drawing parameter interval in response to the parameter recommendation operation performed on the object CAD drawing, the method further includes: Determine a target pixel display style of a target pixel object associated with the candidate drawing parameters that do not meet the reference condition in the object CAD drawing, and determine a target annotation display style of a target annotation object associated with the candidate drawing parameters in the object CAD drawing; Adjust the target pixel object and the target annotation object based on the recommended drawing parameters to obtain an updated target pixel object and an updated target annotation object; The object CAD drawing including the updated target pixel object and the updated target annotation object is determined as the target CAD drawing, wherein the target pixel object is displayed in the CAD drawing according to the target pixel display style, and the target annotation object is displayed in the CAD drawing according to the target annotation display style.
7. A method for processing CAD drawings, characterized in that: include: a verification unit, configured to verify candidate drawing parameters of the candidate CAD drawing in response to a verification operation performed on the candidate CAD drawing displayed in the CAD drawing editing interface, wherein the candidate drawing parameters are used to describe properties of an object displayed in the candidate CAD drawing; A prompting unit, configured to prompt that the candidate drawing parameters do not meet the reference condition when the candidate drawing parameters do not match the reference drawing parameter interval used for verification, and determine the candidate CAD drawing as the object CAD drawing to be updated; a first display unit, configured to display, in response to a parameter recommendation operation performed on the object CAD drawing, recommended drawing parameters obtained based on the reference drawing parameter interval and matching the object in the object CAD drawing; The second display unit is used to display, in response to an update operation performed on the object CAD drawing, a target CAD drawing obtained by updating the object CAD drawing using the recommended drawing parameters in the CAD drawing editing interface.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program is executed by a processor to perform the method described in any one of claims 1 to 6.
9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 6 through the computer program.
Citation Information
Patent Citations
Engineering drawing display method and related device
CN111832449A
Intelligent drawing auditing method and related devices
CN112417687A
Method for automatically identifying, checking, comparing and correcting primitive information of CAD (Computer Aided Design) platform
CN116311337A
List compilation method and device based on drawing table, equipment and storage medium
CN116933350A
Component verification method and system based on computer aided design and computer equipment
CN117172042A
