REVIT-based method for adding unique code to virtual factory object

Through feature point definition and the use of RevitAPI, efficient and readable unique encodings are generated, which solves the problem of difficult distinction between factory object encoding types in the prior art and poor readability, and achieves high accuracy and efficient encoding generation, improving Work efficiency.

CN119312775APending Publication Date: 2025-01-14CHINA NON-FERROUS METALS PROCESSING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411417772.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

When existing three-dimensional design software uniquely encodes factory objects, the type classification is extensive, and it is impossible to effectively distinguish industry characteristics. The GUID form used is poorly readable, making it difficult to accurately index in subsequent data applications.

Method used

Through feature point definition, factory object attributes are deconstructed, combined to form a unique encoding structure, and database query and model encoding assignment are implemented using RevitAPI and C# programs to generate efficient and readable unique encodings.

Benefits of technology

It breaks through the software's limitations on model object types, achieves high accuracy and efficient unique encoding, has strong readability in encoding, can quickly determine the basic information of factory objects, and greatly improves work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119312775A_ABST
    Figure CN119312775A_ABST
Patent Text Reader

Abstract

The invention discloses a method for adding a unique code to a virtual factory object based on REVIT, and the method comprises the following steps: S1) deconstructing the factory object: deconstructing the factory object according to the industrial characteristics, carding the attributes of the factory object, and abstracting feature points; s2) feature point combination: extracting part of feature points from the general feature points for combination to form a feature point composition structure with a unique code, and ensuring that the composition structure is suitable for all factory objects; s3) establishing a coding standard; according to the method, the design is reasonable, the universality is high, the limitation of software on the type of the model object is broken through through feature point definition, the database can be inquired according to the self-defined object type for automatic assignment, the efficiency and accuracy are high, the code readability is high, the basic information of the factory object can be quickly determined through code reverse disassembly, and the working efficiency is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of engineering design digitization, and in particular to a method for adding a unique code to a virtual factory object based on REVIT. Background Art

[0002] In the process of engineering design, there will be a large number of factory objects of the same type. However, as individual objects, each independent individual must have different properties from other individuals, such as being in different locations, playing different functions, and having different maintenance plans. When designing a digital factory, it is necessary to uniquely encode the factory objects so that they can be uniquely indexed in subsequent data applications. In most 3D design software, the classification of model objects is relatively rough and cannot be matched one-to-one with industry factory objects. They need to be reclassified according to industry characteristics. In addition, independent factory objects have many attributes, and the software generally uses the less readable GUID form for unique encoding. Based on this, we propose a method based on REVIT to add unique encoding to virtual factory objects. Summary of the invention

[0003] The technical problem to be solved by the present invention is to overcome the existing defects and provide a method for adding unique coding to virtual factory objects based on REVIT. Through the definition of feature points, the type restrictions of model objects on the software are broken through. The database can be queried and automatically assigned according to the customized object category. It is efficient and accurate, and the coding readability is strong, which can effectively solve the problems in the background technology.

[0004] To achieve the above object, the present invention provides the following technical solution: a method for adding a unique code to a virtual factory object based on REVIT, comprising the following steps: S1) Factory object deconstruction: Deconstruct factory objects according to industry characteristics, sort out factory object attributes and abstract feature points; S2) Feature point combination: extract some feature points from the common feature points and combine them to form a uniquely encoded feature point composition structure to ensure that the composition structure is applicable to all factory objects; S3) Establish coding standards: Encode the feature points and establish coding standards. Enumerate and encode the static feature points (function identifiers and object identifiers) and store them in the form of a database. Dynamic feature points (project identifiers, location identifiers) are entered in the specific engineering design process according to the coding principles. S4) Unique coding of engineering objects: Create a Revit work template, preset feature point identification fields for factory objects in the template, develop a C# program based on Revit API, realize the reading and calling of the database and the assignment, combination and generation of coding for Revit model component; S5) Establish 3D model: Create Revit model based on the working sample and input the attribute values ​​of feature points according to the specific project; S6) Automatically generate object code groups: Run the C# program, query the database for the static feature point fields, retrieve and assign values, and then automatically splice them with the dynamic feature points to form the engineering object group code, and then automatically remove duplicates and sort them within the group to automatically form a unique code.

[0005] As a preferred technical solution of the present invention, the step S1) specifically includes the following steps: first, from the dimensions of engineering construction and post-management, the engineering objects involved in the factory construction in the industry are enumerated, and the attributes of the engineering objects are preliminarily sorted out, such as name, size, installation location, cost, installation unit, etc. The attributes are abstractly grouped to form different attribute groups such as identity identification, location identification, function identification, etc., as feature points of the engineering objects.

