A Method and Device for Converting Revit Modeling Files into YJK Model Files

By analyzing Revit model files and using functional relationships to convert them into YJK format data, the problem of low conversion efficiency of Revit modeling files in the existing technology is solved, and efficient model file conversion and improvement of designer work efficiency is achieved.

CN119577011BActive Publication Date: 2025-06-13GUANGZHOU METRO DESIGN & RES INST CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411568190.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2025-06-13
Estimated Expiration
2044-11-05

AI Technical Summary

Technical Problem

The existing Revit modeling file conversion method relies on manual operations, resulting in low conversion efficiency and cannot meet the efficient work needs of designers.

Method used

By analyzing the Revit model file, obtaining the key information of the structural components, and converting them into YJK format data using functional relationships, including structural component format data and special type format data, to generate a complete YJK model file.

Benefits of technology

The efficient conversion of Revit model files into YJK files is realized, which improves the work efficiency of designers, solves the problem of low conversion efficiency caused by manual operations, and retains special information of structural components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119577011B_ABST
    Figure CN119577011B_ABST
Patent Text Reader

Abstract

The present application relates to a method and device for converting a Revit modeling file into a YJK model file, and relates to the technical field of modeling file conversion. The method includes: parsing structural data according to the obtained Revit model file to be converted to obtain at least one target structural member and parameter information corresponding to the target structural member, extracting conversion information according to the parameter information to obtain key information, and performing data parsing conversion and special parsing conversion on the key information through the instance function relationship corresponding to the target structural member to obtain target conversion format data. According to the target conversion format data, a YJK target model file is generated. By parsing the key information of the structural member, the present application uses the function relationship to convert the key information into a model file in YJK format, and performs special conversion on the specially defined key information, retaining the special information of the structural member, thereby realizing the complete conversion of the Revit model file into a YJK file and improving the conversion efficiency between model files.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of modeling file conversion, and particularly to a method and device for converting Revit modeling files into YJK model files. Background Art

[0002] Design drawing is a key link in construction engineering design. For large-scale, multi-disciplinary and complex projects, two-dimensional design is difficult to meet the needs of actual projects. Using BIM technology for three-dimensional design drawing has become an effective way to solve this difficulty. Since BIM three-dimensional design is still in its infancy, there are problems such as lack of relevant standards, design processes and tool software, which seriously hinder designers from carrying out BIM three-dimensional design, thus affecting the drawing quality and design progress.

[0003] Currently, the most widely used BIM software in the industry is Autodesk Revit. After three-dimensional design in Revit, structural engineers usually export the components in Revit into two-dimensional DWG drawings. Using the lining function in YJK, manual modeling and structural calculation are carried out. Since the design scheme is often adjusted, this requires structural engineers to repeatedly perform the above operations after modifying the Revit model. This operation method is not user-friendly to designers and greatly reduces the work efficiency of designers. It can be seen that the existing method for converting Revit modeling files has low conversion efficiency due to relying on manual operations. Summary of the Invention

[0004] This application provides a method and device for converting Revit modeling files into YJK model files, which convert the key information of structural components into YJK format data by using functional relationships, and perform special conversions on specially defined key information, retaining the special information of structural components, thereby realizing the complete conversion of Revit model files into YJK files, improving the conversion efficiency of model files, and solving the problem of low conversion efficiency of the existing method for converting Revit modeling files due to relying on manual operations.

[0005] In a first aspect, this application provides a method for converting Revit modeling files into YJK model files, including:

[0006] Obtain a model file to be converted, where the model file to be converted is a Revit modeling file;

[0007] Perform structural data parsing according to the model file to be converted to obtain at least one target structural component and parameter information corresponding to the target structural component, where the target structural component includes at least one of beam components, slab components and column components, and the parameter information includes instance parameters and type parameters;

[0008] Extract conversion information according to the parameter information to obtain key information;

[0009] Perform data parsing conversion and special parsing conversion on the key information through the corresponding instance function relationship of the target structural member to obtain target conversion format data, where the target conversion format data includes structural member format data and special type format data;

[0010] Generate a target model file according to the structural member format data and the special type format data, and the target model file is a YJK model file.

[0011] Optionally, the key information includes structural key information and special key information, and extracting the key information according to the parameter information includes:

[0012] Extract relevant item key information from the parameter information, and perform geometric parsing extraction according to the parameter information to obtain the geometric information corresponding to the target structural member;

[0013] Perform function parsing conversion on the geometric information according to a preset geometric relationship function to obtain geometric key information, and generate structural key information based on the geometric key information and relevant item key information;

[0014] Perform special item identification parsing according to the parameter information to obtain special key information.

[0015] Optionally, the performing data parsing conversion and special parsing conversion on the key information through the corresponding instance function relationship of the target structural member to obtain target conversion format data includes:

[0016] Obtain the structural conversion function and type conversion function corresponding to the target structural member;

[0017] Perform parameter conversion processing on the structural key information according to the structural conversion function to obtain structural member format data;

[0018] Perform special parameter conversion on the special key information according to the type conversion function to obtain special type format data.

[0019] Optionally, when the target structural member is a beam member, the performing function parsing conversion on the geometric information according to a preset geometric relationship function to obtain geometric key information includes:

[0020] Extract start and end point information from the geometric information corresponding to the beam member according to a preset geometric relationship function, and extract reference elevation information from the geometric information;

[0021] Classify and sort the beam components of all floors according to the reference elevation information to obtain classification and sorting information and standard floor number information;

[0022] Generate geometric key information of the beam components based on the start and end point information, the classification and sorting information, and the standard floor number information.

[0023] Optionally, perform parameter conversion processing on the structural key information according to the structural conversion function to obtain structural component format data, including:

[0024] Generate standard floor identifiers according to the standard floor number information;

[0025] According to the preset beam central axis conversion function, use the standard floor identifier and the start and end point information for conversion to obtain beam central axis information;

[0026] According to the preset beam grid conversion function, convert the beam central axis information to obtain target type grid parameters;

[0027] Extract the cross-sectional attribute information of the beam components from the structural key information;

[0028] Convert the cross-sectional attribute information according to the preset cross-section conversion function to obtain target type cross-section parameters;

[0029] According to the preset beam structure conversion function, based on the classification and sorting information, combine the target type grid parameters and the target type cross-section parameters for data conversion to obtain the beam component format data of each beam component in the YJK model as the structural component format data;

[0030] Among them, perform special parameter conversion on the special key information according to the type conversion function to obtain special type format data, including: determining the performance design type of the beam component according to the special key information; based on the performance design type, perform attribute definition on the beam component according to the preset attribute definition function, and associate the attribute definition result with the beam component to obtain the special type format data of each beam component in the YJK model.

[0031] Optionally, when the target structural component is a column component, perform function analysis and conversion on the geometric information according to the preset geometric relationship function to obtain geometric key information, including:

[0032] Through the preset shape recognition function, use the geometric information for shape recognition to obtain the geometric shape corresponding to each column component, and the geometric shape includes a cylindrical column or a rectangular column;

[0033] When the geometry of the column member is a cylinder, the center of the circle is identified according to the geometric information to obtain the cylindrical centroid corresponding to the column member, which is used as the geometric key information of the column member;

