Method and device for converting Revit modeling file into YJK model file

By analyzing the Revit model file and using functional relationships to convert it into YJK format data, the problem of low conversion efficiency of Revit model file is solved, complete and efficient conversion of model files is realized, and the work efficiency of designers is improved.

CN119577011AActive Publication Date: 2025-03-07GUANGZHOU METRO DESIGN & RES INST CO LTD

Patent Information

Application Number
CN202411568190.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2025-03-07
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, the complete conversion of the Revit model file is realized.

Benefits of technology

It improves the conversion efficiency of model files, ensures the integrity of the conversion files, improves the work efficiency of designers, and solves the inefficiency problem caused by manual operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119577011A_ABST
    Figure CN119577011A_ABST
Patent Text Reader

Abstract

The invention 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 comprises the following steps: performing structural data analysis according to an obtained Revit to-be-converted model file to obtain at least one target structural component and parameter information corresponding to the target structural component, performing conversion information extraction according to the parameter information to obtain key information, performing data analysis conversion and special analysis conversion on the key information through an instance function relationship corresponding to the target structural component to obtain target conversion format data, and generating a YJK target model file according to the target conversion format data, according to the method and the device, the key information of the structural component is analyzed, the key information is converted into the model file in the YJK format by utilizing the function relationship, and the key information with special definition is subjected to special conversion, so that the special information of the structural component is reserved, the complete Revit model file is converted into the YJK file, and the conversion efficiency between the model files is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of modeling file conversion, and in particular to a method and device for converting a Revit modeling file into a YJK model file. Background Art

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

[0003] Currently, the most widely used BIM software in the industry is Autodesk Revit. After performing 3D design in Revit, structural engineers usually export the components in Revit into 2D DWG drawings. Using the lining function in YJK, modeling is done manually and structural calculations are performed. Since the design plan is often adjusted, structural engineers need to repeat the above operations after modifying the Revit model. This operation method is not user-friendly for designers and greatly reduces the work efficiency of designers. It can be seen that the existing conversion method of Revit modeling files has low conversion efficiency due to its reliance on manual operations. Summary of the invention

[0004] The present application provides a method and device for converting a Revit modeling file into a YJK model file, which utilizes a functional relationship to convert key information of a structural component into YJK format data, and performs a special conversion on specially defined key information, thereby retaining the special information of the structural component, thereby realizing the complete conversion of a Revit model file into a YJK file, improving the conversion efficiency of the model file, and solving the problem of low conversion efficiency caused by reliance on manual operations in existing conversion methods for Revit modeling files.

[0005] In a first aspect, the present application provides a method for converting a Revit modeling file into a YJK model file, comprising:

