A method, device, equipment and readable storage medium for generating a composite component
By receiving and generating instructions, searching template information and drawing reference lines in the building software, and generating a composite component model according to the basic component arrangement rules, the problem of the lack of composite component functions of existing software is solved, and a rapid and automated composite component design is achieved. Reduces user operation complexity and learning costs.
Patent Information
- Application Number
- CN202111270092.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2041-10-29
AI Technical Summary
The existing building software lacks the ability to generate composite component models, which leads to difficulties in designing and maintaining large-scale buildings and increases the learning costs of users.
By receiving generation instructions, searching for template information in the template library, obtaining reference lines drawn by users, and arranging basic components in the display interface according to the basic component arrangement rules to generate a composite component model, supporting modification of component sizes and properties.
It realizes the rapid and automated generation of composite component models, reduces user operation complexity, improves design efficiency and flexibility, and meets users' diverse needs.
Smart Images

Figure CN113987647B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer-aided design, and in particular to a method, device, equipment and readable storage medium for generating a composite component. Background Art
[0002] In the field of architecture, since a building usually includes multiple types of components, architectural software used for auxiliary design is required to be able to draw models of various types of components. Currently, architectural software on the market only provides modeling modules for creating various basic components according to business classification, and does not provide a general function for modeling combined components. Users are required to manually draw models of combined components based on the modeling modules of basic components. This poses a great challenge to the design and maintenance of large buildings, and also increases the learning cost for users. Therefore, how to efficiently and flexibly create models of combined components through architectural software has become a technical problem that technicians in this field need to solve urgently. Summary of the invention
[0003] The object of the present invention is to provide a method, device, equipment and readable storage medium for generating a composite component, which can efficiently and flexibly create a model of the composite component.
[0004] According to one aspect of the present invention, there is provided a method for generating a composite component, the method comprising:
[0005] Receiving a generation instruction for generating a target composite component;
[0006] Searching for template information corresponding to the target composite component from a preset template library; wherein the template information includes: various basic components constituting the target composite component, and basic component arrangement rules;
[0007] Get the reference line drawn by the user in the display interface;
[0008] Based on the reference line and in accordance with the basic component arrangement rule, the basic components are arranged in the display interface to generate the target combined component.
[0009] Optionally, arranging the basic components in the display interface based on the reference line and in accordance with the basic component arrangement rule to generate the target combined component includes:
[0010] Acquire the initial attribute information of each basic component from the template information; wherein the initial attribute information includes: initial size information and initial model information;
[0011] According to the initial size information and initial model information of each basic component, an initial basic component model of the corresponding basic component is drawn;
[0012] Determine the boundary line of the target composite component based on the reference line;
[0013] The initial basic component models of the basic components are arranged within the boundary line according to the basic component arrangement rule to generate a model of the target composite component.
[0014] Optionally, after arranging the basic components in the display interface based on the reference line and in accordance with the basic component arrangement rule to generate the target combined component, the method further includes:
[0015] Acquire a preset size calculation rule from the template information; wherein the size calculation rule defines the influence relationship between the size of the basic component and the size of the combined component;
[0016] Calculating the overall size information of the target composite component according to the size information of the reference line and the initial size information of each basic component and the size calculation rule;
[0017] The overall size information of the target composite component is displayed through the display interface.
[0018] Optionally, after displaying the overall size information of the target composite component through the display interface, the method further includes:
[0019] Receiving a first modification instruction for modifying the overall size information of the target composite component; wherein the first modification instruction includes: the modified overall size information of the target composite component;
[0020] According to the modified overall size information of the target composite component, the modified size information of each basic component is calculated by using the size calculation rule;
[0021] The target combined component is regenerated according to the modified overall size information of the target combined component and the modified size information of each basic component.
[0022] Optionally, after displaying the overall size information of the target composite component through the display interface, the method further includes:
[0023] receiving a second modification instruction for modifying a base component in the target composite component; wherein the second modification instruction includes: modified size information of the target base component;
[0024] According to the modified size information of the target basic component and using the size calculation rule, the modified size information of other basic components associated with the target basic component is calculated without modifying the overall size information of the target composite component;
[0025] The target combined component is regenerated according to the modified size information of each basic component.
[0026] Optionally, the target composite component is: a staircase, a continuous beam, a curtain wall, a wall, a construction panel house, a tower crane wall attachment, or a marking arrangement.
[0027] In order to achieve the above object, the present invention also provides a device for generating a composite component, the device specifically comprising the following components:
[0028] A receiving module, used for receiving a generation instruction for generating a target composite component;
[0029] A search module, used to search for template information corresponding to the target composite component from a preset template library; wherein the template information includes: various basic components constituting the target composite component, and basic component arrangement rules;
[0030] An acquisition module, used to acquire a reference line drawn by a user in a display interface;
[0031] A generating module is used to arrange the basic components in the display interface based on the reference line and in accordance with the basic component arrangement rule to generate the target combined component.
[0032] Optionally, the generating module is used to:
[0033] Acquire the initial attribute information of each basic component from the template information; wherein the initial attribute information includes: initial size information and initial model information;
[0034] According to the initial size information and initial model information of each basic component, an initial basic component model of the corresponding basic component is drawn;
[0035] Determine the boundary line of the target composite component based on the reference line;
[0036] The initial basic component models of the basic components are arranged within the boundary line according to the basic component arrangement rule to generate a model of the target composite component.
[0037] In order to achieve the above-mentioned purpose, the present invention also provides a computer device, which specifically includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the method for generating a composite component introduced above are implemented.
[0038] In order to achieve the above object, the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for generating a composite component introduced above are implemented.
[0039] The method, device, equipment and readable storage medium for generating a composite component provided by the present invention allow the user to select the type of composite component to be generated and draw a reference line, and the user can automatically and quickly generate a composite component model according to the corresponding template information without any other operations. In addition, when the composite component model is generated, the user can also modify the model, position, and quantity of the basic component according to actual needs, or modify the size of the composite component, or modify the size of the basic component, so as to generate a composite component model that meets the user's needs in a more flexible and humanized manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0041] Figure 1 An optional flow chart of the method for generating a combined component provided in the first embodiment;
[0042] Figure 2 A schematic diagram of a process for defining a composite component provided in Example 1;
[0043] Figure 3 The content included in the component classification step provided in Example 1;
[0044] Figure 4 A schematic diagram of a car rental structure of a combination rule provided in Example 1;
[0045] Figure 5 A schematic diagram of the flow of parameter information transmission between the combined component and the basic component provided in the first embodiment;
[0046] Figure 6 A schematic diagram of an optional composition structure of the device for generating a combined component provided in the second embodiment;
[0047] Figure 7A schematic diagram of an optional hardware architecture of a computer device provided in Example 3. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0049] Embodiment 1
[0050] The embodiment of the present invention provides a method for generating a composite component, such as Figure 1 As shown, the method specifically comprises the following steps:
[0051] Step S101: receiving a generation instruction for generating a target composite component.
[0052] In the field of architecture, if a component is an object that does not belong to the list of basic components of the system, then the component needs to be defined using a composite component. Usually, components that cannot be covered by basic components belong to relatively complex components in actual business. Composite components correspond to single basic components, which refer to components that are not in the existing basic component system list and cannot be directly defined geometrically and parametrically through the system's component editor. In this embodiment, components formed by nesting or combining multiple basic components according to certain rules are called composite components. Among them, basic components are components in the component classification system that can be directly defined geometrically and parametrically through the component editor, such as beams, columns, doors, and windows.
[0053] like Figure 2 The figure shows a flowchart for defining composite components. The component business analysis step is mainly based on the system demand analysis results, combined with the construction business scenario to be solved by the demand, to analyze the branch project to which the business under the construction business scenario belongs and whether the scope of the project contains the newly added component object. If it contains the newly added component object, the physical properties and application scenarios of the newly added component object are determined. The component classification step is used to determine whether the newly added component object is a basic component. If not, it is determined to be a composite component; specifically, Figure 3As shown, in the component classification step, it is necessary to determine whether the newly added component object is a basic component according to the professional classification, component name, type attribute and instance attribute to which the newly added component object belongs; wherein, the professional classification of the component is determined by the business attribute of the construction stage, and the professional classification of civil construction projects refers to the "Uniform Standard for Construction Quality Acceptance of Construction Projects" as a national standard, numbered as Appendix B of GB50300-2013: Division of Divisional Projects and Sub-items of Construction Projects, wherein the professional classification corresponds to the name of the divisional project and the sub-divisional project, and the component name is set in advance according to business needs; in addition, components need to be expressed and changed with attributes to correspond to actual business needs. In this embodiment, component attributes are defined as type attributes and instance attributes. Type attributes reflect the information of a group of components, such as components of the same size and material, and instance attributes reflect the information of a single component, such as the inner and outer opening directions of a door; in this embodiment, a set of corresponding type attributes and instance attributes have been preset for a type of basic component in advance. When the professional classification, component name, type attribute and instance attribute of a component are exactly the same, the component classification is the same. In this embodiment, if the newly added component object is an object that does not belong to the list of system basic components, then the newly added component object needs to be defined using a composite component.
[0054] Specifically, the composite components include the following types: stairs, continuous beams, curtain walls, enclosures, construction board houses, tower crane wall parts, and line layout. For example, stairs are composed of basic components such as stair steps, platforms, ladder beams, and handrails; continuous beams are composed of multiple single-span beams with different cross-sections; curtain walls are composed of basic components such as horizontal and vertical bars and panels; enclosures are composed of basic components such as enclosure columns and enclosure walls. Preferably, the target composite component is a composite component of a specified type.
[0055] Step S102: searching for template information corresponding to the target composite component from a preset template library; wherein the template information includes: various basic components constituting the target composite component, and basic component arrangement rules.
[0056] Specifically, before step S102, the method further includes:
[0057] Step A1: respectively obtain the template information pre-created for each type of composite component, and respectively add corresponding type information to each template information;
[0058] Step A2: Add all template information to the preset template library.
[0059] Therefore, in the above step S102, the type information of the target composite component is first determined, and then the template information containing the type information is searched from the template library.
[0060] Preferably, Figure 2 As shown, the template information of the composite component A can be expressed as A=a+b+c+∑, where a, b, and c are the basic components constituting the composite component A, also called subcomponents of the composite component A (subcomponents must be basic components), and ∑ is the combination rule of the subcomponents to form the composite component A. In this embodiment, Figure 4 As shown, the combination rules include: basic component arrangement rules and size calculation rules.
[0061] Combination rules are an abstract concept. In order to realize the changes in actual projects, combination rules are changeable. It can also be understood that if the basic components cannot meet the business expectations through parameter changes, they need to be realized through combination rules. In the definition of combination components, the basic components continue the existing system, and the changing system focuses on the extraction of combination rules.
[0062] In this embodiment, the basic component arrangement rule is used to guide how to arrange the basic components that constitute the composite component within the boundary line of the composite component; since a composite component may be composed of multiple types of basic components, and each type of basic component may appear repeatedly in the composite component in a certain specific manner, the developer may set corresponding basic component arrangement rules for each type of composite component in advance according to the arrangement characteristics of various types of basic components in each type of composite component.
[0063] Step S103: Acquire a reference line drawn by the user in the display interface, wherein the reference line is used to define a boundary line of the target composite component.
[0064] In this embodiment, the user first selects the type of composite component to be generated, and then draws a reference line for limiting the size of the composite component in the display interface. Preferably, when the target composite component is a staircase, a continuous beam or a wall, the reference line is a line segment; when the target composite component is a curtain wall, the reference line is a plurality of line segments, and the plurality of line segments constitute a closed space.
[0065] Step S104: Arranging the basic components in the display interface based on the reference line and in accordance with the basic component arrangement rule to generate the target combined component.
[0066] Specifically, step S104 includes:
[0067] Step B1: respectively obtaining initial attribute information of each basic component from the template information; wherein the initial attribute information includes: initial size information and initial model information;
[0068] In this embodiment, the template information includes: various types of basic components constituting the target composite component, and initial attribute information of each type of basic component; it should be noted that the initial attribute information of each type of basic component is a default value, but the user can also modify the initial attribute information of the specified type of basic component according to needs later; the initial attribute information includes the size information of the basic component and the model information used to characterize the material and style of the basic component.
[0069] Step B2: based on the initial size information and initial model information of each basic component, draw an initial basic component model of the corresponding basic component.
[0070] Step B3: determining the boundary line of the target composite component based on the reference line;
[0071] Furthermore, step B3 specifically includes:
[0072] When the reference line is a line segment, a line perpendicular to the starting point of the line segment is set as the starting boundary line of the target composite component, and a line perpendicular to the end point of the line segment is set as the ending boundary line of the target composite component;
[0073] When the reference line is a plurality of line segments, a closed line formed by the plurality of line segments is set as a boundary line of the target composite component.
[0074] Step B4: Arranging the initial basic component models of the basic components within the boundary line according to the basic component arrangement rule to generate a model of the target composite component.
[0075] For example, when the target composite component is a wall, the wall column model and the wall body model are first drawn according to the initial attribute information, and then the starting boundary line and the ending boundary line are generated based on the reference line (line segment) drawn by the user. Finally, starting from the starting boundary line, the wall column model is first arranged and then the wall body model is arranged. The arrangements are repeated alternately until the ending boundary line is reached, thereby forming a wall model.
[0076] Through this embodiment, the user only needs to select the type of composite component to be generated and draw a reference line. The user can automatically and quickly generate a composite component model according to the corresponding template information without any other operations.
[0077] Furthermore, after step S104, the method further includes:
[0078] Step C1: obtaining a preset size calculation rule from the template information; wherein the size calculation rule defines the influence relationship between the size of the basic component and the size of the combined component;
[0079] In this embodiment, when creating template information for a target composite component, not only basic component arrangement rules are generated to define the positional relationship between the basic component and the composite component, but also size calculation rules are generated to define the influence relationship between the size of the basic component and the size of the composite component.
[0080] Step C2: calculating the overall size information of the target composite component according to the size information of the reference line and the initial size information of each basic component and in accordance with the size calculation rule;
[0081] The size calculation rule includes a calculation formula for calculating the overall size information of the combined component based on the size information of each basic component.
[0082] Step C3: displaying the overall size information of the target composite component through the display interface;
[0083] The overall size information of the target composite component includes: overall length, overall height, overall width, and position coordinates of each vertex of the target composite component.
[0084] Furthermore, after step S104, the method further includes:
[0085] A property modification instruction for modifying a target basic component in the target composite component is received, and model information, position information or quantity information of the target basic component is modified according to the property modification instruction.
[0086] Furthermore, after displaying the overall size information of the target composite component through the display interface, the method further includes:
[0087] Step D1: receiving a first modification instruction for modifying the overall size information of the target composite component; wherein the first modification instruction includes: the modified overall size information of the target composite component;
[0088] Step D2: Calculating the modified size information of each basic component based on the modified overall size information of the target composite component and using the size calculation rule;
[0089] Step D3: regenerate the target composite component according to the modified overall size information of the target composite component and the modified size information of each basic component.
[0090] In this embodiment, when the overall size of the combined component is modified, it is necessary to recalculate the size of each basic component according to the size calculation rule, and regenerate the model of the target component according to the calculated size.
[0091] Furthermore, after displaying the overall size information of the target composite component through the display interface, the method further includes:
[0092] Step E1: receiving a second modification instruction for modifying a basic component in the target composite component; wherein the second modification instruction includes: modified size information of the target basic component;
[0093] Step E2: according to the modified size information of the target basic component and using the size calculation rule, calculate the modified size information of other basic components associated with the target basic component without modifying the overall size information of the target composite component;
[0094] Step E3: Regenerate the target composite component according to the modified size information of each basic component.
[0095] In this embodiment, unlike modifying the overall size information of the combined component, when modifying the size of the base component, the overall size information of the combined component is not changed.
[0096] The parameter information between the composite component and the basic component (also called sub-component) can be transmitted and shared with each other, but the two-way transmission of parameter information between the composite component and the basic component is prone to form a closed-loop deadlock. Figure 5 As shown, in this embodiment, the parameter information transmission method between the combined component and the basic component is limited to one-way transmission (i.e., transmission from the combined component to the basic component) or isolation through the editing link, so as to avoid the problem of deadlock when the parameter information is transmitted. This embodiment adopts a one-way transmission method of driving the basic component parameter information by adjusting the parameter information of the combined component.
[0097] In this embodiment, when the model of the combined component is generated, the user can modify the model, position, quantity of the basic component, or modify the size of the combined component, or modify the size of the basic component according to actual needs, thereby generating a combined component that meets user needs in a more flexible and humanized manner.
[0098] Embodiment 2
[0099] The embodiment of the present invention provides a device for generating a composite component, such as Figure 6 As shown, the device specifically includes the following components:
[0100] The receiving module 601 is used to receive a generation instruction for generating a target composite component;
[0101] The search module 602 is used to search for template information corresponding to the target composite component from a preset template library; wherein the template information includes: each basic component constituting the target composite component, and a basic component arrangement rule;
[0102] An acquisition module 603 is used to acquire a reference line drawn by a user in a display interface;
[0103] The generating module 604 is used to arrange the basic components in the display interface based on the reference line and in accordance with the basic component arrangement rule to generate the target combined component.
[0104] Specifically, the generating module 604 is used to:
[0105] The initial attribute information of each basic component is respectively obtained from the template information; wherein the initial attribute information includes: initial size information and initial model information; according to the initial size information and initial model information of each basic component, an initial basic component model of the corresponding basic component is drawn; based on the reference line, a boundary line of the target composite component is determined; and according to the basic component arrangement rule, the initial basic component models of each basic component are arranged within the boundary line to generate a model of the target composite component.
[0106] Furthermore, the device also includes:
[0107] A calculation module is used to obtain a preset size calculation rule from the template information; wherein the size calculation rule defines the influence relationship between the size of the basic component and the size of the combined component; according to the size information of the reference line and the initial size information of each basic component, the overall size information of the target combined component is calculated according to the size calculation rule; and the overall size information of the target combined component is displayed through the display interface.
[0108] Furthermore, the device also includes:
[0109] The combined component modification module is used to receive a first modification instruction for modifying the overall size information of the target combined component; wherein the first modification instruction includes: the modified overall size information of the target combined component; based on the modified overall size information of the target combined component, the modified size information of each basic component is calculated using the size calculation rule; and the target combined component is regenerated based on the modified overall size information of the target combined component and the modified size information of each basic component.
[0110] Furthermore, the device also includes:
[0111] The basic component modification module is used to receive a second modification instruction for modifying a basic component in the target composite component; wherein the second modification instruction includes: modified size information of the target basic component; based on the modified size information of the target basic component and using the size calculation rule, calculating the modified size information of other basic components associated with the target basic component without modifying the overall size information of the target composite component; and regenerating the target composite component based on the modified size information of each basic component.
[0112] Furthermore, the target composite component is: a staircase, a continuous beam, a curtain wall, a wall, a construction panel house, a tower crane wall attachment, or a marking arrangement.
[0113] Embodiment 3
[0114] This embodiment also provides a computer device, such as a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server or a server cluster composed of multiple servers) that can execute programs. Figure 7 As shown, the computer device 70 of this embodiment includes at least but not limited to: a memory 701 and a processor 702 that can be interconnected through a system bus. It should be noted that Figure 7 Only computer device 70 is shown with components 701 - 702 , but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0115] In this embodiment, the memory 701 (i.e., a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 701 may be an internal storage unit of the computer device 70, such as a hard disk or a memory of the computer device 70. In other embodiments, the memory 701 may also be an external storage device of the computer device 70, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device 70. Of course, the memory 701 may also include both the internal storage unit and the external storage device of the computer device 70. In this embodiment, the memory 701 is generally used to store the operating system and various application software installed on the computer device 70. In addition, the memory 701 may also be used to temporarily store various types of data that have been output or are to be output.
[0116] In some embodiments, the processor 702 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 702 is generally used to control the overall operation of the computer device 70.
[0117] Specifically, in this embodiment, the processor 702 is used to execute the program of the method for generating a combined component stored in the memory 701, and the program of the method for generating a combined component implements the following steps when being executed:
[0118] Receiving a generation instruction for generating a target composite component;
[0119] Searching for template information corresponding to the target composite component from a preset template library; wherein the template information includes: various basic components constituting the target composite component, and basic component arrangement rules;
[0120] Get the reference line drawn by the user in the display interface;
[0121] Based on the reference line and in accordance with the basic component arrangement rule, the basic components are arranged in the display interface to generate the target combined component.
[0122] The specific implementation process of the above method steps can be found in the first embodiment, and this embodiment will not be repeated here.
[0123] Embodiment 4
[0124] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored. When the computer program is executed by a processor, the following method steps are implemented:
[0125] Receiving a generation instruction for generating a target composite component;
[0126] Searching for template information corresponding to the target composite component from a preset template library; wherein the template information includes: various basic components constituting the target composite component, and basic component arrangement rules;
[0127] Get the reference line drawn by the user in the display interface;
[0128] Based on the reference line and in accordance with the basic component arrangement rule, the basic components are arranged in the display interface to generate the target combined component.
[0129] The specific implementation process of the above method steps can be found in the first embodiment, and this embodiment will not be repeated here.
[0130] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0131] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0132] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.
[0133] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for generating a composite component, characterized in that: The method comprises: Receiving a generation instruction for generating a target composite component; Searching for template information corresponding to the target composite component from a preset template library; wherein the template information includes: various basic components constituting the target composite component, and basic component arrangement rules, wherein the basic component arrangement rules are used to guide the arrangement of the various basic components within the boundary line of the target composite component; Acquire a reference line drawn by a user in a display interface; wherein the reference line is used to determine a boundary line of the target composite component; Based on the boundary line determined by the reference line and in accordance with the basic component arrangement rule, the basic components are arranged in the display interface to generate the target combined component; Wherein, determining the boundary line based on the reference line includes: When the reference line is a line segment, a line perpendicular to the starting point of the line segment is determined as the starting boundary line of the target composite component, and a line perpendicular to the end point of the line segment is determined as the ending boundary line of the target composite component; When the reference line is a plurality of line segments, a closed line formed by the plurality of line segments is determined as a boundary line of the target composite component.
2. The method for generating a composite component according to claim 1, characterized in that: The arranging the basic components in the display interface based on the reference line and in accordance with the basic component arrangement rule to generate the target combined component includes: Acquire the initial attribute information of each basic component from the template information; wherein the initial attribute information includes: initial size information and initial model information; According to the initial size information and initial model information of each basic component, an initial basic component model of the corresponding basic component is drawn; Determine the boundary line of the target composite component based on the reference line; The initial basic component models of the basic components are arranged within the boundary line according to the basic component arrangement rule to generate a model of the target composite component.
3. The method for generating a composite component according to claim 2, characterized in that: After arranging the basic components in the display interface based on the reference line and in accordance with the basic component arrangement rule to generate the target combined component, the method further includes: Acquire a preset size calculation rule from the template information; wherein the size calculation rule defines the influence relationship between the size of the basic component and the size of the combined component; Calculating the overall size information of the target composite component according to the size information of the reference line and the initial size information of each basic component and the size calculation rule; The overall size information of the target composite component is displayed through the display interface.
4. The method for generating a composite component according to claim 3, characterized in that: After displaying the overall size information of the target composite component through the display interface, the method further includes: Receiving a first modification instruction for modifying the overall size information of the target composite component; wherein the first modification instruction includes: the modified overall size information of the target composite component; According to the modified overall size information of the target composite component, the modified size information of each basic component is calculated by using the size calculation rule; The target combined component is regenerated according to the modified overall size information of the target combined component and the modified size information of each basic component.
5. The method for generating a composite component according to claim 3, characterized in that: After displaying the overall size information of the target composite component through the display interface, the method further includes: receiving a second modification instruction for modifying a base component in the target composite component; wherein the second modification instruction includes: modified size information of the target base component; According to the modified size information of the target basic component and using the size calculation rule, the modified size information of other basic components associated with the target basic component is calculated without modifying the overall size information of the target composite component; The target combined component is regenerated according to the modified size information of each basic component.
6. The method for producing a composite component according to any one of claims 1 to 5, characterized in that: The target composite components are: stairs, continuous beams, curtain walls, walls, construction panels, tower crane wall parts, or line layouts.
7. A device for generating a composite component, characterized in that: The device comprises: A receiving module, used for receiving a generation instruction for generating a target composite component; A search module, used to search for template information corresponding to the target composite component from a preset template library; wherein the template information includes: various basic components constituting the target composite component, and basic component arrangement rules, wherein the basic component arrangement rules are used to guide the arrangement of the various basic components within the boundary line of the target composite component; An acquisition module, used to acquire a reference line drawn by a user in a display interface; wherein the reference line is used to determine a boundary line of the target composite component; A generating module, configured to arrange the basic components in the display interface based on the boundary line determined by the reference line and in accordance with the basic component arrangement rule to generate the target combined component; Wherein, the generating module is used for: When the reference line is a line segment, a line perpendicular to the starting point of the line segment is determined as the starting boundary line of the target composite component, and a line perpendicular to the end point of the line segment is determined as the ending boundary line of the target composite component; When the reference line is a plurality of line segments, a closed line formed by the plurality of line segments is determined as a boundary line of the target composite component.
8. The device for generating a composite component according to claim 7, characterized in that: The generating module is used for: Acquire the initial attribute information of each basic component from the template information; wherein the initial attribute information includes: initial size information and initial model information; According to the initial size information and initial model information of each basic component, an initial basic component model of the corresponding basic component is drawn; Determine the boundary line of the target composite component based on the reference line; The initial basic component models of the basic components are arranged within the boundary line according to the basic component arrangement rule to generate a model of the target composite component.
9. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