[0034] When the geometry of the column member is a rectangular column, multiple analyses are performed according to the geometric information to obtain the centroid of the rectangular column, the column rotation angle formed by the column plane corresponding to the column member on the two-dimensional direction axis, and the eccentricity information, where the eccentricity information includes off-axis eccentricity and along-axis eccentricity;

[0035] According to the centroid of the rectangular column, the column rotation angle, and the eccentricity information, the geometric key information of the column member is determined.

[0036] Optionally, performing parameter conversion processing on the structure key information according to the structure conversion function to obtain structure member format data, including:

[0037] Generating column nodes according to the column centroid in the geometric key information, and extracting the cross-section information corresponding to the column member from the structure key information;

[0038] When the geometry of the column member is a cylinder, generating structure member format data according to the node parameters of the column node and the cross-section parameters of the cross-section information;

[0039] When the geometry of the column member is a rectangular column, obtaining an overloaded function;

[0040] According to the overloaded function, according to the node parameters of the column node, combined with the cross-section parameters of the cross-section information and the eccentricity information, generating the column member format data of each column member in the YJK model as the structure member format data;

[0041] Among them, performing special parameter conversion on the special key information according to the type conversion function to obtain special type format data, including: determining a node set according to the column node, and according to a preset load type identification function, determining the load type of the column member according to the special key information, and performing special conversion based on the node set and the load type to obtain the special type format data of each column member in the YJK model.

[0042] Optionally, when the target structural member is a slab member, performing function analysis and conversion on the geometric information according to a preset geometric relationship function to obtain geometric key information, including:

[0043] Performing identification processing on the geometric information of the slab member to obtain the slab surface;

[0044] Performing geometric analysis and shaping conversion on the slab surface to obtain the floor slab centroid coordinates of the slab member;

[0045] Perform coordinate traversal and duplicate point coordinate removal on the surface of the slab to obtain a set of corner point coordinates, where the set of corner point coordinates contains the coordinates of each corner point in the slab component;

[0046] Generate geometric key information based on the centroid coordinates of the floor slab and the set of corner point coordinates.

[0047] Optionally, perform parameter conversion processing on the structural key information according to the structural conversion function to obtain structural component format data, including:

[0048] Create a centroid of the floor slab according to the centroid coordinates of the floor slab, and determine the floor slab thickness parameter and the stepped floor parameter according to the geometric key information of the slab component;

[0049] Generate dead load parameters and live load parameters by using the geometric key information through a preset load function;

[0050] Based on the centroid of the floor slab, combine the floor slab thickness parameter, the stepped floor parameter, the dead load parameter, and the live load parameter to generate the slab component format data of each slab component in the YJK model as the structural component format data;

[0051] Among them, perform special parameter conversion on the special key information according to the type conversion function to obtain special type format data, including: obtaining the special definition of the slab component from the special key information; performing special conversion according to the dead load parameter, the live load parameter, and the special definition to obtain the special type format data of each slab component in the YJK model.

[0052] In a second aspect, the present application provides a device for converting a Revit modeling file into a YJK model file, including:

[0053] A model file acquisition module for acquiring a model file to be converted, where the model file to be converted is a Revit modeling file;

[0054] A structural data parsing module for parsing structural data according to the model file to be converted to obtain at least one target structural component and parameter information corresponding to the target structural component, where the target structural component includes at least one of a beam component, a slab component, and a column component, and the parameter information includes instance parameters and type parameters;

[0055] A conversion extraction module for extracting conversion information according to the parameter information to obtain key information;

[0056] A parsing and conversion module, configured to perform data parsing and conversion and special parsing and conversion on the key information through the instance function relationship corresponding to the target structural member, so as to obtain target conversion format data, where the target conversion format data includes structural member format data and special type format data;

[0057] A target model file generation module, configured to generate a target model file according to the structural member format data and the special type format data, where the target model file is a YJK model file.

[0058] In summary, in the embodiment of the present application, by obtaining a Revit modeling file as a model file to be converted, then performing structural data parsing according to the model file to be converted to obtain at least one target structural member and parameter information corresponding to the target structural member, extracting conversion information according to the parameter information to obtain key information, performing data parsing and conversion and special parsing and conversion on the key information through the instance function relationship corresponding to the target structural member to obtain target conversion format data, and generating a YJK target model file according to the target conversion format data. Thus, the present application parses the key information of the structural member, converts the key information into YJK format data by using the function relationship, and performs special conversion on the specially defined key information, retaining the special information of the structural member, thereby realizing the complete conversion of the Revit model file to the YJK file, improving the conversion efficiency of the model file, and further improving the work efficiency of designers, bringing a good experience to the conversion of the model file, and solving the problem of low conversion efficiency caused by the existing Revit modeling file conversion method relying on manual operations. Description of the Drawings

[0059] The drawings here are incorporated into the description and form a part of this description, showing embodiments consistent with the present application and used together with the description to explain the principles of the present application.

[0060] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0061] Figure 1 It is a schematic flowchart of a method for converting a Revit modeling file to a YJK model file provided by an embodiment of the present application;

[0062] Figure 2 It is a schematic flowchart of the steps of a method for converting a Revit modeling file to a YJK model file provided by an optional embodiment of the present application;

[0063] Figure 3Schematic diagram of the starting point and ending point of a beam member provided for an example of this application;

[0064] Figure 4 Schematic diagram for parsing geometric key information of a column provided for an example of this application;

[0065] Figure 5 Structural block diagram of a device for converting a Revit modeling file into a YJK model file provided for an embodiment of this application;

[0066] Figure 6 Schematic structural diagram of an electronic device provided for an embodiment of this application. Detailed implementation manners

[0067] To make the objectives, technical solutions and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are some but not all of the embodiments of this application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts shall fall within the scope of protection of this application.

[0068] In related technologies, the solution that relies on manual operations by designers to convert Revit modeling files usually requires designers to frequently perform YJK modeling manually. This not only reduces the work efficiency of designers but also causes errors during the modeling process, greatly delaying the progress and quality of engineering design. There are also some solutions in the prior art that involve directly using programs to convert model files. However, in addition to parameter information, different structural members in Revit modeling files also have some special definitions, such as loads and performance design. For the conversion of special definitions, the prior art usually still relies on manual conversion or directly ignores special definitions, unable to meet the actual conversion requirements, and the converted files are incomplete.

[0069] To solve the various problems existing in the above-mentioned prior art, one of the technical concepts of this application is to parse the Revit model file to obtain structural members and the corresponding key information, convert the key information into a YJK-format model file using functional relationships, and perform special conversions on the key information with special definitions using functional relationships, so as to be able to retain the special definitions of structural members, achieve the complete conversion of Revit model files into YJK model files, improve the conversion efficiency between model files, ensure the integrity of the converted files, and solve the problems of low conversion efficiency and inability to meet the actual conversion requirements existing in the prior art.

[0070] For the convenience of understanding the embodiments of the present application, the following will further explain and illustrate with reference to the accompanying drawings and specific embodiments. The embodiments do not limit the embodiments of the present application.

[0071] Figure 1 This is a schematic flowchart of a method for converting a Revit modeling file into a YJK model file provided by an embodiment of the present application. As Figure 1 shown, the method for converting a Revit modeling file into a YJK model file provided by an embodiment of the present application may specifically include the following steps:

[0072] Step 110, obtain the model file to be converted.

[0073] Among them, the model file to be converted is a Revit modeling file.

[0074] Step 120, perform structural data parsing according to the model file to be converted to obtain at least one target structural member and parameter information corresponding to the target structural member.

[0075] Among them, the target structural member includes at least one of a beam member, a slab member, and a column member, and the parameter information includes instance parameters and type parameters.

[0076] A unified description of steps 110 - 120:

[0077] In this embodiment, as a three-dimensional modeling file, a Revit modeling file usually includes Revit standard families. Among them, Revit standard families include but are not limited to beam families, slab families, and structural column families. Revit standard families can also be understood as target structural members.

[0078] In specific implementation, by identifying and parsing the Revit modeling file, structural members such as beams, slabs, and columns can be identified, and for each identified structural member, the instance parameters and type parameters corresponding to the structural member can be directly obtained from the Revit modeling file.

[0079] In this embodiment, instance parameters may include multiple basic attribute parameters of the structural member. Taking the beam member as an example, the instance parameters of the beam member may include constraint parameter information, geometric parameter information, and parameter information described in words, etc. Type parameters may include the types corresponding to the structural members, such as including but not limited to: structure, function, graphics, material, analysis attributes, and identification data, etc.

[0080] Step 130, extract conversion information according to the parameter information to obtain key information.

[0081] In specific implementation, the parameter information of structural members such as beams, slabs, columns, and shear walls can be mainly divided into three categories, including but not limited to: geometric parameters, parameters that can be directly used as key information, and special parameters. There are usually corresponding geometric information for structural members such as beams, slabs, and columns, including geometric shapes, geometric types, and positions, etc. This type of parameter information can all be understood as geometric types. In this embodiment, corresponding conversion and extraction can be performed for different categories of parameter information.

[0082] Specifically, for the geometric parameter information, in this embodiment, a conversion function can be used to perform information conversion and extraction on the parameter information, so as to identify the geometric information and convert it into key information. For the parameter information of non-geometric information in structural members such as beams, slabs, and columns, such as parameters that can be directly used as key information, the corresponding key information can be directly extracted from the parameter information. For the special parameters that belong to special definitions in structural members such as beams, slabs, and columns, a conversion function can be used to perform special conversion on the parameter information to obtain the corresponding key information.

[0083] Step 140, perform data parsing conversion and special parsing conversion on the key information through the corresponding instance function relationship of the target structural member to obtain target conversion format data.

[0084] Among them, the target conversion format data includes structural member format data and special type format data.

[0085] In this embodiment, each type of target structural member can have a corresponding instance function relationship. The instance function relationship can essentially include multiple functions, which are used to implement the conversion of different key information in each structural member. In this embodiment, the corresponding preset instance function relationship is obtained for the target structural member, and the instance function relationship is used to process the key information to obtain the structural member format data in YJK format.

[0086] In specific implementation, for the key information representing special definitions in the key information, in this embodiment, the instance function relationship can be used to perform special conversion on it, so as to obtain the special type format data corresponding to the target structural member in YJK format.

[0087] Step 150, generate a target model file according to the structural member format data and the special type format data, and the target model file is a YJK model file.

[0088] In specific implementation, the embodiments of the present application can combine the structural member format data and the special type format data to generate a YJK model file, thereby realizing the conversion of Revit model files to YJK model files.

[0089] It can be seen that in the embodiment of the present application, by obtaining the Revit modeling file as the model file to be converted, then parsing the structural data according to the model file to be converted to obtain at least one target structural member and the parameter information corresponding to the target structural member, extracting conversion information according to the parameter information to obtain key information, performing data parsing conversion and special parsing conversion on the key information through the instance function relationship corresponding to the target structural member to obtain the target conversion format data, and generating the YJK target model file according to the target conversion format data. Thus, the present application parses the key information of the structural member, converts the key information into YJK format data by using the function relationship, and performs special conversion on the specially defined key information, retaining the special information of the structural member, thereby realizing the complete conversion of the Revit model file to the YJK file, improving the conversion efficiency of the model file, and bringing a good experience to the conversion of the model file.

[0090] The embodiment of the present application can directly convert the model construction in the Revit software into the YJK model without too many operations, making the data transfer between Revit and YJK more rapid and convenient. For projects that require frequent scheme modifications resulting in structural layout and load adjustment, it can effectively improve the work efficiency and project quality of designers, saving time and effort, and solving the problem of low conversion efficiency caused by the existing conversion method of Revit modeling files relying on manual operations.

[0091] Refer to Figure 2 , which shows the schematic flow chart of the steps of a method for converting a Revit modeling file into a YJK model file provided by an optional embodiment of the present application. The method may specifically include the following steps:

[0092] Step 210, obtain the model file to be converted, where the model file to be converted is a Revit modeling file.

[0093] Step 220, parse the structural data according to the model file to be converted to obtain at least one target structural member and the parameter information corresponding to the target structural member.

[0094] Among them, the target structural member includes at least one of beam members, slab members, and column members, and the parameter information includes instance parameters and type parameters.

[0095] Exemplarily, the beam family attaches information such as beam concrete grade, seismic grade, load information, beam section, etc. in the form of instance parameters and type parameters. The start and end points of the beam are the geometric information of the beam itself and can be directly obtained through instance parameters and type parameters. Taking a beam with a section width of 300 mm and a section height of 800 mm as an example of instance parameters and type parameters. Among them, the instance parameters of the beam include but are not limited to: reference elevation, Z-axis offset value, stage, performance design type, seismic grade, dead line load, live line load, transfer beam type, concrete, steel bars, and cover; the type parameters of the beam include but are not limited to: b (width), h (height). Other key information can be directly obtained through the geometric characteristics of the beam, slab, and column itself. For example, a beam has its own start and end points.

[0096] As an example, the column family attaches information such as performance design type, bottom elevation, bottom offset, top elevation, top offset, steel bars, seismic grade, concrete, cover, column joint load, etc. in the form of instance parameters and type parameters. The geometric information of the column itself can be directly read. Taking a column with a section width of 1000 mm and a section height of 1000 mm as an example of instance parameters and type parameters. Among them, the instance parameters of the column include but are not limited to: bottom elevation, bottom offset, top elevation, top offset, performance design type, seismic grade, concrete, steel bars, cover, and joint load; the type parameters of the column include but are not limited to: b, h.

[0097] Exemplarily, the slab attaches information such as dead load, live load, fire truck load, concrete, elevation, height offset from its own elevation, slab type, etc. and geometric parameter information of the slab itself such as slab thickness, slab contour, etc. in the form of instance parameters and type parameters. Taking a slab with a thickness of 300 mm as an example of instance parameters and type parameters. Among them, the geometric information of the slab itself can be directly read. The instance parameters of the slab can include but are not limited to: elevation, height offset from its own elevation, dead load, live load, fire truck load, concrete, slab type; the type parameters of the slab include but are not limited to: default thickness.

[0098] Step 230: Extract relevant key information from the parameter information, and perform geometric analysis and extraction according to the parameter information to obtain the geometric information corresponding to the target structural member.

[0099] Step 240: Perform functional analysis and conversion on the geometric information according to a preset geometric relationship function to obtain geometric key information, and generate structural key information based on the geometric key information and relevant key information.

