Component type conversion method and system and electronic equipment

By providing component type conversion methods in BIM, the problem of low component replacement efficiency is solved, efficient component information retention and conversion is achieved, and subsequent adjustment process is simplified.

CN119848115APending Publication Date: 2025-04-18PINMING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411683384.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

In the prior art, the building information model (BIM) component replacement function is inefficient and cannot retain the information before replacement, resulting in asymmetry of attributes and geometric relationships changing, and a large number of component attributes need to be adjusted.

Method used

A component type conversion method is provided. By responding to the conversion instructions, the component type to be converted and the target component type are determined, and the component information to be converted is performed based on the component information in the component list. Pre-formed component conversion rules are used, including component attributes, civil engineering information and steel bar information, to ensure that the components retain the original information after conversion.

Benefits of technology

It improves component conversion efficiency, retains the information of the original component, avoids changes in attribute asymmetry and geometric relationships, and simplifies subsequent component attribute adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119848115A_ABST
    Figure CN119848115A_ABST
Patent Text Reader

Abstract

The invention relates to a component type conversion method which comprises the steps that a conversion instruction is responded, the type of a to-be-converted component and the type of a target component are determined, a first component is determined from a component list based on the type of the to-be-converted component, and the component list is a tree structure list pre-constructed based on building information and component type information; according to a component conversion rule, the first component is converted into a target component type, a second component is obtained, the component conversion rule is pre-generated based on the component attribute, the civil engineering information and the steel bar information, the target attribute of the second component is modified based on the target component type, and all attributes, except the target attribute, of the first component are copied to the second component. According to the invention, the problem of low component conversion efficiency of the building information model is solved. The component needing to be converted is selected through the component list, the component information needing to be updated and matched with the new component is automatically converted, the component information the same as that of the original component is reserved, and the component conversion efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the application field of building information modeling, and in particular to a component type conversion method, system and electronic equipment. Background Art

[0002] In construction projects, during the process of creating a BIM model or after modeling, there are often changes in drawings, and it is necessary to modify the information of some components and replace the already arranged components with another type of components.

[0003] In the related technology, the existing component replacement function is to replace existing components, and the replaced components cannot retain the information before the replacement, resulting in the replacement components often losing reinforcement information due to attribute asymmetry, and the geometric relationship of the model will also change, requiring a large number of component attribute adjustments for the replaced components. Replacement can only convert components of the same type, and the selection of scattered components of the same type is inefficient. The replacement function has established requirements for the replaced components, which requires the creation of the converted component information in advance.

[0004] Currently, no effective solution has been proposed for the problem of low conversion efficiency of building information model components in related technologies. Summary of the invention

[0005] The embodiments of the present application provide a component type conversion method, system, electronic device and storage medium to at least solve the problem of low conversion efficiency of building information model components in related technologies.

[0006] In a first aspect, an embodiment of the present application provides a component type conversion method, the method comprising:

[0007] In response to the conversion instruction, determine the component type to be converted and the target component type, and determine the first component from the component list based on the component type to be converted, wherein the component list is a tree structure list pre-constructed based on the building information and the component category information;

[0008] According to a component conversion rule, the first component is converted into the target component type to obtain a second component, wherein the component conversion rule is pre-generated based on component attributes, civil engineering information, and reinforcement information;

[0009] The target attribute of the second component is modified based on the target component type, and all attributes of the first component except the target attribute are copied to the second component.

[0010] In some embodiments, converting the first component to the target component type according to the component conversion rule to obtain the second component includes:

[0011] After converting the first component to the target component type, a model of the second component is generated based on component information of the first component, wherein the component information includes properties, cross-section, height, and reinforcement.

[0012] In some embodiments, before determining the type of component to be converted and the type of target component, the method further includes:

[0013] In response to the category selection instruction, the component categories to which the component type to be converted and the target component type belong are determined, wherein the component type to be converted and the target component type are subdivided types under the same component category.

[0014] In some of the embodiments, the major categories of components are selected from: columns, beams, walls and foundations.

[0015] In some embodiments, the method further comprises:

[0016] Add the second component to the component classification corresponding to the component list, and delete the first component;

[0017] Delete the component category with the component quantity of 0 in the component list.