[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, 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;

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

[0009] 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;

[0010] A target model file is generated according to the structural component conversion format data and the special type conversion 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 the step of extracting the converted information based on the parameter information to obtain the key information includes:

[0012] Extracting relevant key information from the parameter information, and performing geometric analysis extraction based on the parameter information to obtain geometric information corresponding to the target structural component;

[0013] 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;

[0014] Special item identification and analysis are performed according to the parameter information to obtain special key information.

[0015] Optionally, 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:

[0016] Obtaining a structural conversion function and a type conversion function corresponding to the target structural component;

[0017] According to the structure conversion function, parameter conversion processing is performed on the key structure information to obtain structural component format data;

[0018] The special key information is converted into special parameters according to the type conversion function to obtain special type format data.

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

[0020] 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;

[0021] 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;

[0022] 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.

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

[0024] Generate a standard floor identifier according to the standard floor quantity information;

[0025] 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;

[0026] According to a preset beam mesh conversion function, the beam centerline information is converted to obtain target type mesh parameters;

[0027] Extracting cross-sectional property information of the beam structure from the key structural information;

[0028] The cross-section attribute information is converted according to a preset cross-section conversion function to obtain target type cross-section parameters;

[0029] 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;

[0030] 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.

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

[0032] 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;

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

[0034] 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;

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

[0036] Optionally, performing parameter conversion processing on the key structural information according to the structural conversion function to obtain structural component format data includes:

[0037] 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;

[0038] 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;

[0039] When the geometric shape of the column component is a rectangular column, obtaining a reload function;

[0040] 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;

[0041] 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.

[0042] Optionally, when the target structural component is a plate component, performing a function analysis conversion on the geometric information according to a preset geometric relationship function to obtain geometric key information includes:

[0043] Performing identification processing according to the geometric information of the plate component to obtain the plate surface;

[0044] Performing geometric analysis and plastic transformation on the plate surface to obtain the centroid coordinates of the floor plate of the plate component;

[0045] 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;

[0046] Geometric key information is generated according to the floor slab centroid coordinates and the corner point coordinate set.

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

[0048] 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;

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

[0050] 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;

[0051] 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.

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

[0053] 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;

[0054] 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;

[0055] A conversion extraction module, used to extract conversion information according to the parameter information to obtain key information;

[0056] 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;

[0057] The target model file generation module is used to generate a target model file according to the structural component conversion format data and the special type conversion format data, and the target model file is a YJK model file.

[0058] In summary, the embodiment of the present application obtains a Revit modeling file as a model file to be converted, and then performs structural data analysis 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, extracts conversion information according to the parameter information, obtains key information, performs data analysis conversion and special analysis conversion on the key information through the instance function relationship corresponding to the target structural component, obtains target conversion format data, and generates a YJK target model file according to the target conversion format data. Therefore, 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, thereby retaining the special information of the structural component, thereby realizing the complete conversion of the Revit model file to the YJK file, improving the conversion efficiency of the model file, and then improving the work efficiency of the designer, bringing a good experience to the conversion of the model file, and solving the problem of low conversion efficiency caused by the existing conversion method of the Revit modeling file due to reliance on manual operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0060] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0061] Figure 1 A flowchart of a method for converting a Revit modeling file into a YJK model file provided in an embodiment of the present application;

[0062] Figure 2 It is a schematic diagram 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;

[0063] Figure 3A schematic diagram of the starting point and end point of a beam member provided as an example of the present application;

[0064] Figure 4 A schematic diagram of the analysis of key geometric information of a column provided as an example of the present application;

[0065] Figure 5 A structural block diagram of a device for converting a Revit modeling file into a YJK model file provided in an embodiment of the present application;

[0066] Figure 6 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0068] In the related art, solutions that rely on manual operation of designers to convert Revit modeling files usually require designers to frequently perform YJK modeling manually, which not only reduces the work efficiency of designers, but also causes errors in 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, different structural components in Revit modeling files contain not only parameter information, but also some special definitions, such as load, performance design, etc. For the conversion of special definitions, the prior art usually still relies on manual conversion, or directly ignores special definitions, which cannot meet the actual conversion needs, and the conversion file is incomplete.

[0069] In order to solve the various problems existing in the above-mentioned prior art, one of the technical ideas of the present application is to obtain structural components and key information corresponding to the structural components by parsing the Revit model file, convert the key information into a model file in YJK format using a functional relationship, and perform a special conversion on the specially defined key information using a functional relationship, thereby retaining the special definition of the structural component, realizing the complete conversion of the Revit model file into the YJK model file, improving the conversion efficiency between model files, ensuring the integrity of the converted file, and solving the problems of low conversion efficiency and inability to meet actual conversion needs existing in the prior art.

[0070] To facilitate the understanding of the embodiments of the present application, further explanation will be given below in conjunction with the drawings and specific embodiments. The embodiments do not constitute a limitation on the embodiments of the present application.

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

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

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

[0074] Step 120: performing structural data analysis 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.

[0075] 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.

[0076] A unified description of steps 110 to 120 is given as follows:

[0077] In this embodiment, the Revit modeling file, as a three-dimensional modeling file, generally includes Revit standard families, wherein the Revit standard families include but are not limited to beam families, plate families, and structural column families. The Revit standard families can also be understood as target structural components.

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

[0079] In this embodiment, the instance parameter may include multiple basic attribute parameters of the structural component. For example, taking a beam component as an example, the instance parameter of the beam component may include constraint parameter information, geometric figure parameter information, and text description parameter information, etc. The type parameter may include the type corresponding to the structural component, such as but not limited to: structure, function, figure, material, analysis attribute, and identification data, etc.

[0080] Step 130: extract conversion information based on the parameter information to obtain key information.

[0081] In a specific implementation, the parameter information of structural components such as beams, plates, 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. Structural components such as beams, plates, and columns usually have corresponding geometric information, including geometric shapes, geometric types, and positions, etc. This type of parameter information can be understood as geometric types. This embodiment can perform corresponding conversion extraction for different types of parameter information.

