A method, device and equipment for automatically generating code logic for engineering quantities

By obtaining and processing the information data of component objects, creating component models and generating code logic, the complexity and difference problems of engineering quantity calculation logic are solved, and flexible and efficient metrological calculations are achieved.

CN114741083BActive Publication Date: 2024-12-13XIAMEN HYMAKE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110020165.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-07
Publication Date
2024-12-13
Estimated Expiration
2041-01-07

AI Technical Summary

Technical Problem

In the field of engineering cost calculation business, the engineering quantity calculation logic is complex and it is difficult to quickly deal with periodic changes in metrology specifications and differences in metrology objects in different regions. It is difficult for traditional software development to achieve rapid response and version management.

Method used

By obtaining the information data of component objects, creating component models and assigning unique identification numbers, defining access logic steps, compiling assembly and importing Dynamo, automatically generating code logic to support elastic and efficient metrological calculations.

Benefits of technology

It realizes the automatic selection of engineering quantity calculation logic modules based on user settings, improves the flexibility and efficiency of measurement, provides an abstract component model and a general data access logic method, and simplifies the engineering quantity calculation logic design of business analysts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0002888241750000011
    Figure HDA0002888241750000011
  • Figure HDA0002888241750000021
    Figure HDA0002888241750000021
  • Figure HDA0002888241750000022
    Figure HDA0002888241750000022
Patent Text Reader

Abstract

The present invention discloses a method for automatically generating code logic for engineering quantity, the method comprising: obtaining information data of a component object; creating a component model based on the information data of the component object, and assigning a unique component identification number to each component object; defining the access logic steps of the component model; compiling the component model and the access logic steps to obtain an assembly; importing the assembly into Dynamo, and automatically generating code logic through Dynamo. The corresponding engineering quantity calculation logic module can be automatically selected according to the user's settings, thereby realizing more flexible and efficient measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method, device and equipment for automatically generating code logic from engineering quantities. Background Art

[0002] In the field of engineering cost calculation, the engineering quantity calculation logic is complex and changeable. This complexity and changeability is mainly reflected in two aspects: first, the measurement specifications change periodically; second, there are many types of measurement objects and there are differences in different regions. Therefore, the engineering quantity calculation software needs to maintain support for specification updates while also taking into account the calculation differences between different regions and different measurement objects. If traditional software development implementation methods are used, it is difficult to respond to these changes quickly, and it also poses a challenge to software version management. Summary of the invention

[0003] In view of this, the purpose of the present invention is to propose a method, device and equipment for automatically generating code logic for engineering quantities, which can automatically select the corresponding engineering quantity calculation logic module according to the user's settings, so as to achieve more flexible and efficient measurement.

[0004] To achieve the above object, the present invention provides a method for automatically generating code logic from engineering quantities, the method comprising:

[0005] Get the information data of the component object;

[0006] Creating a component model based on the information data of the component object, and assigning a unique component identification number to each of the component objects;

[0007] Defining access logic steps of the component model;

[0008] Compiling the component model and the access logic step to obtain an assembly;

[0009] The assembly is imported into Dynamo, and the code logic is automatically generated by Dynamo.

[0010] Preferably, the component model includes information expression of the component objects themselves and spatial relationships between the component objects.

[0011] Preferably, the information expression of the component object itself includes a geometric information structure and a non-geometric information structure; wherein the geometric information structure includes a data structure represented in a Mesh format; and the non-geometric information structure includes attribute information of the component object and parameter information of a variable parameter object required for UI interaction.

[0012] Preferably, the step of defining the access logic of the component model further comprises:

[0013] The access logic steps for the component model's own information are defined, and the access logic steps for the project setting information are defined.

[0014] Preferably, the step of defining the access logic of the component model's own information further includes:

[0015] Access the parameter information of the component object through object GetParamValue(string name), where name represents the name of the parameter information to be accessed; and

[0016] The spatial relationship of the component object is accessed through string GetIntersectCom (string type), wherein type represents the type of the specified intersecting component object.

[0017] Preferably, the step of defining access logic of engineering setting information further comprises:

[0018] The access interface of the engineering setting information is defined by object GetDocumentSettingValue(string code, string[]params), wherein code represents the name of the engineering setting information to be accessed, and params represents the detailed parameter array of the engineering setting information to be accessed.

[0019] To achieve the above object, the present invention also provides a device for automatically generating code logic from engineering quantities, the device comprising:

[0020] An acquisition unit, used for acquiring information data of a component object;