[0006] As a preferred technical solution of the present invention, in step S2), the characteristic points are combined in the form of engineering identification + process / function identification + location identification + object identification + serial code.

[0007] As a preferred technical solution of the present invention, in step S2), the project identification uses 2 digits, the function identification uses 3 letters, the location identification uses 4 digits (2 digits each in the horizontal and vertical directions), the object identification uses 3 letters, and the serial code uses 3 digits.

[0008] As a preferred technical solution of the present invention, in the step S3), for the static feature point function identification and object identification, three-level coding is performed using the principle of line division. The lowest level represents the specific process / function or factory object itself, represented by three letters. The upper level summarizes the characteristics of the three levels, represented by two letters (the first two digits of the three-level code), and the upper level summarizes the characteristics of the second level, represented by one letter (the first digit of the three-level code).

[0009] As a preferred technical solution of the present invention, in the step S3), in the process of summarizing and grading the feature points, it is ensured that the elements at each level only belong to the previous level without any overlap, and the third-level code can be directly traced back to the unique first-level code; at the same time, the coding elements at each level are controlled at about 20, and a certain amount of redundant space is reserved to facilitate the subsequent coding expansion of new factory objects.

[0010] As a preferred technical solution of the present invention, in the step S4), in the identification field presets related to the coding, the project identification (one field, 2 digits) and the location identification (2 independent fields, 2 digits each) are only preset fields, without writing values, and are entered in the actual project; for the function identification and object identification, the third-level classification name field and the code field can be preset in the template (and can also be modified in the project), and the first-level and second-level classification name fields and code fields are only preset, without preset values, and are automatically written back using the program later.

[0011] As a preferred technical solution of the present invention, the steps S1), S2), S3), S4) are the basis of steps S5), S6) and subsequent steps, and only one standardized customization is required, and other subsequent projects can directly quote and skip the above steps.

[0012] As a preferred technical solution of the present invention, in the step S6), the program is run to match the process / function identification and object identification in the project from the database, return the names of the first, second and third level codes and classification identification, write them back into the preset fields of the Revit components, generate the object group code, and then automatically deduplicate and sort them within the group to generate a serial code, and finally combine them to form a unique code for the corresponding device.

[0013] As a preferred technical solution of the present invention, in the step S6), the program generates codes for all components or part of the components in the current project as needed; in the process of rewriting the codes and grouping the codes, the program automatically verifies the attribute values ​​of key fields. If the correct process / function identifier, object identifier, or the attribute values ​​of the project identifier and location identifier do not meet the preset coding rules, the incorrectly encoded component ID will be automatically returned. Clicking the component ID can highlight it in the Revit project. After the modification is correct, the program can be rerun until a unique code is generated after it is completely correct.

[0014] Compared with the prior art, the beneficial effects of the present invention are: reasonable design, strong versatility, breaking through the software's restrictions on model object types through feature point definition, and automatic assignment of values ​​based on customized object category query database, high efficiency and high accuracy, strong coding readability, and the basic information of factory objects can be quickly determined through reverse disassembly of the code, greatly improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0016] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0017] See also Figure 1 The present invention provides a technical solution: a method for adding a unique code to a virtual factory object based on REVIT, the specific steps are: S1: According to the characteristics of the industry, deconstruct the factory objects, sort out the factory object attributes and abstract the feature points.

[0018] First, starting from the dimensions of engineering construction and post-management, a comprehensive enumeration of various engineering objects involved in factory construction in the industry is carried out. These objects may include but are not limited to building structures, mechanical equipment, electrical equipment, piping systems, etc. For each engineering object, its attributes need to be initially sorted out, such as name, size, installation location, cost, installation unit, etc. Based on these attributes, they are abstractly grouped to form different attribute sets, such as identity identification (for unique identification), location identification (describing its positioning in space), function identification (reflecting its role in the production process), etc. Such grouping helps us better understand and manage these engineering objects.

[0019] S2: Combine common feature points to form a uniquely coded feature point composition structure, ensuring that the composition structure is applicable to all factory objects; In order to ensure the uniformity and scalability of the coding system, a standardized feature point combination method is designed to construct a unique coding system. The code consists of multiple parts, such as: engineering identification + process / function identification + location identification + object identification + serial number. Specifically, it can be set as follows: The project identification uses two digits to indicate a specific project or phase; The function identifier uses three letters to indicate the specific process or function type; The location identifier uses 4 digits to represent the precise location information, of which the plane coordinates and vertical coordinates each occupy two digits; The object identifier also uses three letters to indicate the specific type of engineering object; The serial number is a three-digit serial number used to distinguish different individuals of the same type of object.