[0082] Specifically, for geometric parameter information, this embodiment can use a conversion function to convert and extract the parameter information, thereby identifying the geometric information and converting it into key information. For non-geometric parameter information in structural components such as beams, plates, and columns, if it can be directly used as a parameter of key information, the corresponding key information can be directly extracted from the parameter information. For special parameters of special definitions in structural components such as beams, plates, and columns, the conversion function can be used to perform special conversion on the parameter information to obtain the corresponding key information.

[0083] Step 140 , 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.

[0084] The target conversion format data includes structural component format data and special type format data.

[0085] In this embodiment, each target structural component can have a corresponding instance function relationship, and the instance function relationship can actually include multiple functions for realizing the conversion of different key information in each structural component. In this embodiment, the corresponding preset instance function relationship is obtained for the target structural component, and the key information is processed using the instance function relationship to obtain the structural component format data in YJK format.

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

[0087] Step 150: Generate a target model file according to the structural component conversion format data and the special type conversion format data, wherein the target model file is a YJK model file.

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

[0089] It can be seen that the embodiment of the present application obtains a Revit modeling file as a model file to be converted, and then performs structural data analysis based on the model file to be converted to obtain at least one target structural component and parameter information corresponding to the target structural component, extracts conversion information based on the parameter information, obtains key information, performs data analysis conversion and special analysis conversion on the key information through the instance function relationship corresponding to the target structural component, obtains target conversion format data, and generates a YJK target model file based on the target conversion format data. Therefore, 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, thereby retaining the special information of the structural component, 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 for the conversion of the model file.

[0090] The embodiment of the present application can directly convert the model construction in the Revit software into a YJK model without excessive operations, making the data transfer between Revit and YJK faster and more convenient. For projects that require frequent scheme modifications to lead to structural layout and load adjustment, it can effectively improve the work efficiency and project quality of designers, save time and effort, and solve the problem of low conversion efficiency caused by the existing Revit modeling file conversion method due to reliance on manual operations.

[0091] Reference Figure 2 , shows a 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, obtaining a model file to be converted, wherein the model file to be converted is a Revit modeling file.

[0093] Step 220: performing structural data analysis 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.

[0094] 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.

[0095] For example, the beam family adds information such as the concrete grade of the beam, seismic grade, load information, beam section, etc. in the form of instance parameters and type parameters. The starting point and end point of the beam are the geometric information of the beam itself, which can be directly obtained through instance parameters and type parameters. For example, a beam with a cross-section width of 300mm and a cross-section height of 800mm is used 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, constant line load, live line load, conversion beam type, concrete, steel bar, protective layer; 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 themselves. For example, a beam has its own starting point and end point.

[0096] As an example, the column family adds information such as performance design type, bottom elevation, bottom offset, top elevation, top offset, reinforcement, seismic grade, concrete, cover, column node load, etc. in the form of instance parameters and type parameters, and the geometric information of the column itself can be directly read. For example, the instance parameters and type parameters of a column with a section width of 1000mm and a section height of 1000mm. 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, reinforcement, cover, node load; the type parameters of the column include but are not limited to: b, h.

[0097] For example, the slab has information such as dead load, live load, fire truck load, concrete, elevation, height offset from elevation, floor type, etc., as well as the slab's own geometric parameter information such as floor thickness, floor profile, etc., in the form of instance parameters and type parameters. For example, a slab with a thickness of 300 mm is used as an example of instance parameters and type parameters. The slab's own geometric information can be directly read, and the slab's instance parameters can include but are not limited to: elevation, height offset from elevation, dead load, live load, fire truck load, concrete, floor type; the slab's type parameters include but are not limited to: default thickness.

[0098] Step 230: extract relevant key information from the parameter information, and perform geometric analysis extraction based on the parameter information to obtain geometric information corresponding to the target structural component.

[0099] Step 240 , 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.

[0100] A unified description of steps 230 to 240 is given as follows:

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

[0102] In a specific implementation, the geometric key information generally refers to the geometric shape information of the target structural component, including but not limited to: geometric shape, geometric center, length, width, height, etc. This embodiment can directly parse and obtain the geometric information corresponding to the structural component from the instance parameters and type parameters, and perform function parsing conversion on the geometric information using a preset geometric relationship function, thereby obtaining the geometric key information.

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