[0018] In some of these embodiments, the target attributes include component type, bill of materials quota, and reinforcement calculation settings.

[0019] In some embodiments, converting the first component to the target component type according to the component conversion rule to obtain the second component includes:

[0020] Determine an auxiliary component associated with the first component, and obtain association information between the first component and the auxiliary component;

[0021] The association information is added to the component data of the second component.

[0022] In some embodiments, after converting the first component to the target component type according to the component conversion rule to obtain the second component, the method further includes:

[0023] determining whether the first component is successfully converted,

[0024] If yes, delete the component data of the first component from the model system and add the component data of the second component,

[0025] If not, the error information is captured through the exception handling mechanism, and a warning message of conversion failure is generated.

[0026] In a second aspect, an embodiment of the present application provides a component type conversion system, the system comprising:

[0027] A type determination module, for responding to the conversion instruction, determining the type of the component to be converted and the target component type, and determining the first component from the component list based on the type of the component to be converted, wherein the component list is a tree structure list pre-constructed based on the building information and the component category information;

[0028] A conversion module, used for converting the first component into the target component type according to a component conversion rule to obtain a second component, wherein the component conversion rule is pre-generated based on component attributes, civil engineering information and reinforcement information;

[0029] The property updating module is used to modify the target property of the second component based on the target component type, and copy all properties of the first component except the target property to the second component.

[0030] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the component type conversion method described in the first aspect above is implemented.

[0031] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the component type conversion method as described in the first aspect above.

[0032] Compared with the related art, the component type conversion method provided in the embodiment of the present application determines the component type to be converted and the target component type by responding to the conversion instruction, determines the first component from the component list based on the component type to be converted, the component list is a tree structure list pre-constructed based on the building information and component category information, and converts the first component to the target component type according to the component conversion rule to obtain the second component. The component conversion rule is pre-generated based on the component attributes, civil engineering information and steel bar information, modifies the target attribute of the second component based on the target component type, and copies all the attributes of the first component except the target attribute to the second component, which solves the problem of low conversion efficiency of building information model components. The component to be converted is selected through the component list, and the component information that needs to be updated to match the new component is automatically converted, and the component information that is the same as the original component is retained, thereby improving the component conversion efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] 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:

[0034] Figure 1is a flowchart of a component type conversion method according to an embodiment of the present application;

[0035] Figure 2 is a schematic diagram of a component category selection page according to an embodiment of the present application;

[0036] Figure 3 is a schematic diagram of a floor and building selection page according to an embodiment of the present application;

[0037] Figure 4 is a schematic diagram of a conversion logic display page according to an embodiment of the present application;

[0038] Figure 5 is a structural block diagram of a component type conversion system according to an embodiment of the present application;

[0039] Figure 6 It is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated 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 application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0041] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0042] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0043] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0044] This embodiment provides a component type conversion method. Figure 1 is a flowchart of a component type conversion method according to an embodiment of the present application. Figure 1 As shown, the process includes the following steps:

[0045] Step S101, responding to a conversion instruction, determining a component type to be converted and a target component type, and determining a first component from a component list based on the component type to be converted, wherein the component list is a tree structure list pre-constructed based on building information and component category information.

[0046] Filter out components that can be converted in both directions or only in one direction: the component types are similar and interlinked, the cross-sectional size before and after the conversion remains unchanged, and the steel bar information is matched and not lost after the conversion. The selection is mainly in the main structure, including column components, concrete wall components, beam components, and foundation components, and a component list is constructed based on the specific component conversion relationship.

[0047] The conversion conditions are set through user instructions, and all components that meet the requirements in the system are found and displayed in a hierarchical tree diagram. The displayed information includes but is not limited to the building, floor and specific component name; the tree nodes record key information, including the unique identification bit of the component and the selection status of the component.

[0048] The tree view supports the linkage of parent and child nodes, the selection of the status bar, and the range selection function (optionally, long-press the mouse event to pull the rectangular range to select all components within the range, and then filter the corresponding type according to the conversion conditions and highlight them). The tree view is reversely judged by the unique flag of the component to determine whether it has been selected, update the display, and store the information of the component to be converted.

[0049] In some of the embodiments, before determining the type of the component to be converted and the type of the target component, the method further includes:

[0050] In response to the category selection instruction, the component category to which the component type to be converted and the target component type belong is determined, wherein the component type to be converted and the target component type are subdivided types under the same component category.

[0051] In some of the embodiments, the major component categories are selected from: columns, beams, walls, and foundations.

[0052] When the user clicks the "Component Type Conversion" function, the system preloads a component list stored in a red-black tree data structure. The list includes major component categories (columns, beams, walls, foundations), as well as different type selections under each major component category and the corresponding multiple types that can be converted. When selecting the component type to be converted in the interface, the red-black tree data structure is used to use binary query tree child nodes to retrieve the required data from the component's own cache data to obtain the convertible component type of the component.

[0053] Figure 2 is a schematic diagram of a component category selection page according to an embodiment of the present application, such as Figure 2 As shown in the figure, the major component categories include: columns, walls, beams and foundations, and the specific component conversions under each major component category are either two-way conversions or one-way conversions, depending on whether the component drop-down type to be converted supports it. You can convert multiple buildings and floors in the current floor, or select a range to convert a small local area, or restrict the component type in a small local area to achieve accurate conversion of specific component types and component names.

[0054] Figure 3 is a schematic diagram of a building floor selection page according to an embodiment of the present application, such as Figure 3As shown, it supports conversion of multiple buildings and multiple floors in the current floor. It can also select a range for local small-scale conversion, and restrict the selection of component types and component names in a local small-scale range to achieve precise conversion of specific component types (only components with successfully selected names will be selected). The "selection range" in the device can achieve fuzzy selection and precise matching. For example, in this layer, if you only want to process beam components with the component name KL2 in a certain area, you only need to check the specific level KL2. When you click the selection range, you can select all components in the area, but only the KL2 components checked in the area will be truly responded to, that is, precise conversion. It is also possible to convert specific component types in a certain building and a certain floor, that is, fuzzy selection. The same is true for other expanded ranges to only process a certain building.

[0055] Continue to refer to Figure 1 , after determining the first component, execute step S102.

[0056] Step S102: according to a component conversion rule, convert the first component into a target component type to obtain a second component. The component conversion rule is pre-generated based on component attributes, civil engineering information and reinforcement information.

[0057] Conversion type implementation: traverse the components that need to be converted, pre-create the new components that need to be converted inside the device, and determine whether all names under the new component type are repeated with the conversion name. If there is a duplication, the system defaults to adding the suffix "_1" after the name string processing to avoid data disorder. Then read the component attribute table stored in the system before the conversion, traverse the calculation items with the same name, use the deep copy mechanism to copy the attributes of these items, and set them in the attribute table of the converted component.

[0058] Not all component types support conversion. The component types that support conversion are those that have similarities and connections based on the atlas specification. The component types that support switching in each component type drop-down are different from the component types after switching. In order to ensure the accuracy of the component information after conversion, the component categories that support conversion are compared and screened.

[0059] During the conversion, the software is divided into three parts for conversion, namely attribute information (including some basic information such as cross-section, height, reinforcement information, etc.), civil engineering information (the classification in the measurement and pricing specifications is different, and after conversion it must respond to the specifications corresponding to the component type), and reinforcement information (the basis for performing calculations in the flat drawing set is different, and each component type is distinguished).

[0060] In some embodiments, step S102 includes:

[0061] Step S1021, after converting the first component to the target component type, a model of the second component is generated based on the component information of the first component, where the component information includes attributes, cross-section, height and reinforcement.

[0062] There is no requirement for whether the component has been established after switching. The system will automatically inversely build the component model. The properties, cross-section, height and reinforcement information of the inversely built component model will continue the original component information, and there is no need to add reinforcement information to adjust the model.

[0063] Step S103, modifying the target attribute of the second component based on the target component type, and copying all attributes of the first component except the target attribute to the second component.

[0064] In some of these embodiments, the target attributes include component type, bill of materials, and reinforcement calculation settings.

[0065] During the steel bar conversion process, the attribute table of each component steel bar is read and a deep copy is made to ensure that the converted component retains the original structure and design information.