[0100] A unified description of Steps 230 - 240:

[0101] In a specific implementation, the correlation key information refers to the key information that can be directly determined by instance parameters and type parameters. In this embodiment, the corresponding correlation key information can be directly obtained by parsing the instance parameters and type parameters.

[0102] In a specific implementation, the geometric key information usually refers to the geometric shape information of the target structural member, including but not limited to: geometric shape, geometric center, length, width, height, etc. In this embodiment, the geometric information corresponding to the structural member can be directly parsed and obtained from the instance parameters and type parameters, and the geometric key information can be obtained by performing a functional analysis and conversion on the geometric information using a preset geometric relationship function.

[0103] In an optional embodiment, when the target structural member in the embodiment of the present application is a beam member, the above-mentioned functional analysis and conversion of the geometric information according to the preset geometric relationship function to obtain the geometric key information may specifically include: extracting the start and end point information from the geometric information corresponding to the beam member according to the preset geometric relationship function, and extracting the reference elevation information from the geometric information; classifying and sorting the beam members of all floors according to the reference elevation information to obtain the classification and sorting information and the standard floor number information; generating the geometric key information of the beam member based on the start and end point information, the classification and sorting information, and the standard floor number information.

[0104] In this embodiment, the key information for beam family conversion may include but not be limited to: performance design type, reference elevation, steel bars, seismic grade, dead line load, live line load, transfer beam type, concrete, protective layer, beam section, Z-axis offset value, start and end points of the beam.

[0105] In a specific implementation, this embodiment can extract the start and end points of the beam from the geometric information by calling the corresponding geometric relationship function as the start and end point information. Exemplarily, the start and end points of the beam can be directly obtained from the geometric information of the beam in sequence using the GetEndPoint(0) and GetEndPoint(1) functions of the C# RevitAPI, as Figure 3 shown.

[0106] In actual processing, after this embodiment obtains the remaining key information through the beam instance parameters and beam type parameters, it can classify the beam members of all floors according to the reference elevation, and those belonging to the same reference elevation are classified into the same floor, and sorted from small to large according to the magnitude of the reference elevation value (here the reference elevation is actually equal to the floor elevation) to obtain the classification and sorting information, and determine the standard floor number according to the classification and sorting result.

[0107] In an alternative embodiment, when the target structural member is a column member, the geometric information is analytically transformed according to a preset geometric relationship function to obtain geometric key information, which may specifically include: performing shape recognition on the geometric information by using a preset shape recognition function to obtain the geometric shape corresponding to each column member, where the geometric shape includes a circular column or a rectangular column; when the geometric shape of the column member is a circular column, performing center recognition on the geometric information to obtain the cylindrical centroid corresponding to the column member as the geometric key information of the column member; when the geometric shape of the column member is a rectangular column, performing multiple analyses on the geometric information to obtain the rectangular column centroid, the column rotation angle formed by the column plane corresponding to the column member on the two-dimensional direction axes, and eccentricity information, where the eccentricity information includes off-axis eccentricity and along-axis eccentricity; and determining the geometric key information of the column member according to the rectangular column centroid, the column rotation angle, and the eccentricity information.

[0108] In this embodiment, the key information for column family conversion may include but is not limited to: performance design type, bottom elevation, bottom offset, top elevation, top offset, seismic grade, concrete, protective layer, column joint load, centroid of the column, rotation angle of the column, width and height of the column cross-section, off-axis eccentricity ExcX in the X direction of the column, along-axis eccentricity ExcY in the Y direction of the column, whether it is a circular column, whether it is a corner column, etc.

[0109] In this embodiment, by analyzing and obtaining the self-geometric information of the column family, the centroid of each column member, the rotation angle of the column, the width and height of the column cross-section, the off-axis eccentricity ExcX in the X direction of the column (as Figure 4 shown), the along-axis eccentricity ExcY in the Y direction of the column (as Figure 4 shown), whether it is a circular column and other key information are obtained.

[0110] Exemplarily, use C# RevitAPI to extract the return value of Symbol.FamilyName.Contains("circular") of the column family to determine whether it is a circular column. If the return value is True, it is a circular column; if the return value is False, it is a rectangular column. If it is a circular column, the center of the circle is the centroid of the column, and the rotation angle of the column and both ExcX and ExcY are 0; if it is a rectangular column, the intersection of the diagonal lines is the centroid of the column. Determine the angle formed by the Y-direction side of the column plane and the X-axis to obtain the rotation angle of the column. Then, as Figure 4 shown, calculate ExcX and ExcY of the rectangular column. The remaining key information can be obtained by reading the instance parameters and the type parameter table.

[0111] In an alternative embodiment, when the target structural member is a plate member, the geometric information is analytically transformed according to a preset geometric relationship function to obtain geometric key information, which may specifically include: identifying and processing the geometric information of the plate member to obtain the plate surface; performing geometric analysis and shaping transformation on the plate surface to obtain the floor centroid coordinates of the plate member; performing coordinate traversal and duplicate point coordinate removal processing on the plate surface to obtain a set of corner point coordinates, where the set of corner point coordinates contains the coordinates of each corner point in the plate member; and generating geometric key information based on the floor centroid coordinates and the set of corner point coordinates.

[0112] In this embodiment, the key information for plate conversion includes but is not limited to: dead load, live load, fire truck load, concrete, elevation, height offset from the self-elevation, floor type, floor centroid coordinates, floor thickness, floor split levels, and geometric coordinates of each corner point of the floor. Among them, the floor centroid coordinates of the column and the geometric coordinates of each corner point of the floor can be obtained from the self-geometric information of the column family.

[0113] Exemplarily, the upper surface Face (i.e., the plate surface) of the floor slab entity is obtained using the C# RevitAPI, and then the geometric center of this Face is calculated using mathematical operations, and this center is the centroid coordinates of the floor. Since the coordinates of the plate in YJK must be of the Int (integer) type, the X and Y values of the coordinates just obtained must be converted to the Int type. For obtaining the coordinates of each corner point of the floor, the C# RevitAPI provides the GetEdgesAsCurveLoops function. After finding the just-mentioned upper surface Face, the GetEdgesAsCurveLoops function is used to obtain a set of upper surface CurveLoops. Each sub-element Curve of each CurveLoop is traversed, and the start and end points of the Curve are added to a new set to generate the coordinates of each corner point of the floor. Finally, duplicate point coordinate removal processing is performed on the set of point coordinates to obtain the final coordinates of each corner point of the floor. For other key information, it can be queried and obtained in the instance parameter and type parameter tables.

[0114] Step 250: Identify and analyze special items based on the parameter information to obtain special key information.

[0115] Among them, the key information includes structural key information and special key information.

[0116] In this embodiment, the special key information may include but is not limited to: special member definition, load, special load (such as fire truck load), floor type, performance design, pre-processing parameters, and other information.

[0117] In this embodiment, by identifying the parameter information, the special item corresponding to each structural member is obtained, and the parameter information corresponding to the particularity is analyzed to obtain the special key information.

[0118] Step 260, obtain the structure conversion function and type conversion function corresponding to the target structural member.

[0119] Step 270, perform parameter conversion processing on the structure key information according to the structure conversion function to obtain the structural member format data.