[0104] In this embodiment, the key information of beam family conversion may include but is not limited to: performance design type, reference elevation, reinforcement, seismic resistance level, constant line load, live line load, conversion beam type, concrete, protective layer, beam section, Z-axis offset value, and the 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. For example, the start and end points of the beam can be directly obtained from the geometric information of the beam using the GetEndPoint(0) and GetEndPoint(1) functions of the C# Revit API, such 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 components of all layers according to the reference elevation, and classify those belonging to the same reference elevation into the same layer. They are sorted from small to large according to the value of the reference elevation (the reference elevation here is actually equal to the floor elevation), obtain the classification and sorting information, and determine the number of standard layers based on the results of the classification and sorting.

[0107] In an optional embodiment, when the target structural component is a column component, the embodiment of the present application performs a function analysis conversion on the geometric information according to a preset geometric relationship function to obtain geometric key information, which may specifically include: using a preset shape recognition function to perform shape recognition using the geometric information to obtain a geometric shape corresponding to each of the column components, wherein the geometric shape includes a cylinder or a rectangular column; when the geometric shape of the column component is a cylinder, performing circle center recognition according to the geometric information to obtain the cylinder centroid corresponding to the column component as the geometric key information of the column component; when the geometric shape of the column component is a rectangular column, performing multiple analyses according to the geometric information to obtain the rectangular column centroid, 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; determining the geometric key information of the column component according to the rectangular column centroid, the column rotation angle, and the eccentricity information.

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

[0109] In this embodiment, the geometric information of the column family is analyzed and obtained to obtain the centroid, rotation angle, width and height of the cross section, and X-direction deviation distance ExcX (such as Figure 4 As shown), the Y-direction deviation distance ExcY of the column (as shown Figure 4 As shown), whether it is cylindrical and other key information.

[0110] For example, use C# Revit API to extract the return value of Symbol.FamilyName.Contains("Circle") of the column family to determine whether it is a cylinder. If it returns True, it is a cylinder, and if it returns False, it is a rectangular column. If it is a cylinder, the center of the circle is the centroid of the column, and the column rotation angle and ExcX and ExcY are all 0; if it is a rectangular column, the intersection of the diagonal lines is the centroid of the column, and the angle formed by the Y-direction side of the column plane and the X-axis is determined to obtain the column rotation angle. Then use Figure 4 As shown in the figure, the ExcX and ExcY of the rectangular column are obtained. The remaining key information can be obtained by reading the instance parameters and type parameter table.

[0111] In an optional embodiment, when the target structural component is a plate component, the embodiment of the present application performs function analysis and transformation on the geometric information according to a preset geometric relationship function to obtain geometric key information, which may specifically include: performing identification processing based on the geometric information of the plate component to obtain the plate surface; performing geometric analysis and plastic transformation based on the plate surface to obtain the floor centroid coordinates of the plate component; performing coordinate traversal and point coordinate deduplication processing based 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; generating geometric key information based on the floor centroid coordinates and the corner point coordinate set.

[0112] In this embodiment, the key information of the slab conversion includes but is not limited to: dead load, live load, fire truck load, concrete, elevation, height offset from elevation, floor type, floor centroid coordinates, floor thickness, floor staggered, and coordinate geometry of each corner point of the floor. Among them, the key information such as the floor centroid coordinates of the column and the coordinate geometry of each corner point of the floor can be obtained through the geometric information of the column family itself.

[0113] For example, the C#RevitAPI is used to obtain the upper surface Face (i.e., the plate surface) of the floor entity, and then mathematical operations are used to find the geometric center of this Face. This center is the centroid coordinate of the floor. Because the coordinates of the plate in YJK must be of Int (integer) type, the X and Y values ​​of the coordinates just obtained must be converted to Int type. For the coordinates of each corner point of the floor, C#RevitAPI provides the GetEdgesAsCurveLoops function, finds the upper surface Face just now, uses the GetEdgesAsCurveLoops function to obtain the collection of upper surface CurveLoop, traverses the sub-element Curve of each CurveLoop, adds the starting point and end point set of Curve to a new set, and generates the coordinates of each corner point of the floor. Finally, the point coordinate set is deduplicated to obtain the final coordinates of each corner point of the floor. For other key information, you can query and obtain it in the instance parameter and type parameter table.