[0021] A creation unit, used to create a component model based on the information data of the component object, and assign a unique component identification number to each component object;

[0022] A definition unit, used to define the access logic steps of the component model;

[0023] A compiling unit, used for compiling the component model and the access logic step to obtain an assembly;

[0024] A generation unit is used to import the assembly into Dynamo and automatically generate code logic through Dynamo.

[0025] Preferably, the component model includes information expression of the component objects themselves and spatial relationships between the component objects.

[0026] In order to achieve the above-mentioned purpose, the present invention further proposes a computer device for automatically generating code logic from engineering quantities, comprising a processor, a memory and a computer program stored in the memory, wherein the computer program can be executed by the processor to implement a method for automatically generating code logic from engineering quantities as described in the above-mentioned embodiment.

[0027] In order to achieve the above-mentioned purpose, the present invention further proposes a computer-readable storage medium, characterized in that the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute to implement a method for automatically generating code logic for engineering quantities as described in the above-mentioned embodiment.

[0028] Beneficial effects:

[0029] The above scheme obtains the information data of the component object; creates a component model based on the information data of the component object, and assigns a unique component identification number to each component object; defines the access logic steps of the component model; compiles the component model and the access logic steps to obtain an assembly; imports the assembly into Dynamo, and automatically generates code logic through Dynamo. The corresponding engineering quantity calculation logic module can be automatically selected according to the user's settings, thereby achieving more flexible and efficient measurement.

[0030] In the above scheme, the component model includes the information expression of the component object itself and the spatial relationship between the component objects. The above design of high cohesion and low coupling forms an abstract component model, which can provide a data basis for subsequent visual programming.

[0031] In the above scheme, the step of defining the access logic of the component model further includes: the step of defining the access logic of the information of the component model itself, and the step of defining the access logic of the engineering setting information. By defining a set of general data access logic methods, an operation method is provided for subsequent visual programming, so that business analysts can perform engineering quantity calculation logic design. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 A flowchart of a method for automatically generating code logic from engineering quantities provided by an embodiment of the present invention.

[0034] Figure 2 This is a schematic structural diagram of a cast-in-place slab component model proposed in an embodiment of the present invention.

[0035] Figure 3 A schematic diagram of the structure of a device for automatically generating code logic from engineering quantities provided by an embodiment of the present invention.

[0036] The realization of the purpose, functional features and advantages of the invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. 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. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the invention claimed for protection, but merely represents the selected embodiments of 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.

[0038] The content of the present invention is described in detail below with reference to embodiments.

[0039] The present invention proposes a method for automatically generating code logic for engineering quantities, which can automatically select corresponding engineering quantity calculation logic modules according to user settings, thereby achieving more flexible and efficient measurement.

[0040] Reference Figure 1 The figure is a flow chart of a method for automatically generating code logic from engineering quantities provided by an embodiment of the present invention.

[0041] In this embodiment, the method includes:

[0042] S11, obtaining information data of the component object.

[0043] S12, creating a component model based on the information data of the component object, and assigning a unique component identification number to each of the component objects.

[0044] Furthermore, the component model includes information expression of the component object itself and the spatial relationship between the component objects.

[0045] The spatial relationship represents the geometric spatial intersection relationship between component objects. For example, the component objects intersecting with the column component object usually include beam and plate component objects, which are associated by storing the IDs of the intersecting component objects in a list.

[0046] Furthermore, the information expression of the component object itself includes a geometric information structure and a non-geometric information structure; wherein the geometric information structure includes a data structure represented in a Mesh format; and the non-geometric information structure includes attribute information of the component object and parameter information of a variable parameter object required for UI interaction.

[0047] In this embodiment, the geometric information structure includes a data structure represented by a Mesh format (i.e., a triangulated mesh surface), which mainly represents the shape of the component model. In addition, some special component objects may also include some custom geometric data structures in addition to Mesh format data, such as a component object of a surface contour ring (a series of continuous point columns), so as to perform necessary calculations related to the engineering quantity of the component object in the subsequent process.

[0048] The non-geometric information structure includes the attribute information and parameter information of the component object. The attribute information includes at least the floor, major, major category, minor category and type, etc.; the parameter information refers to the variable parameter object that the user needs to lock in the UI interaction in the subsequent compilation. The parameter information of component objects of different minor categories will be different. Among them,

[0049] (1) Floor refers to the floor number of a building, such as 1st floor;

[0050] (2) Professional refers to the professional category described in the measurement specifications, such as: strong electricity, weak points, fire protection, etc.;