[0020] The advantage of this combination is that it maintains the uniqueness of the code, makes it easier to reversely decompose the code, improves the readability of the code, and increases the operational convenience and transparency of the entire system.

[0021] S3: Encode the feature points, establish coding standards, enumerate and encode the static feature points (function identifiers and object identifiers) and store them in the form of a database. The dynamic feature points (project identifiers, location identifiers) are entered according to the coding principles during the specific engineering design process.

[0022] For static feature points, such as function identifiers and object identifiers, a complete set of coding rules is determined in advance, and three-level coding is performed through line division. Each level represents a more specific classification, which can not only support all currently known categories, but also leave enough room for expansion for new types that may appear in the future.

[0023] The lowest level represents the specific process / function or factory object itself, represented by three letters. The level above it summarizes the characteristics of the three levels, represented by two letters (the first two digits of the three-level code), and the level above it summarizes the characteristics of the second level, represented by one letter (the first digit of the three-level code).

[0024] In the process of summarizing and grading the feature points, it is ensured that the elements at each level belong only to the previous level, and there is no overlap. The third-level code can be directly traced back to the unique first-level code. At the same time, the number of coding elements at each level is controlled at around 20, and a certain amount of redundant space is reserved to facilitate the subsequent coding expansion of new factory objects.

[0025] For example, a pump used in a clean circulation return water system has its functional identification graded as follows: S: water supply and drainage; SJ: clean circulating water system; SJH: clean circulating return water; Object identification is classified as follows: S: public auxiliary equipment; SD: power equipment; SDB: pump.

[0026] The compiled codes will be saved in the form of a database to facilitate subsequent program calls.

[0027] Project identification and location identification are attributes directly related to specific projects. Only coding principles are established and entered into specific projects.

[0028] S4: Create a Revit work template and preset feature point identification fields in the template; develop a C# program based on the Revit API to implement database reading and code assignment to Revit model component components and generate codes.

[0029] In the identification field presets related to coding, the project identification (one field, 2 digits) and location identification (2 independent fields, 2 digits each) only have preset fields, without writing values, and are entered in the actual project; for the function identification and object identification, the third-level classification name field and code field can be preset in the template (and can also be modified in the project), and the first- and second-level classification name fields and code fields are only preset, without preset values, and are automatically written back later using the program.

[0030] Establishing hierarchical coding can facilitate subsequent hierarchical screening and filtering of engineering objects.

[0031] Developing a C# program based on RevitAPI can realize the reading and calling of the database and the assignment and generation of codes for Revit model component codes.

[0032] The above steps are the basis for subsequent steps. You only need to perform standardized customization once. Other subsequent projects can directly reference them and skip the above steps.

[0033] S5: Create a 3D model of a specific engineering design based on the preset working template and enter the basic attributes of relevant feature points.

[0034] The following is an explanation using a pump in a project as an example.

[0035] Enter project ID-01, process / function ID-net circulation return water (preset in the work template, no need to enter manually), location ID-0102, object ID-pump (preset in the work template, no need to enter manually).

[0036] S6: Run the program to match the process / function identification and object identification in the project from the database, return the names of the first, second and third level codes and classification identification, write them back into the preset fields of the Revit components, and generate the 01SJH0101SDB object group code, then automatically remove duplicates and sort them within the group to generate the serial code 003, and finally combine them to form the unique code 01SJH0101SDB003, which means that in this project, it is the third pump in the net circulation return water system of the 2nd floor, zone 1 of the 01 sub-item.

[0037] The program can generate codes for all components or part of the components in the current project as needed. During the process of rewriting and grouping codes, the program will automatically check the attribute values ​​of key fields. If the correct process / function identifier, object identifier, or the attribute value of the project identifier or location identifier does not meet the preset coding rules, the incorrectly encoded component ID will be automatically returned. Click the component ID to highlight it in the Revit project. After the modification is correct, you can rerun the program until it is completely correct and a unique code is generated.

[0038] The same method applies to other engineering objects.

[0039] The undisclosed parts in the present invention are all prior art, and their specific structures, materials and working principles are not described in detail. Although the embodiments of the present invention have been shown and described, it is understood by those skilled in the art that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of the present invention, and the scope of the present invention is defined by the attached claims and their equivalents.

Claims