[0114] Step 250: perform special item identification and analysis based on the parameter information to obtain special key information.

[0115] 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 component definition, load, special load (such as fire truck load), floor type, performance design, pre-processing parameters and other information.

[0117] This embodiment obtains the special items corresponding to each structural component by identifying the parameter information, and parses the parameter information corresponding to the special characteristics to obtain the special key information.

[0118] Step 260: Obtain the structural conversion function and the type conversion function corresponding to the target structural component.

[0119] Step 270: Perform parameter conversion processing on the structural key information according to the structural conversion function to obtain structural component 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. This implementation can use the structure conversion function to perform parameter conversion processing on the structure key information to obtain the structural component format data in the YJK format, and use the type conversion function to perform special parameter conversion on the special key information to obtain the special type format data in the YJK format, that is, execute step 280.

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

[0122] In an optional embodiment, when the target structural component is a beam component, the embodiment of the present application performs parameter conversion processing on the structural key information according to the structural conversion function to obtain structural component format data, which may specifically include: generating a standard layer identifier according to the standard layer quantity information; converting the standard layer identifier and the start and end point information according to a preset beam centerline conversion function to obtain beam centerline information; converting the beam centerline information according to a preset beam grid conversion function to obtain target type grid parameters; extracting section attribute information of the beam structure from the structural key information; converting the section attribute information according to a preset section conversion function to obtain target type section parameters; performing data conversion according to a preset beam structure conversion function based on the classification and sorting information, combined 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.

[0123] For example, YJKnetApi provides a beam_arrange function for generating beams in YJK. The beam_arrange function requires an Mdl_Grid type parameter and an Mdl_BeamSect type parameter. The Joint_Generate function provided by YJK can be used to process the extracted beam start and end information to generate two Mdl_Joint nodes. The number of standard layers to be generated is obtained according to the reference elevation, and the standard layer is defined using the StdFlr_Generate function. The standard layer ID is generated by obtaining its ID attribute, and the standard layer ID is used as the input parameter of the Axis_Generate function. Then, the two generated nodes are combined with the standard layer ID to form an axis Mdl_Axis (that is, the centerline information of the beam) using the Axis_Generate function provided by YJK. After the axis is generated, the Grid_Generate function of YJK is used to generate a grid of the Mdl_Grid type. Mdl_BeamSect is a section definition type. The section (width and height of the beam) can be obtained through the key information of the beam. Combined with the YJK function BeamSect_Def, a parameter of the Mdl_BeamSect type can be generated. Finally, combined with the beam_arrange function, beams can be generated in different standard layers in YJK, and the beam component format data of each beam component in the YJK model can be obtained.

[0124] Therefore, for the beam structure components in the Revit model file, this embodiment makes full use of the functional relationship to perform reasonable conversion, so that each beam component and its corresponding related attribute information can be converted into a YJK model file and can be used in the YJK model.

[0125] In an optional embodiment, when the target structural component is a column component, the embodiment of the present application performs parameter conversion processing on the structural key information according to the structural conversion function to obtain structural component format data, which may specifically include: generating a column node according to the column centroid in the geometric key information, and extracting the cross-sectional information corresponding to the column component 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 cross-sectional parameters of the cross-sectional information; when the geometric shape of the column component is a rectangular column, obtaining an overload function; according to the overload function, based on the node parameters of the column node, combined with the cross-sectional parameters of the cross-sectional information and the eccentricity information, generate the column component format data of each column component in the YJK model as the structural component format data.

[0126] For example, YJKnetApi provides a column_arrange function for generating columns in YJK. This function requires a parameter of type Mdl_Joint and a parameter of type Mdl_ColSect. Use the YJK function Joint_Generate to convert the extracted column centroid information and generate an Mdl_Joint node. Then use the YJK ColSect_Def function to define the column section. This function returns a value of type Mdl_ColSect, and the column section can be directly obtained through key information. If it is a cylinder, use column_arrange directly, pass in parameters of type Mdl_Joint and type Mdl_ColSect to generate the cylinder. If it is a rectangular column, you need to use another overloaded function of the column_arrange function, pass in 5 parameters to generate it, and pass in the parameters of the Mdl_Joint type, the Mdl_ColSect type, ExcX, ExcY, and the corner in turn to generate a rectangular column, so as to generate a column in YJK and obtain the column component format data of each column component in the YJK model.