[0120] In this embodiment, both the structure conversion function and the type conversion function can be set according to actual needs and are composed of multiple conversion-related functions. In this implementation, the structure conversion function can be used to perform parameter conversion processing on the structure key information to obtain the structural member format data in YJK format, and the type conversion function can be used to perform special parameter conversion on the special key information to obtain the special type format data in YJK format, that is, step 280 is executed.

[0121] In a specific implementation, this embodiment can use the interface function provided by YJK to perform conversion processing on the structure key information and special key information to be converted to obtain the corresponding parameters, and input the parameters into the function provided by YJK to obtain the structural member format data and special type format data in YJK format, and then obtain the YJK model file.

[0122] In an alternative embodiment, when the target structural member is a beam member in the embodiment of the present application, parameter conversion processing is performed on the structure key information according to the structure conversion function to obtain the structural member format data, which may specifically include: generating a standard floor identifier according to the standard floor number information; using the standard floor identifier and the start and end point information to perform conversion according to the preset beam central axis conversion function to obtain the beam central axis information; performing conversion on the beam central axis information according to the preset beam grid conversion function to obtain the target type grid parameters; extracting the cross-sectional attribute information of the beam member from the structure key information; performing conversion on the cross-sectional attribute information according to the preset cross-section conversion function to obtain the target type cross-section parameters; performing data conversion on the basis of the classification and sorting information, combining the target type grid parameters and the target type cross-section parameters according to the preset beam structure conversion function to obtain the beam member format data of each beam member in the YJK model as the structural member format data.

[0123] Exemplarily, YJK netApi provides a beam_arrange function for generating beams in YJK. This beam_arrange function requires an input parameter of type Mdl_Grid and a parameter of type Mdl_BeamSect. The Joint_Generate function provided by YJK can be used to process the extracted beam start and end point information to generate 2 Mdl_Joint nodes. Based on the reference elevation, the number of standard floors to be generated is obtained, and the StdFlr_Generate function is used to define the standard floors, obtaining the property of its ID to generate the standard floor ID. The standard floor ID is used as the input parameter of the Axis_Generate function. Subsequently, the 2 generated nodes, combined with the standard floor ID, use the Axis_Generate function provided by YJK to form an axis Mdl_Axis (i.e., the beam centerline information). After generating the axis, the Grid_Generate function of YJK is used to generate a grid of type Mdl_Grid. Mdl_BeamSect is a type of section definition, and the section (width and height of the beam) can be obtained from the key beam information. Combining with the BeamSect_Def function of YJK, a parameter of type Mdl_BeamSect can be generated. Finally, combined with the beam_arrange function, beams can be generated in different standard floors in YJK, obtaining the beam member format data of each beam member in the YJK model.

[0124] Thus, for the beam structural members in the Revit model file, this embodiment makes full use of the functional relationship for reasonable conversion, so that each beam member and its corresponding relevant attribute information can be converted into the YJK model file and can be used in the YJK model.

[0125] In an alternative embodiment, when the target structural member is a column member in the embodiment of the present application, according to the structure conversion function, parameter conversion processing is performed on the structure key information to obtain the structural member format data, which may specifically include: generating column nodes according to the column centroid in the geometric key information, and extracting the section information corresponding to the column member from the structure key information; when the geometric shape of the column member is a cylinder, generating the structural member format data according to the node parameters of the column node and the section parameters of the section information; when the geometric shape of the column member is a rectangular column, obtaining an overloaded function; according to the overloaded function, based on the node parameters of the column node, combined with the section parameters of the section information and the eccentricity information, generating the column member format data of each column member in the YJK model as the structural member format data.

[0126] Exemplarily, YJK netApi provides the column_arrange function to generate columns in YJK. This function requires a parameter of type Mdl_Joint and a parameter of type Mdl_ColSect. Using the YJK function Joint_Generate, the centroid information of the extracted columns is converted to generate 1 Mdl_Joint node. Subsequently, the ColSect_Def function of YJK is used to define the column section. This function returns a value of type Mdl_ColSect, and the section of the column can be directly obtained through the key information. If it is a circular column, directly use column_arrange and pass in the parameters of type Mdl_Joint and type Mdl_ColSect to generate the circular column. If it is a rectangular column, another overloaded function of the column_arrange function needs to be used, passing in 5 parameters to generate it. Pass in the parameters of type Mdl_Joint, type Mdl_ColSect, ExcX, ExcY, and the rotation angle in sequence to generate the rectangular column, so as to generate columns in YJK and obtain the column member format data of each column member in the YJK model.

[0127] Thus, for the column structural members in the Revit model file, this embodiment makes full use of the functional relationship for reasonable conversion, retaining the section, geometric shape, and eccentricity information corresponding to each column structural member, ensuring that each column member can be completely converted into a YJK model file and can be used in the YJK model.

[0128] In an alternative embodiment, when the target structural member is a slab member in the embodiments of the present application, according to the structural conversion function, parameter conversion processing is performed on the structural key information to obtain structural member format data, which may specifically include: creating a slab centroid according to the centroid coordinates of the floor slab, and determining the floor slab thickness parameter and the stepped floor parameter according to the geometric key information of the slab member; generating the dead load parameter and the live load parameter by using the geometric key information through a preset load function; based on the slab centroid, combining the floor slab thickness parameter, the stepped floor parameter, the dead load parameter, and the live load parameter, generating the slab member format data of each slab member in the YJK model as the structural member format data.

[0129] Exemplarily, YJK netApi provides a slab_arrange function to generate slabs in YJK. This function requires a parameter of type SlabCreateInfo. The SlabCreateInfo type contains a SetCentroid function. Using this SetCentroid function, the key information of the slab is processed to create the centroid of the floor slab. The two parameters of SetCentroid are the coordinates of the centroid. Then, the thickness of the floor slab is set. YJK netApi provides a SetThick function, which requires a parameter for the thickness. The thickness parameter can be obtained from the key information. Then, the SetCc parameter is used to set the stepped floor of the floor slab. The SetDeadLive function is used to set the dead load and live load for the floor slab. After setting the above parameters in SlabCreateInfo, it is directly passed into the slab_arrange function to generate the floor slab in YJK and obtain the format data of each slab component in the YJK model.

[0130] Thus, for the slab structure components in the Revit model file, this embodiment makes full use of the functional relationship for reasonable conversion, retaining information such as the centroid coordinates, thickness, dead load, and live load corresponding to each slab component, ensuring that each slab component can be completely converted into the YJK model file and can be used in the YJK model.

[0131] Step 280, perform special parameter conversion on the special key information according to the type conversion function to obtain special type format data.

[0132] Among them, the target conversion format data includes structural component format data and special type format data.

[0133] In this embodiment, by using the functional relationship to reasonably convert the special definitions corresponding to components such as beams, slabs, and columns, the special information of the structural components is retained, improving the conversion efficiency between model files.

[0134] In an optional embodiment, when the target structural component is a beam component, perform special parameter conversion on the special key information according to the type conversion function to obtain special type format data, which may specifically include: determining the performance design type of the beam component according to the special key information; performing attribute definition on the beam component based on the performance design type according to a preset attribute definition function, and associating the attribute definition result with the beam component to obtain the special type format data of each beam component in the YJK model.