[0051] (3) Major categories refer to built-in business model categories, such as columns, beams, plates, etc.;

[0052] (4) Subcategories refer to specific business model categories under a major category, such as frame columns and structural columns under the major category of columns. A major category may contain multiple subcategories, depending on the actual business logic;

[0053] (5) Type refers to the fact that the component objects under a subclass may belong to different floors, different size parameters or different functions, and thus belong to different component object types. For example, two rectangular frame columns belong to the same frame column subclass, but one has a cross-sectional size of 200x300 and the other has a cross-sectional size of 200x400. In this case, they belong to different objects in terms of type classification.

[0054] like Figure 2The figure shows the structural diagram of the cast-in-place slab component model. The component model (CM) has the major of "structure", the major category of "slab", the minor category of "cast-in-place slab", the floor of "1st floor", the type information of "slab-200mm", and the rest is the attribute information or parameter information contained in the component model, which is also the main variable that can be used in the subsequent visual logic design.

[0055] The geometric information structure and non-geometric information structure of the component model are associated through a unique component identification number ID, that is, the geometric information structure and non-geometric information structure of the component object can be obtained after obtaining the current component object information access interface through the unique component identification number ID.

[0056] S13, defining the access logic steps of the component model.

[0057] Furthermore, the step of defining the access logic of the component model further includes:

[0058] The access logic steps for the component model's own information are defined, and the access logic steps for the project setting information are defined.

[0059] Furthermore, the step of defining the access logic of the component model's own information further includes:

[0060] Access the parameter information of the component object through object GetParamValue(string name), where name represents the name of the parameter information to be accessed; and

[0061] The spatial relationship of the component object is accessed through string GetIntersectCom (string type), wherein type represents the type of the specified intersecting component object.

[0062] Furthermore, the step of defining access logic of engineering setting information further includes:

[0063] The access interface of the engineering setting information is defined by object GetDocumentSettingValue(string code, string[]params), wherein code represents the name of the engineering setting information to be accessed, and params represents the detailed parameter array of the engineering setting information to be accessed.

[0064] In this embodiment, during the engineering quantity calculation process, data access mainly includes component model information and engineering setting information. Among them, in the component model information access, in addition to the attributes of the component model information itself, parameter information and spatial relationships need to be obtained through methods, specifically:

[0065] Parameter information access method: object GetParamValue(string name); the parameter name represents the name of the information to be accessed, which can be geometric or non-geometric information.

[0066] Spatial relationship access method: string GetIntersectCom(string type); the parameter type represents the specified intersecting component type, because intersecting components may exist in multiple types.

[0067] The project setting information access interface is: object GetDocumentSettingValue(string code, string[]params); where code: the name of the project setting information to be accessed; params: the detailed parameter array of the project setting information to be accessed. To access other project setting data, the order of params elements is agreed to be setting name, setting type, setting information group. If the corresponding parameters are not needed, leave it empty or do not write into the array.

[0068] For example, to access data directly belonging to the project object, such as "project name" information, directly call GetDocumentSettingValue("project name", new string[0]), and params is an empty array.

[0069] For example, to access the data of a calculation setting item of "Frame Beam" under "Calculation Settings" of the engineering object, you can call GetDocumentSettingValue("Setting Item Name", new string[]{"Calculation Settings", "Frame Beam", "Group Name"}), where the elements in params represent the setting name, setting type, and setting information group corresponding to the setting item in turn.

[0070] S14, compile the component model and the access logic step to obtain an assembly.

[0071] S15, importing the assembly into Dynamo, and automatically generating code logic through Dynamo.

[0072] In this embodiment, C# is used to implement and compile into several assemblies, and then the compiled assemblies are imported into Dynamo through the Zerotouch technology provided by Dynamo. Dynamo will automatically generate visual "nodes" based on the assembly, and each type of node corresponds to the data type and operation method of the assembly to achieve visual logic design. The generated logic code can be directly run by external programs calling related interfaces, so that the corresponding engineering quantity calculation logic module can be automatically selected according to the user's settings, thereby achieving more flexible and efficient measurement.

[0073] The present invention proposes a device for automatically generating code logic for engineering quantities, which can automatically select corresponding engineering quantity calculation logic modules according to user settings, thereby achieving more flexible and efficient measurement.

[0074] Reference Figure 3 FIG. 1 is a schematic diagram of the structure of a device for automatically generating code logic from engineering quantities provided by an embodiment of the present invention.

[0075] In this embodiment, the device 30 includes:

[0076] The acquisition unit 31 is used to acquire information data of the component object.

[0077] The creation unit 32 is used to create a component model based on the information data of the component object and assign a unique component identification number to each component object.

[0078] Furthermore, the component model includes information expression of the component object itself and the spatial relationship between the component objects.

[0079] The spatial relationship represents the geometric spatial intersection relationship between component objects. For example, the component objects intersecting with the column component object usually include beam and plate component objects, which are associated by storing the IDs of the intersecting component objects in a list.

[0080] Furthermore, the information expression of the component object itself includes a geometric information structure and a non-geometric information structure; wherein the geometric information structure includes a data structure represented in a Mesh format; and the non-geometric information structure includes attribute information of the component object and parameter information of a variable parameter object required for UI interaction.

[0081] The definition unit 33 is used to define the access logic steps of the component model.

[0082] Furthermore, the step of defining the access logic of the component model further includes:

[0083] The access logic steps for the component model's own information are defined, and the access logic steps for the project setting information are defined.

[0084] Furthermore, the step of defining the access logic of the component model's own information further includes:

[0085] Access the parameter information of the component object through object GetParamValue(string name), where name represents the name of the parameter information to be accessed; and

[0086] The spatial relationship of the component object is accessed through string GetIntersectCom (string type), wherein type represents the type of the specified intersecting component object.

[0087] Furthermore, the step of defining access logic of engineering setting information further includes:

[0088] The access interface of the engineering setting information is defined by object GetDocumentSettingValue(string code, string[]params), wherein code represents the name of the engineering setting information to be accessed, and params represents the detailed parameter array of the engineering setting information to be accessed.

[0089] The compiling unit 34 is used to compile the component model and the access logic step to obtain an assembly.

[0090] The generating unit 35 is used to import the assembly into Dynamo and automatically generate code logic through Dynamo.

[0091] Each unit module of the device 30 can respectively execute the corresponding steps in the above method embodiment, so each unit module will not be described in detail here. Please refer to the description of the above corresponding steps for details.

[0092] An embodiment of the present invention also provides a device for automatically generating code logic from engineering quantities, comprising a processor, a memory, and a computer program stored in the memory, wherein the computer program can be executed by the processor to implement the method for automatically generating code logic from engineering quantities as described in the above embodiment.

[0093] An embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the method for automatically generating code logic for engineering quantities as described in the above embodiment.

[0094] Exemplarily, the computer program may be divided into one or more units, which are stored in the memory and executed by the processor to complete the present invention. The one or more units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the device for automatically generating code logic from engineering quantities.

[0095] The device for automatically generating code logic for engineering quantities may include but is not limited to a processor and a memory. A person skilled in the art may understand that the schematic diagram is only an example of a device for automatically generating code logic for engineering quantities, and does not constitute a limitation on the device for automatically generating code logic for engineering quantities, and may include more or fewer components than shown in the diagram, or a combination of certain components, or different components, for example, the device for automatically generating code logic for engineering quantities may also include input and output devices, network access devices, buses, etc.

[0096] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The control center of the device for automatically generating code logic of the engineering quantity uses various interfaces and lines to connect various parts of the device for automatically generating code logic of the engineering quantity.

[0097] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the device for automatically generating code logic of the engineering quantity by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0098] Wherein, if the device integrated unit of the engineering quantity automatic code generation logic is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.

[0099] The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0100] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0101] The implementation schemes in the above embodiments can be further combined or replaced, and the embodiments are only descriptions of the preferred embodiments of the present invention, and do not limit the concept and scope of the present invention. Without departing from the design concept of the present invention, various changes and improvements made to the technical solutions of the present invention by professional and technical personnel in this field all belong to the protection scope of the present invention.

Claims