[0127] Therefore, for the column structural components in the Revit model file, this embodiment makes full use of the functional relationship to perform reasonable conversion, retains the cross-section, geometric shape and eccentricity information corresponding to each column structural component, ensures that each column component can be completely converted into a YJK model file and can be used in the YJK model.

[0128] In an optional embodiment, when the target structural component is a plate component, the embodiment of the present application performs parameter conversion processing on the structural key information according to the structural conversion function to obtain structural component format data, which may specifically include: creating a floor centroid according to the floor centroid coordinates, and determining the floor thickness parameter and the staggered layer parameter according to the geometric key information of the plate component; generating constant load parameters and live load parameters using the geometric key information through a preset load function; based on the floor centroid, combined with the floor thickness parameter, the staggered layer parameter, the constant load parameter and the live load parameter, generating the plate component format data of each plate component in the YJK model as the structural component format data.

[0129] For example, YJKnetApi provides a slab_arrange function for generating slabs in YJK. This function requires a parameter of the SlabCreateInfo type. The SlabCreateInfo type contains the SetCentroid function. The SetCentroid function is used to process the extracted key information of the slab to create the centroid of the slab. The two parameters of SetCentroid are the coordinates of the centroid, and then the thickness of the slab is set. YJKnetApi provides the SetThick function. The function requires a thickness parameter, which can be obtained from the key information, and then the SetCc parameter is used to set the staggered floors of the slab. The SetDeadLive function is used to set the dead load and live load for the slab. After setting the above parameters, SlabCreateInfo is directly passed into the slab_arrange function to generate the slab in YJK and obtain the slab component format data of each slab component in the YJK model.

[0130] Therefore, for the plate structural components in the Revit model file, this embodiment makes full use of the functional relationship to perform reasonable conversion, retains the centroid coordinates, thickness, dead load, live load and other information corresponding to each plate component, and ensures that each plate component can be completely converted into a 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] The target conversion format data includes structural component format data and special type format data.

[0133] This embodiment reasonably converts the special definitions corresponding to components such as beams, plates, and columns by utilizing functional relationships, thereby retaining the special information of the structural components and improving the conversion efficiency between model files.

[0134] In an optional embodiment, when the target structural component is a beam component, the special key information is converted into special parameters 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; defining the attributes of 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 special type format data of each beam component in the YJK model.

[0135] For example, for the conversion of the performance design of a beam component, the beam properties can be defined first, such as Propertyproper = new Property("SpBeam"). If the beam is a key component, then property.setVal(19,1) is obtained; if the beam component is an energy-absorbing component, then property.setVal(19,3) is obtained. Finally, property_arrange is used to associate the property definition with the beam to define the performance design.

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

[0137] For example, add a load to a column and use the function load_arrange provided by YJKnetApi to add a node load to the column. It accepts two parameters, one for the node set and the other for the load type. Use the function Load_Def to get the load type, return a value of type Mdl_LoadSect, and then combine this value with the node set and pass it into load_arrange to generate a node load for the column.

[0138] In an optional embodiment, when the target structural component is a plate component, 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 a special conversion according to the constant load parameters, the live load parameters and the special definition to obtain special type format data of each plate component in the YJK model.

[0139] In a specific implementation, the special definition of the floor includes a fire truck load, a floor type, etc. For converting the fire truck load, this embodiment converts the fire truck load into the YJK model file by combining the special definition of the floor with the two parameters of the dead load and the live load.

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

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