[0135] Exemplarily, for the conversion of the performance design of beam members, the beam properties can be defined first, such as Property proper = new Property("SpBeam"). If the beam is a key member, then proper.setVal(19, 1); if the beam member is an energy-dissipating member, then proper.setVal(19, 3). Finally, using property_arrange to associate the property definition with the beam can define the performance design.

[0136] In an alternative embodiment, when the target structural member is a column member, the special key information is subjected to special parameter conversion according to the type conversion function to obtain special type format data, including: determining a node set according to the column nodes, and determining the load type of the column member according to the special key information according to a preset load type identification function, and performing special conversion based on the node set and the load type to obtain the special type format data of each column member in the YJK model.

[0137] Exemplarily, to add loads to columns, the function load_arrange provided by YJK netApi is used to add nodal loads to columns. It accepts two parameters, one is the set of nodes and the other is the load type. The load type is obtained using the function Load_Def, which returns a value of type Mdl_LoadSect. Then, this value is combined with the node set and passed into load_arrange to generate nodal loads for the columns.

[0138] In an alternative embodiment, when the target structural member is a slab member, the special key information is subjected to special parameter conversion according to the type conversion function to obtain special type format data, including: obtaining the special definition of the slab member from the special key information; and performing special conversion according to the dead load parameter, the live load parameter, and the special definition to obtain the special type format data of each slab member in the YJK model.

[0139] In a specific implementation, the special definition of the floor slab includes fire truck load, floor slab type, etc. For the conversion of the fire truck load, in this embodiment, through the special definition of the floor slab, combined with the two parameters of dead load and live load, the conversion is performed to add the fire truck load to the YJK model file.

[0140] Exemplarily, for converting the fire truck load, by reading the fire truck load information in Revit, first use the function SetDeadFacotr to set the representative value coefficient of the gravity load, and use the function SetLiveFacotr, modify its first parameter to 2 to specify the fire truck load. Then, through the GKLoadDefCreateInfo function provided by YJK netApi, add the fire truck load to the YJK model using GKLoad_Def. For setting the floor slab type of the floor slab, use the property_arrange function provided by YJK netApi to define special components into the model.

[0141] Step 290, generate a target model file according to the structural component format data and the special type format data, and the target model file is a YJK model file.

[0142] In summary, in the embodiment of the present application, by obtaining the Revit modeling file as the model file to be converted, parsing the structural data according to the model file to be converted, obtaining at least one target structural component and the parameter information corresponding to the target structural component, extracting the relevant key information from the parameter information, and performing geometric parsing and extraction according to the parameter information to obtain the geometric information corresponding to the target structural component. Subsequently, perform function parsing and conversion on the geometric information according to the preset geometric relationship function to obtain geometric key information, and generate structural key information based on the geometric key information and the relevant key information. Furthermore, perform special item identification and parsing according to the parameter information to obtain structural key information and special key information. Subsequently, perform parameter conversion processing on the structural key information according to the preset structural conversion function to obtain structural component format data, and perform special parameter conversion on the special key information according to the preset type conversion function to obtain special type format data. Generate a YJK model file according to the structural component format data and the special type format data. Thus, the present application parses the key information of the structural component, converts the key information into YJK format data using the function relationship, and performs special conversion on the specially defined key information, retaining the special information of the structural component, thereby realizing the conversion of the complete Revit model file to the YJK file, improving the conversion efficiency of the model file, and further improving the work efficiency of designers, bringing a good experience to the conversion of the model file. The present application solves the following problems: ① The problem of low conversion efficiency caused by the existing Revit modeling file conversion method relying on manual operations; ② The problem of incomplete conversion files caused by the existing technology ignoring the conversion of special definitions.

[0143] It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present application are not limited by the described action sequence, because according to the embodiments of the present application, certain steps can be performed in other sequences or simultaneously.

[0144] As Figure 5 shown, the embodiments of the present application also provide a device 500 for converting a Revit modeling file into a YJK model file, including:

[0145] A model file acquisition module 510, configured to acquire a model file to be converted, where the model file to be converted is a Revit modeling file;

[0146] A structural data parsing module 520, configured to perform structural data parsing according to the model file to be converted, to obtain at least one target structural member and parameter information corresponding to the target structural member, where the target structural member includes at least one of a beam member, a slab member, and a column member, and the parameter information includes instance parameters and type parameters;

[0147] A conversion and extraction module 530, configured to extract conversion information according to the parameter information to obtain key information;

[0148] An analysis and conversion module 540, configured to perform data analysis and conversion and special analysis and conversion on the key information through the instance function relationship corresponding to the target structural member, to obtain target conversion format data, where the target conversion format data includes structural member format data and special type format data;

[0149] A target model file generation module 550, configured to generate a target model file according to the structural member format data and the special type format data, where the target model file is a YJK model file.

[0150] Optionally, the key information includes structural key information and special key information, and the conversion and extraction module 530 includes:

[0151] A geometric analysis and extraction sub-module, configured to extract relevant item key information from the parameter information, and perform geometric analysis and extraction according to the parameter information to obtain geometric information corresponding to the target structural member;

[0152] A function analysis and conversion sub-module, configured to perform function analysis and conversion on the geometric information according to a preset geometric relationship function to obtain geometric key information, and generate structural key information based on the geometric key information and the relevant item key information;

[0153] A special item analysis sub-module, configured to perform special item identification and analysis according to the parameter information to obtain special key information.

[0154] Optionally, the parsing and conversion module 540 includes:

[0155] A conversion function acquisition sub-module for acquiring the structure conversion function and type conversion function corresponding to the target structural member;

[0156] A parameter conversion processing sub-module for performing parameter conversion processing on the structural key information according to the structure conversion function to obtain structural member format data;

[0157] A special parameter conversion sub-module for performing special parameter conversion on the special key information according to the type conversion function to obtain special type format data.

[0158] Optionally, when the target structural member is a beam member, the function parsing and conversion sub-module includes:

[0159] A start and end point information extraction unit for extracting start and end point information from the geometric information corresponding to the beam member according to a preset geometric relationship function, and extracting reference elevation information from the geometric information;

[0160] A classification and sorting unit for classifying and sorting the beam members of all layers according to the reference elevation information to obtain classification and sorting information and standard floor number information;

[0161] A geometric key information generation unit for generating geometric key information of the beam member based on the start and end point information, the classification and sorting information, and the standard floor number information.

[0162] Optionally, when the target structural member is a column member, the function parsing and conversion sub-module includes:

[0163] A shape recognition unit for performing shape recognition on the geometric information through a preset shape recognition function to obtain the geometric shape corresponding to each column member, where the geometric shape includes a cylindrical column or a rectangular column;

[0164] A first geometric key information determination unit for, when the geometric shape of the column member is a cylindrical column, performing center recognition on the geometric information to obtain the cylindrical centroid corresponding to the column member as the geometric key information of the column member;

[0165] A multi-item analysis unit for, when the geometric shape of the column member is a rectangular column, performing multi-item analysis on the geometric information to obtain the rectangular column centroid, the column rotation angle formed by the column plane corresponding to the column member on the two-dimensional direction axis, and eccentricity information, where the eccentricity information includes off-axis eccentricity and along-axis eccentricity;

[0166] A second geometric key information determination unit, configured to determine the geometric key information of the column member according to the centroid of the rectangular column, the column rotation angle, and the eccentricity information.