[0066] There are many types of components in the system that are similar, and the reinforcement information between different components has a one-to-one corresponding relationship. For example, column components: cast-in-place concrete columns and precast concrete columns. Each component contains different attribute information, civil engineering information, and reinforcement information, and the calculation principles executed are different, but the reinforcement information has the same or similar corresponding relationship. Another example is between beam components, between wall components, and between foundation components. Some of these component types can have completely symmetrical information, while some can only be partially symmetrical; certain conversion logic is executed on partially symmetrical components to obtain information-symmetrical converted component information. These conversion logics include common principles (including component attributes, civil engineering information, and reinforcement information) and private principles for some specific components. Common principles include:

[0067] Component properties: After executing the component type conversion, the component list of the original type is cleared, and the component is added to the component list of the corresponding type. Except for the component type, bill of materials quota, and reinforcement calculation settings, all other properties (properties existing in the new type) must be moved over intact. Other properties include but are not limited to component name, section, elevation, reinforcement information, concrete strength, reinforcement properties, basic properties, connection form and remarks.

[0068] Civil engineering information: The list quotas are executed according to the template selected by the user, and the civil engineering information of the converted component type is executed.

[0069] Rebar information: When executing component type conversion, the converted reinforcement calculation setting items are directly used. For example, after the frame beam is switched to a secondary beam, the calculation setting items of the secondary beam are displayed at the secondary beam.

[0070] When the attribute information performs component type conversion, the elevation should remain consistent (that is, to private attributes); after the component type conversion is performed, the geometric dimensions such as the component position and length in the drawing area remain unchanged, and will not cause any impact on the existing model.

[0071] Different component types that cannot be matched one-to-one need to implement the private principles of specific components.

[0072] For example, the conversion principles between beam components: frame beams, secondary beams, foundation beams, ground frame beams and foundation connecting beams can be intersected; connecting beams can be converted into secondary beams and foundation beams, but secondary beams and foundation beams cannot be converted into connecting beams; when frame beams, secondary beams, ground frame beams, foundation connecting beams, main rib beams, secondary rib beams and foundation beams are interchanged, it is necessary to swap the properties and the upper and lower steel bars (including support negative bars, etc.) at the in-situ marked locations, and a dialog box will pop up to prompt the user, with the prompt "The upper and lower steel bars will be swapped up and down, do you want to continue?" At the same time, the dialog box provides two buttons, [Yes] and [No], for the user to choose. When the user selects the [No] button, the conversion operation is considered to be returned.

[0073] Conversion principles between foundation components: Conversion between abutments and foundations only supports single foundations with the cross-sections of "conical single foundation", "single-stage single foundation" and two-stage "double-stage single foundation" to be converted into rectangular abutments; and rectangular abutments can only be converted into single foundations with the cross-section of "single-stage single foundation"; Conversion between foundations and abutments: when a single foundation is converted into abutments, the height of the abutments is the sum of the two heights (H1, H2) in the original cross-section of the single foundation; when abutments are converted into single foundations, H1 in the cross-section of the single foundation is the original height of the abutments, and H2 is the preset value (e.g., 0); Mutual tangency between abutments and piers: only supports mutual tangency between lower piers with the cross-section of "vertical side lower piers" and rectangular abutments.

[0074] Figure 4 is a schematic diagram of a conversion logic display page according to an embodiment of the present application, such as Figure 4 As shown, the conversion instructions at the bottom of the page show the conversion logic processing of some similar attributes between different components, which belongs to private conversion logic.

[0075] No matter the common principles or private principles between component types, there is no need to export or import data. You only need to complete the parameter information and 2D entity conversion between different components in the same interface. After the conversion, the component type will automatically add attributes to the converted component type, and synchronize the 2D entity to refresh the data and fully implement the new component type. The size and cross-section of the components before and after the conversion will not change, so the established model entities will not be changed, and various dependencies do not need to be re-established.

[0076] In some embodiments, the method further comprises:

[0077] Step S104, adding the second component to the component category corresponding to the component list, and deleting the first component.

[0078] After a component performs type conversion, the original component is cleared from the component list to avoid data redundancy, and the converted component is automatically added to the component list of the corresponding type.

[0079] Step S105, deleting the component category with a component quantity of 0 in the component list.

[0080] The conversion command will automatically clear components with a component quantity of 0 and update component information in a timely manner to avoid data redundancy.

[0081] In some embodiments, according to a component conversion rule, converting the first component into a target component type to obtain the second component includes:

[0082] Determine the subsidiary component associated with the first component, and obtain the association information between the first component and the subsidiary component;

[0083] The association information is added to the component data of the second component.

[0084] During the conversion process, check the accessory components associated with the component reinforcement to ensure that the properties of these accessory components are updated synchronously to avoid inconsistencies after conversion.

[0085] In some embodiments, after converting the first component into a target component type according to a component conversion rule to obtain a second component, the method further includes:

[0086] Determine whether the first component is successfully converted,

[0087] If so, delete the component data of the first component from the model system and add the component data of the second component.

[0088] If not, the error information is captured through the exception handling mechanism, and a warning message of conversion failure is generated.

[0089] After traversing all components, determine whether all conversions are successful, record the failed components and issue the exception information (optionally, the exception handling mechanism captures the error information, which includes the failure of attribute conversion or the steel bar diameter not meeting the conversion requirements). After the exception handling is completed, the user is prompted with relevant information to ensure the smoothness of subsequent operations and the integrity of the data.

[0090] If all conversions are successful, delete the old components to avoid data redundancy, store the new components and update the interface display.

[0091] Through the above steps, in response to the conversion instruction, the component type to be converted and the target component type are determined, and the first component is determined from the component list based on the component type to be converted. The component list is a tree structure list pre-built based on building information and component category information. According to the component conversion rule, the first component is converted to the target component type to obtain the second component. The component conversion rule is pre-generated based on component attributes, civil engineering information and steel bar information. The target attribute of the second component is modified based on the target component type, and all attributes of the first component except the target attribute are copied to the second component, which solves the problem of low conversion efficiency of building information model components. The components to be converted are selected through the component list, and the component information that needs to be updated to match the new component is automatically converted, and the component information that is the same as the original component is retained, thereby improving the component conversion efficiency.

[0092] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0093] This embodiment also provides a component type conversion system, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the terms "module", "unit", "subunit", etc. can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0094] Figure 5 is a structural block diagram of a component type conversion system according to an embodiment of the present application, such as Figure 5 As shown, the system includes:

[0095] The type determination module 51 is used to respond to the conversion instruction, determine the type of the component to be converted and the target component type, and determine the first component from the component list based on the type of the component to be converted. The component list is a tree structure list pre-constructed based on building information and component category information.

[0096] The conversion module 52 is used to convert the first component into a target component type according to a component conversion rule to obtain a second component. The component conversion rule is pre-generated based on component attributes, civil engineering information and reinforcement information.

[0097] The property updating module 53 is used to modify the target property of the second component based on the target component type, and copy all properties of the first component except the target property to the second component.

[0098] In some embodiments, the conversion module 52 includes:

[0099] The model inverse construction module is used to convert the first component into a target component type and then generate a model of the second component based on the component information of the first component, where the component information includes properties, sections, heights and reinforcements.

[0100] In some embodiments, the type determination module 51 includes:

[0101] The major category determination module is used to respond to the category selection instruction and determine the major category of components to which the component type to be converted and the target component type belong, wherein the component type to be converted and the target component type are subdivided types under the same major category of components.

[0102] In some of the embodiments, the major component categories are selected from: columns, beams, walls and foundations, and the foundation category is other component types except columns, beams, walls and foundations.

[0103] In some embodiments, the system further comprises:

[0104] The list updating module is used to add a second component to the component classification corresponding to the component list and delete the first component; delete the component category and / or building and / or floor with a component quantity of 0 in the component list.

[0105] In some of these embodiments, the target attributes include component type, bill of materials, and reinforcement calculation settings.

[0106] In some embodiments, the conversion module 52 includes:

[0107] An auxiliary information acquisition module, used to determine the auxiliary component associated with the first component, and acquire the association information between the first component and the auxiliary component;

[0108] The association module is used to add the association information to the component data of the second component.

[0109] In some embodiments, the conversion module 52 includes:

[0110] The judgment module is used to judge whether the first component is successfully converted. If so, the component data of the first component is deleted from the model system and the component data of the second component is added. If not, the error information is captured through the exception handling mechanism and a warning message of conversion failure is generated.