1. A method for automatically generating code logic from engineering quantities, characterized in that: The method comprises: Get information data of component objects; Creating a component model based on the information data of the component object, and assigning a unique component identification number to each of the component objects; Defining access logic steps of the component model; Compiling the component model and the access logic step to obtain an assembly; Import the assembly into Dynamo, and automatically generate code logic through Dynamo; The component model includes information expression of the component object itself and spatial relationship between the component objects; The information expression of the component object itself includes a geometric information structure and a non-geometric information structure; wherein the geometric information structure includes a data structure represented in Mesh format; the non-geometric information structure includes attribute information of the component object and parameter information of a variable parameter object required for UI interaction; The geometric information structure and non-geometric information structure of the component model are associated through a unique component identification number ID, that is, the geometric information structure and non-geometric information structure of the component object are obtained after obtaining the current component object information access interface through the unique component identification number ID; The attribute information includes at least floor, major, major category, minor category and type; parameter information refers to the variable parameter object that the user needs to lock in the UI interaction in the subsequent compilation. The parameter information of component objects of different minor categories will be different; among them, (1) Floor refers to the floor number of a building; (2) Professional refers to the professional scope described in the measurement specifications; (3) Major categories refer to built-in business model categories, such as columns, beams, and slabs; (4) Subcategories refer to specific business model categories under a major category, such as frame columns and structural columns under the major category of columns. A major category contains multiple subcategories; (5) Type refers to the fact that the component objects under the subclass may belong to different floors, different size parameters or different functions, and thus belong to different component object types. For example, two rectangular frame columns belong to the same frame column subclass, but one has a cross-sectional size of 200x300 and the other has a cross-sectional size of 200x400. In this case, they belong to different objects in terms of type classification. The step of defining the access logic of the component model further comprises: Defining the logical steps for accessing the information of the component model itself, and defining the logical steps for accessing the engineering setting information; The step of defining the access logic of the component model's own information further includes: Access the parameter information of the component object through object GetParamValue(string name), where name represents the name of the parameter information to be accessed; and Define access to the spatial relationship of the component object through string GetIntersectCom (string type), where type represents the type of the specified intersecting component object; The step of defining access logic of engineering setting information further includes: The access interface of the engineering setting information is defined by object GetDocumentSettingValue(string code, string[]params), wherein code represents the name of the engineering setting information to be accessed, and params represents the detailed parameter array of the engineering setting information to be accessed.

2. A device for automatically generating code logic from engineering quantities, characterized in that: The device comprises: An acquisition unit, used for acquiring information data of a component object; A creation unit, used to create a component model based on the information data of the component object, and assign a unique component identification number to each component object; A definition unit, used to define the access logic steps of the component model; A compiling unit, used for compiling the component model and the access logic step to obtain an assembly; A generation unit, used for importing the assembly into Dynamo, and automatically generating code logic through Dynamo; The component model includes information expression of the component object itself and spatial relationship between the component objects; The information expression of the component object itself includes a geometric information structure and a non-geometric information structure; wherein the geometric information structure includes a data structure represented in Mesh format; the non-geometric information structure includes attribute information of the component object and parameter information of a variable parameter object required for UI interaction; The geometric information structure and non-geometric information structure of the component model are associated through a unique component identification number ID, that is, the geometric information structure and non-geometric information structure of the component object are obtained after obtaining the current component object information access interface through the unique component identification number ID; The attribute information includes at least floor, major, major category, minor category and type; parameter information refers to the variable parameter object that the user needs to lock in the UI interaction in the subsequent compilation. The parameter information of component objects of different minor categories will be different; among them, (1) Floor refers to the floor number of a building; (2) Professional refers to the professional scope described in the measurement specifications; (3) Major categories refer to built-in business model categories, such as columns, beams, and slabs; (4) Subcategories refer to specific business model categories under a major category, such as frame columns and structural columns under the major category of columns. A major category contains multiple subcategories; (5) Type refers to the fact that the component objects under the subclass may belong to different floors, different size parameters or different functions, and thus belong to different component object types. For example, two rectangular frame columns belong to the same frame column subclass, but one has a cross-sectional size of 200x300 and the other has a cross-sectional size of 200x400. In this case, they belong to different objects in terms of type classification. The step of defining the access logic of the component model further comprises: Defining the logical steps for accessing the information of the component model itself, and defining the logical steps for accessing the engineering setting information; The step of defining the access logic of the component model's own information further includes: Access the parameter information of the component object through object GetParamValue(string name), where name represents the name of the parameter information to be accessed; and Define access to the spatial relationship of the component object through string GetIntersectCom (string type), where type represents the type of the specified intersecting component object; The step of defining access logic of engineering setting information further includes: The access interface of the engineering setting information is defined by object GetDocumentSettingValue(string code, string[]params), wherein code represents the name of the engineering setting information to be accessed, and params represents the detailed parameter array of the engineering setting information to be accessed.

3. A computer device for automatically generating code logic from engineering quantities, characterized in that: The method comprises at least a processor, a memory and a computer program stored in the memory, wherein the computer program can be executed by the processor to implement the method for automatically generating code logic from engineering quantity as claimed in claim 1.

4. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for automatically generating code logic for engineering quantities as claimed in claim 1.