[0167] Optionally, when the target structural member is a slab member, the function parsing and conversion sub-module includes:

[0168] An identification processing unit, configured to perform identification processing according to the geometric information of the slab member to obtain the slab surface;

[0169] A geometric parsing and shaping conversion unit, configured to perform geometric parsing and shaping conversion according to the slab surface to obtain the floor centroid coordinates of the slab member;

[0170] A traversal and duplicate removal processing unit, configured to perform coordinate traversal and point coordinate duplicate removal processing according to the slab surface to obtain a set of corner point coordinates, where the set of corner point coordinates includes the coordinates of each corner point in the slab member;

[0171] A third geometric key information determination unit, configured to generate geometric key information according to the floor centroid coordinates and the set of corner point coordinates.

[0172] Optionally, when the target structural member is a slab member, the parameter conversion processing sub-module includes:

[0173] A creation unit, configured to create a floor centroid according to the floor centroid coordinates, and determine the floor thickness parameter and the stepped floor parameter according to the geometric key information of the slab member;

[0174] A dead load and live load parameter generation unit, configured to generate dead load parameters and live load parameters by using a preset load function and the geometric key information;

[0175] A slab member format data generation unit, configured to generate the slab member format data of each slab member in the YJK model based on the floor centroid, in combination with the floor thickness parameter, the stepped floor parameter, the dead load parameter, and the live load parameter, as the structural member format data.

[0176] Optionally, when the target structural member is a slab member, the special parameter conversion sub-module is specifically configured to: obtain the special definition of the slab member from the special key information; perform special conversion according to the dead load parameter, the live load parameter, and the special definition to obtain the special type format data of each slab member in the YJK model.

[0177] Optionally, when the target structural member is a beam member, the parameter conversion processing sub-module includes:

[0178] A standard floor identification generation unit, configured to generate a standard floor identification according to the standard floor quantity information;

[0179] The beam central axis information conversion unit is used to perform conversion according to a preset beam central axis conversion function by using the standard floor identifier and the start and end point information to obtain beam central axis information;

[0180] The target type grid parameter determination unit is used to perform conversion on the beam central axis information according to a preset beam grid conversion function to obtain target type grid parameters;

[0181] The cross-section attribute extraction unit is used to extract the cross-section attribute information of the beam member from the structural key information;

[0182] The target type cross-section parameter determination unit is used to perform conversion on the cross-section attribute information according to a preset cross-section conversion function to obtain target type cross-section parameters;

[0183] The beam member format data determination unit is used to perform data conversion according to a preset beam structure conversion function based on the classification and sorting information by combining the target type grid parameters and the target type cross-section parameters to obtain the beam member format data of each beam member in the YJK model as the structural member format data.

[0184] Optionally, when the target structural member is a beam member, the special parameter conversion sub-module is specifically used to: determine the performance design type of the beam member according to the special key information; perform attribute definition on the beam member based on the performance design type according to a preset attribute definition function, and associate the attribute definition result with the beam member to obtain the special type format data of each beam member in the YJK model.

[0185] Optionally, when the target structural member is a column member, the parameter conversion processing sub-module includes:

[0186] The node and cross-section determination unit is used to generate column nodes according to the column centroid in the geometric key information and extract the cross-section information corresponding to the column member from the structural key information;

[0187] The first structural member format data generation unit is used to generate structural member format data according to the node parameters of the column node and the cross-section parameters of the cross-section information when the geometric shape of the column member is a circular column;

[0188] The overloaded function acquisition unit is used to acquire an overloaded function when the geometric shape of the column member is a rectangular column;

[0189] A second structural member format data generation unit, configured to generate, according to the overloaded function, column member format data of each column member in the YJK model based on the node parameters of the column node, in combination with the cross-section parameters of the cross-section information and the eccentricity information, as the structural member format data.

[0190] Optionally, when the target structural member is a column member, the special parameter conversion sub-module is specifically configured to: determine a node set according to the column node, and determine the load type of the column member according to special key information according to a preset load type identification function, and perform special conversion based on the node set and the load type to obtain special type format data of each column member in the YJK model.

[0191] It should be noted that the device for converting a Revit modeling file into a YJK model file provided in the embodiments of the present application can execute the method for converting a Revit modeling file into a YJK model file provided in any embodiment of the present application, and has the corresponding functions and beneficial effects of executing the method.

[0192] In a specific implementation, the above-mentioned device for converting a Revit modeling file into a YJK model file can be integrated in a device, so that the device can perform data parsing conversion and special parsing conversion on the key information corresponding to each structural member in the Revit modeling file according to the instance function relationship, and finally obtain a YJK model file, as an electronic device, to improve the conversion efficiency of the model file. The electronic device can be composed of two or more physical entities, or can be composed of a single physical entity. For example, the electronic device can be a personal computer (PC), a computer, a server, etc. The embodiments of the present application do not make specific limitations in this regard.

[0193] Such as Figure 6As shown in the figure, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114. Among them, the processor 111, the communication interface 112, and the memory 113 complete mutual communication through the communication bus 114; the memory 113 is used to store computer programs; when the processor 111 executes the programs stored on the memory 113, it implements the steps of the method for converting a Revit modeling file into a YJK model file provided by any one of the foregoing method embodiments. Exemplarily, the steps of the method for converting a Revit modeling file into a YJK model file may include the following steps: obtaining a model file to be converted, where the model file to be converted is a Revit modeling file; parsing structural data according to the model file to be converted to obtain at least one target structural member and parameter information corresponding to the target structural member, where the target structural member includes at least one of a beam member, a slab member, and a column member, and the parameter information includes instance parameters and type parameters; extracting conversion information according to the parameter information to obtain key information; performing data parsing conversion and special parsing conversion on the key information through the instance function relationship corresponding to the target structural member to obtain target conversion format data, where the target conversion format data includes structural member format data and special type format data; generating a target model file according to the structural member format data and the special type format data, where the target model file is a YJK model file.

[0194] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of the method for converting a Revit modeling file into a YJK model file provided by any one of the foregoing method embodiments.

[0195] It should be noted that in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.

[0196] The above are only specific embodiments of the present application, enabling those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments shown herein, but rather will be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for converting a Revit modeling file into a YJK model file, characterized in that: include: Obtain a model file to be converted, where the model file to be converted is a Revit modeling file; Perform structural data parsing according to the model file to be converted to obtain at least one target structural component and parameter information corresponding to the target structural component, wherein the target structural component includes at least one of a beam component, a plate component, and a column component, and the parameter information includes instance parameters and type parameters; Extract conversion information according to the parameter information to obtain key information; Performing data parsing conversion and special parsing conversion on the key information through the instance function relationship corresponding to the target structural component to obtain target conversion format data, wherein the target conversion format data includes structural component format data and special type format data; Generate a target model file according to the structural component format data and the special type format data, wherein the target model file is a YJK model file; The key information includes structural key information and special key information, and the conversion information extraction according to the parameter information to obtain the key information includes: extracting related item key information from the parameter information, and performing geometric analysis extraction according to the parameter information to obtain geometric information corresponding to the target structural component; performing function analysis conversion on the geometric information according to a preset geometric relationship function to obtain geometric key information, and generating structural key information based on the geometric key information and related item key information; performing special item identification analysis according to the parameter information to obtain special key information; The method of performing data parsing conversion and special parsing conversion on the key information through the instance function relationship corresponding to the target structural component to obtain target conversion format data includes: obtaining a structural conversion function and a type conversion function corresponding to the target structural component; performing parameter conversion processing on the structural key information according to the structural conversion function to obtain structural component format data; and performing special parameter conversion on the special key information according to the type conversion function to obtain special type format data.