1. A method for adding a unique code to a virtual factory object based on REVIT, characterized in that: The following steps are involved: S1) Factory object deconstruction: According to the characteristics of the industry, the factory objects are deconstructed, the factory object attributes are sorted out and the feature points are abstracted; S2) Feature point combination: extract some feature points from the common feature points and combine them to form a uniquely encoded feature point composition structure to ensure that the composition structure is applicable to all factory objects; S3) Establish coding standards: Encode the feature points and establish coding standards. Enumerate and encode the static feature points (function identifiers and object identifiers) and store them in the form of a database. Dynamic feature points (project identifiers, location identifiers) are entered in the specific engineering design process according to the coding principles. S4) Unique coding of engineering objects: Create a Revit work template, preset feature point identification fields for factory objects in the template, develop a C# program based on Revit API, realize the reading and calling of the database and the assignment, combination and generation of coding for Revit model component; S5) Establish 3D model: Create Revit model based on the working sample and input the attribute values ​​of feature points according to the specific project; S6) Automatically generate object code groups: Run the C# program, query the database for the static feature point fields, retrieve and assign values, and then automatically splice them with the dynamic feature points to form the engineering object group code, and then automatically remove duplicates and sort them within the group to automatically form a unique code.

2. A method for adding a unique code to a virtual factory object based on REVIT according to claim 1, characterized in that: The step S1) specifically includes the following steps: first, from the dimensions of engineering construction and post-management, the engineering objects involved in the factory construction in the industry are enumerated, and the attributes of the engineering objects are preliminarily sorted out, such as name, size, installation location, cost, installation unit, etc. The attributes are abstractly grouped to form different attribute groups such as identity identification, location identification, function identification, etc., as feature points of the engineering objects.

3. A method for adding a unique code to a virtual factory object based on REVIT according to claim 1, characterized in that: In the step S2), the characteristic points are combined in the form of engineering identification + process / function identification + location identification + object identification + serial number.

4. A method for adding a unique code to a virtual factory object based on REVIT according to claim 3, characterized in that: In the step S2), the project identification uses 2 digits, the function identification uses 3 letters, the location identification uses 4 digits (2 digits each for the horizontal and vertical directions), the object identification uses 3 letters, and the serial number uses 3 digits.

5. The method for adding a unique code to a virtual factory object based on REVIT according to claim 1, characterized in that: In the step S3), for the static feature point function identification and object identification, three-level coding is performed using the principle of line division. The lowest level represents the specific process / function or factory object itself, which is represented by three letters. The upper level summarizes the characteristics of the three levels and is represented by two letters (the first two digits of the three-level code). The upper level summarizes the characteristics of the second level and is represented by one letter (the first digit of the three-level code).

6. A method for adding a unique code to a virtual factory object based on REVIT according to claim 5, characterized in that: In the step S3), in the process of summarizing and grading the feature points, it is ensured that the elements at each level only belong to the previous level without any overlap, and the third-level code can be directly traced back to the unique first-level code; at the same time, the number of coding elements at each level is controlled to be around 20, and a certain amount of redundant space is reserved to facilitate the subsequent coding expansion of new factory objects.

7. A method for adding a unique code to a virtual factory object based on REVIT according to claim 1, characterized in that: In the step S4), in the identification field presets related to the coding, the project identification (one field, 2 digits) and the location identification (2 independent fields, 2 digits each) are only preset fields, without writing values, and are entered in the actual project; the function identification and object identification, their third-level classification name fields and code fields can be preset in the template (and can also be modified in the project), the first-level and second-level classification name fields and code fields are only preset, without preset values, and are automatically written back later using the program.

8. The method for adding a unique code to a virtual factory object based on REVIT according to claim 1, characterized in that: The steps S1), S2), S3), and S4) are the basis of steps S5), S6) and subsequent steps. Only one standardized customization is required, and other subsequent projects can directly reference them and skip the above steps.

9. The method for adding a unique code to a virtual factory object based on REVIT according to claim 1, characterized in that: In the step S6), the program is run to match the process / function identification and object identification in the project from the database, and the first, second and third level codes and the names of the classification identification are returned, which are written back into the preset fields of the Revit components, and the object group code is generated, and then the duplicates are automatically sorted within the group to generate a serial code, and finally combined to form a unique code for the corresponding device.

10. The method for adding a unique code to a virtual factory object based on REVIT according to claim 8, characterized in that: In the step S6), the program generates codes for all components or some components in the current project as needed; in the process of rewriting the codes and grouping the codes, the program automatically verifies the attribute values ​​of key fields. If the correct process / function identifier, object identifier, or the attribute values ​​of the project identifier and location identifier do not match the preset coding rules, the incorrectly encoded component ID will be automatically returned. Clicking the component ID can highlight it in the Revit project. After the modification is correct, the program can be rerun until a unique code is generated after it is completely correct.