[0142] In summary, the embodiment of the present application obtains a Revit modeling file as a model file to be converted, performs structural data analysis according to the model file to be converted, obtains at least one target structural component and parameter information corresponding to the target structural component, extracts relevant item key information from the parameter information, and performs geometric analysis extraction according to the parameter information to obtain geometric information corresponding to the target structural component, then performs function analysis conversion on the geometric information according to a preset geometric relationship function to obtain geometric key information, and generates structural key information based on the geometric key information and relevant item key information, and then performs special item identification and analysis according to the parameter information to obtain structural key information and special key information. Subsequently, according to the preset structural conversion function, parameter conversion processing is performed on the structural key information to obtain structural component format data, and according to the preset type conversion function, special parameter conversion is performed on the special key information to obtain special type format data, and a YJK model file is generated according to the structural component conversion format data and the special type conversion format data. Therefore, this application parses the key information of structural components, converts the key information into YJK format data using functional relationships, and performs special conversion on specially defined key information, thereby retaining the special information of structural components, thereby realizing the complete conversion of Revit model files to YJK files, improving the conversion efficiency of model files, and then improving the work efficiency of designers, bringing a good experience for the conversion of model files. This application solves: ① The problem of low conversion efficiency caused by reliance on manual operations in existing Revit modeling file conversion methods; ② 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 purpose of simple description, the method embodiments are expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited to the described order of actions, because according to the embodiments of the present application, certain steps may be performed in other orders or simultaneously.

[0144] like Figure 5 As shown, the embodiment of the present application also provides a device 500 for converting a Revit modeling file into a YJK model file, comprising:

[0145] The model file acquisition module 510 is used to acquire the model file to be converted, wherein the model file to be converted is a Revit modeling file;

[0146] A structural data parsing module 520 is used 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;

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

[0148] The parsing and conversion module 540 is used 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 component to obtain target conversion format data, wherein the target conversion format data includes structural component format data and special type format data;

[0149] The target model file generating module 550 is used to generate a target model file according to the structural component conversion format data and the special type conversion format data, and 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 submodule is used to extract key information of related items from the parameter information, and perform geometric analysis and extraction according to the parameter information to obtain geometric information corresponding to the target structural component;

[0152] A function analysis conversion submodule is used to perform function analysis conversion on the geometric information according to a preset geometric relationship function to obtain geometric key information, and to generate structural key information based on the geometric key information and related item key information;

[0153] The special item parsing submodule is used to perform special item identification and parsing according to the parameter information to obtain special key information.

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

[0155] A conversion function acquisition submodule is used to acquire a structural conversion function and a type conversion function corresponding to the target structural component;

[0156] A parameter conversion processing submodule is used to perform parameter conversion processing on the key structural information according to the structural conversion function to obtain structural component format data;

[0157] The special parameter conversion submodule is used to perform 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 component is a beam component, the function parsing conversion submodule includes:

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

[0160] A classification and sorting unit, used to classify and sort the beam components of all layers according to the reference elevation information, and obtain classification and sorting information and standard layer quantity information;

[0161] The geometric key information generating unit is used to generate the geometric key information of the beam component based on the starting and ending point information, the classification and sorting information and the standard layer quantity information.

[0162] Optionally, when the target structural component is a column component, the function parsing conversion submodule includes:

[0163] A shape recognition unit, configured to perform shape recognition using the geometric information through a preset shape recognition function to obtain a geometric shape corresponding to each of the column components, wherein the geometric shape includes a cylinder or a rectangular column;

[0164] A first geometric key information determination unit is used to identify the center of a circle according to the geometric information when the geometric shape of the column component is a cylinder, and obtain the centroid of the cylinder corresponding to the column component as the geometric key information of the column component;

[0165] A multi-item analysis unit, used for performing multi-item analysis according to the geometric information when the geometric shape of the column component is a rectangular column, 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;

[0166] The second geometric key information determination unit is used to determine the geometric key information of the column component according to the rectangular column centroid, the column rotation angle and the eccentricity information.

[0167] Optionally, when the target structural component is a plate component, the function parsing conversion submodule includes:

[0168] An identification processing unit, used for performing identification processing according to the geometric information of the plate component to obtain the plate surface;

[0169] A geometric analysis and shaping conversion unit, used for performing geometric analysis and shaping conversion according to the plate surface to obtain the centroid coordinates of the floor plate of the plate component;

[0170] A traversal and deduplication processing unit, used for performing coordinate traversal and point coordinate deduplication processing according to 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;

[0171] The third geometric key information determination unit is used to generate geometric key information according to the floor slab centroid coordinates and the corner point coordinate set.

[0172] Optionally, when the target structural component is a plate component, the parameter conversion processing submodule includes:

[0173] A creation unit, used to create a floor slab centroid according to the floor slab centroid coordinates, and determine a floor slab thickness parameter and a staggered layer parameter according to the geometric key information of the plate component;

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