[0111] Through the above system, the type determination module 51 responds to the conversion instruction, determines the component type to be converted and the target component type, determines the first component from the component list based on the component type to be converted, and the component list is a tree structure list pre-constructed based on building information and component category information. The conversion module 52 converts the first component to the target component type according to the component conversion rule to obtain the second component. The component conversion rule is pre-generated based on component attributes, civil engineering information and steel bar information. The attribute update module 53 modifies the target attribute of the second component based on the target component type, and copies all attributes of the first component except the target attribute to the second component, thereby solving the problem of low conversion efficiency of building information model components. The component to be converted is selected through the component list, and the component information that needs to be updated to match the new component is automatically converted, and the component information that is the same as the original component is retained, thereby improving the component conversion efficiency.

[0112] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0113] This embodiment further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0114] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0115] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0116] S1, responding to a conversion instruction, determining a component type to be converted and a target component type, and determining a first component from a component list based on the component type to be converted, wherein the component list is a tree structure list pre-constructed based on building information and component category information.

[0117] S2, according to the component conversion rule, converting the first component into the target component type to obtain the second component, the component conversion rule is pre-generated based on the component attributes, civil engineering information and reinforcement information.

[0118] S3, modifying the target attribute of the second component based on the target component type, and copying all attributes of the first component except the target attribute to the second component.

[0119] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0120] In one embodiment, Figure 6 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application, such as Figure 6 As shown, an electronic device is provided, which may be a server, and its internal structure diagram may be as shown in Figure 6 As shown. The electronic device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a component type conversion method is implemented.

[0121] Those skilled in the art will understand that Figure 6 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0122] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0123] Those skilled in the art should understand that the technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0124] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A component type conversion method, characterized in that: The method comprises: In response to the conversion instruction, determine the component type to be converted and the target component type, and determine the first component from the component list based on the component type to be converted, wherein the component list is a tree structure list pre-constructed based on the building information and the component category information; According to a component conversion rule, the first component is converted into the target component type to obtain a second component, wherein the component conversion rule is pre-generated based on component attributes, civil engineering information, and reinforcement information; The target attribute of the second component is modified based on the target component type, and all attributes of the first component except the target attribute are copied to the second component.

2. The method according to claim 1, characterized in that The converting the first component to the target component type according to the component conversion rule to obtain the second component comprises: After converting the first component to the target component type, a model of the second component is generated based on component information of the first component, wherein the component information includes properties, cross-section, height, and reinforcement.

3. The method according to claim 1, characterized in that: Before determining the type of the component to be converted and the type of the target component, the method further includes: In response to the category selection instruction, the component categories to which the component type to be converted and the target component type belong are determined, wherein the component type to be converted and the target component type are subdivided types under the same component category.

4. The method according to claim 3, characterized in that The major categories of components are selected from: columns, beams, walls and foundations.

5. The method according to claim 1, characterized in that The method further comprises: Add the second component to the component classification corresponding to the component list, and delete the first component; Delete the component category with the component quantity of 0 in the component list.

6. The method according to claim 1, characterized in that The target attributes include component type, bill of materials quota, and reinforcement calculation settings.

7. The method according to claim 1, characterized in that The converting the first component to the target component type according to the component conversion rule to obtain the second component comprises: Determine an auxiliary component associated with the first component, and obtain association information between the first component and the auxiliary component; The association information is added to the component data of the second component.

8. The method according to claim 1, characterized in that After converting the first component to the target component type according to the component conversion rule to obtain the second component, the method further includes: determining whether the first component is successfully converted, If yes, delete the component data of the first component from the model system and add the component data of the second component, If not, the error information is captured through the exception handling mechanism, and a warning message of conversion failure is generated.

9. A component type conversion system, characterized in that: The system comprises: A type determination module, for responding to the conversion instruction, determining the type of the component to be converted and the target component type, and determining the first component from the component list based on the type of the component to be converted, wherein the component list is a tree structure list pre-constructed based on the building information and the component category information; A conversion module, used for converting the first component into the target component type according to a component conversion rule to obtain a second component, wherein the component conversion rule is pre-generated based on component attributes, civil engineering information and reinforcement information; The property updating module is used to modify the target property of the second component based on the target component type, and copy all properties of the first component except the target property to the second component.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the component type conversion method according to any one of claims 1 to 8 is implemented.