2. The method according to claim 1, characterized in that When the target structural component is a beam component, performing function analysis conversion on the geometric information according to a preset geometric relationship function to obtain geometric key information includes: According to a preset geometric relationship function, extracting start and end point information from the geometric information corresponding to the beam component, and extracting reference elevation information from the geometric information; Classify and sort the beam components of all layers according to the reference elevation information to obtain classification and sorting information and standard layer quantity information; Based on the start and end point information, the classification and sorting information and the standard layer quantity information, the geometric key information of the beam component is generated.

3. The method according to claim 2, characterized in that The step of performing parameter conversion processing on the key structural information according to the structural conversion function to obtain structural component format data includes: Generate a standard floor identifier according to the standard floor quantity information; According to a preset beam centerline conversion function, the standard layer identifier and the start and end point information are used for conversion to obtain beam centerline information; According to a preset beam mesh conversion function, the beam centerline information is converted to obtain target type mesh parameters; Extracting cross-sectional property information of the beam member from the key structural information; The cross-section attribute information is converted according to a preset cross-section conversion function to obtain target type cross-section parameters; According to a preset beam structure conversion function, based on the classification and sorting information, data conversion is performed in combination with the target type grid parameters and the target type section parameters to obtain beam component format data of each beam component in the YJK model as the structural component format data; Among them, the special key information is converted into special parameters according to the type conversion function to obtain special type format data, including: determining the performance design type of the beam component according to the special key information; according to a preset attribute definition function, defining the attributes of the beam component based on the performance design type, and associating the attribute definition result with the beam component to obtain the special type format data of each beam component in the YJK model.

4. The method according to claim 1, characterized in that When the target structural component is a column component, performing functional analysis conversion on the geometric information according to a preset geometric relationship function to obtain geometric key information includes: By using a preset shape recognition function, the geometric information is used to perform shape recognition to obtain a geometric shape corresponding to each column component, wherein the geometric shape includes a cylinder or a rectangular column; When the geometric shape of the column component is a cylinder, the center of the circle is identified according to the geometric information to obtain the centroid of the cylinder corresponding to the column component as the key geometric information of the column component; When the geometric shape of the column component is a rectangular column, multiple analyses are performed according to the geometric information to obtain the centroid of the rectangular column, the column rotation angle formed by the column plane corresponding to the column component on the two-dimensional axis, and eccentricity information, wherein the eccentricity information includes off-axis eccentricity and along-axis eccentricity; The key geometric information of the column component is determined according to the rectangular column centroid, the column rotation angle and the eccentricity information.

5. The method according to claim 4, characterized in that The step of performing parameter conversion processing on the key structural information according to the structural conversion function to obtain structural component format data includes: Generate column nodes according to the column centroid in the geometric key information, and extract cross-sectional information corresponding to the column member from the structural key information; When the geometric shape of the column component is a cylinder, generating structural component format data according to the node parameters of the column node and the section parameters of the section information; When the geometric shape of the column component is a rectangular column, obtaining a reload function; According to the overload function, based on the node parameters of the column node, combined with the section parameters of the section information and the eccentricity information, the column component format data of each column component in the YJK model is generated as the structural component format data; Among them, the special key information is converted into special parameters according to the type conversion function to obtain special type format data, including: determining the node set according to the column node, and determining the load type of the column component according to the special key information according to the preset load type identification function, performing special conversion based on the node set and the load type to obtain the special type format data of each column component in the YJK model.

6. The method according to claim 1, characterized in that When the target structural component is a plate component, performing function analysis conversion on the geometric information according to a preset geometric relationship function to obtain geometric key information includes: Performing identification processing according to the geometric information of the plate component to obtain the plate surface; Performing geometric analysis and plastic transformation on the plate surface to obtain the centroid coordinates of the floor plate of the plate component; Performing coordinate traversal and point coordinate deduplication processing on the plate surface to obtain a corner point coordinate set, wherein the corner point coordinate set includes the coordinates of each corner point in the plate component; Geometric key information is generated according to the floor slab centroid coordinates and the corner point coordinate set.

7. The method according to claim 6, characterized in that The step of performing parameter conversion processing on the key structural information according to the structural conversion function to obtain structural component format data includes: Creating a floor slab centroid according to the floor slab centroid coordinates, and determining a floor slab thickness parameter and a staggered layer parameter according to the geometric key information of the plate component; Generate dead load parameters and live load parameters using the geometric key information through a preset load function; Based on the floor slab centroid, combined with the floor slab thickness parameter, the staggered layer parameter, the dead load parameter and the live load parameter, the plate component format data of each plate component in the YJK model is generated as the structural component format data; Among them, the special key information is converted into special parameters according to the type conversion function to obtain special type format data, including: obtaining the special definition of the plate component from the special key information; performing special conversion according to the constant load parameters, the live load parameters and the special definition to obtain the special type format data of each plate component in the YJK model.

8. A device for converting Revit modeling files into YJK model files, characterized in that: include: A model file acquisition module is used to acquire a model file to be converted, wherein the model file to be converted is a Revit modeling file; a structural data parsing module, configured to perform structural data parsing according to the model file to be converted, and obtain at least one target structural component and parameter information corresponding to the target structural component, wherein the target structural component includes at least one of a beam component, a plate component and a column component, and the parameter information includes instance parameters and type parameters; A conversion extraction module, used to extract conversion information according to the parameter information to obtain key information; A parsing and conversion module, used for performing data parsing and conversion and special parsing and conversion on the key information through the instance function relationship corresponding to the target structural component, to obtain target conversion format data, wherein the target conversion format data includes structural component format data and special type format data; A target model file generating module, used to generate a target model file according to the structural component format data and the special type format data, wherein the target model file is a YJK model file; Wherein, the key information includes structural key information and special key information, and the conversion and extraction module includes: a geometric analysis extraction submodule, which is used to extract relevant key information from the parameter information, and perform geometric analysis extraction according to the parameter information to obtain geometric information corresponding to the target structural component; a function analysis conversion submodule, which is used to perform function analysis conversion on the geometric information according to a preset geometric relationship function to obtain geometric key information, and generate structural key information based on the geometric key information and relevant key information; a special item analysis submodule, which is used to perform special item identification and analysis according to the parameter information to obtain special key information; The parsing and conversion module includes: a conversion function acquisition submodule, which is used to obtain the structural conversion function and the type conversion function corresponding to the target structural component; a parameter conversion processing submodule, which is used to perform parameter conversion processing on the structural key information according to the structural conversion function to obtain structural component format data; and a special parameter conversion submodule, which is used to perform special parameter conversion on the special key information according to the type conversion function to obtain special type format data.

Citation Information

Patent Citations

  • Revit three-dimensional platform-based pile foundation automatic generation and three-dimensional calculation method

    CN106599477A

  • Building information extraction and format conversion method based on three-dimensional BIM

    CN107766410A