[0175] A plate component format data generating unit is used to generate the plate component format data of each plate component in the YJK model 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, so as to serve as the structural component format data.

[0176] Optionally, when the target structural component is a plate component, the special parameter conversion submodule is specifically used to: obtain the special definition of the plate component from special key information; perform special conversion according to the constant load parameters, the live load parameters and the special definition to obtain special type format data of each plate component in the YJK model.

[0177] Optionally, when the target structural component is a beam component, the parameter conversion processing submodule includes:

[0178] A standard layer identifier generating unit, configured to generate a standard layer identifier according to the standard layer quantity information;

[0179] A beam centerline information conversion unit, used to convert the standard layer identifier and the start and end point information according to a preset beam centerline conversion function to obtain the beam centerline information;

[0180] A target type grid parameter determination unit is used to convert the beam centerline information according to a preset beam grid conversion function to obtain a target type grid parameter;

[0181] A cross-sectional property extraction unit, used to extract cross-sectional property information of the beam structure from the key structural information;

[0182] A target type section parameter determination unit, used to convert the section attribute information according to a preset section conversion function to obtain a target type section parameter;

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

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

[0185] Optionally, when the target structural component is a column component, the parameter conversion processing submodule includes:

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

[0187] A first structural member format data generating unit, when the geometric shape of the column member is a cylinder, generates structural member format data according to the node parameters of the column node and the cross-sectional parameters of the cross-sectional information;

[0188] An overload function acquisition unit, used for acquiring an overload function when the geometric shape of the column component is a rectangular column;

[0189] The second structural component format data generating unit is used to generate the column component format data of each column component in the YJK model 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, as the structural component format data.

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

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

[0192] In a specific implementation, the above-mentioned device for converting a Revit modeling file into a YJK model file can be integrated into a device, so that the device can perform data parsing conversion and special parsing conversion according to the instance function relationship for the key information corresponding to each structural component in the Revit modeling file, 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 it can be composed of one physical entity, such as a personal computer (PC), a computer, a server, etc., and the embodiment of the present application does not make specific restrictions on this.

[0193] like Figure 6As shown, 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, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114; the memory 113 is used to store computer programs; the processor 111 is used to execute the program stored in the memory 113, and implement the steps of the method for converting Revit modeling files to YJK model files provided by any of the aforementioned method embodiments. Exemplarily, the steps of the method for converting a Revit modeling file to a YJK model file may include the following steps: obtaining a model file to be converted, wherein the model file to be converted is a Revit modeling file; performing 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; performing conversion information extraction 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; generating a target model file according to the structural component conversion format data and the special type conversion format data, wherein the target model file is a YJK model file.

[0194] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for converting a Revit modeling file into a YJK model file provided in any of the aforementioned method embodiments are implemented.

[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 such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0196] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent 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 the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for 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; A target model file is generated according to the structural component conversion format data and the special type conversion format data, and the target model file is a YJK model file.

2. The method according to claim 1, characterized in that The key information includes structural key information and special key information, and the key information is obtained by performing conversion information extraction based on the parameter information, including: Extracting relevant 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; Special item identification and analysis are performed according to the parameter information to obtain special key information.

3. The method according to claim 2, characterized in that The data parsing conversion and special parsing conversion are performed on the key information through the instance function relationship corresponding to the target structural component to obtain the target conversion format data, including: Obtaining a structural conversion function and a type conversion function corresponding to the target structural component; According to the structure conversion function, parameter conversion processing is performed on the key structure information to obtain structural component format data; The special key information is converted into special parameters according to the type conversion function to obtain special type format data.

4. The method according to claim 3, characterized in that When the target structural component is a beam component, performing functional 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.

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 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 structure 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.

6. The method according to claim 3, 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.

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: 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.

8. The method according to claim 3, 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.

9. The method according to claim 8, 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.

10. 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; The target model file generation module is used to generate a target model file according to the structural component conversion format data and the special type conversion format data, and the target model file is a YJK model file.

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

  • 4d vizualization of building design and construction modeling with photographs

    US20150310135A1

Cited By

  • Data processing method and device for conversion from Revit to YJK model and medium

    CN121437773A

  • A data processing method, device and medium for converting from Revit to YJK model

    CN121437773B

  • Model conversion method from YJK to REVIT, equipment and medium

    CN121580498A