CN113934684B - Data format automatic conversion method and device, electronic equipment and storage medium - Google Patents

Data format automatic conversion method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113934684B
CN113934684B CN202111536762.XA CN202111536762A CN113934684B CN 113934684 B CN113934684 B CN 113934684B CN 202111536762 A CN202111536762 A CN 202111536762A CN 113934684 B CN113934684 B CN 113934684B
Authority
CN
China
Prior art keywords
revit
model
data
conversion
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111536762.XA
Other languages
Chinese (zh)
Other versions
CN113934684A (en
Inventor
朱明�
秦川
聂上森
赵见
徐益飞
肖春红
胡唯哲
吴卓坤
雷秉川
肖怡
赵飞
邱瑞成
亢捷
但晨
孙中秋
敖维林
杨体旺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Communication Surveying and Design Institute Co Ltd
Original Assignee
Sichuan Communication Surveying and Design Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Communication Surveying and Design Institute Co Ltd filed Critical Sichuan Communication Surveying and Design Institute Co Ltd
Priority to CN202111536762.XA priority Critical patent/CN113934684B/en
Publication of CN113934684A publication Critical patent/CN113934684A/en
Application granted granted Critical
Publication of CN113934684B publication Critical patent/CN113934684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method and a device for automatically converting a data format, electronic equipment and a storage medium, and belongs to the technical field of data conversion. The method comprises the following steps: deploying a model data management system according to the highway project; constructing different types of Revit models based on the model data management system; developing different data conversion templates aiming at the different types of Revit models, and establishing the templates as windows services; and calling the windows service to complete the data conversion from the Revit model to the multiple GIS platforms. The invention solves the problem of full-automatic conversion of a large number of different types of Revit models to multiple GIS platforms in a highway project.

Description

Data format automatic conversion method and device, electronic equipment and storage medium
Technical Field
The invention belongs to the technical field of data conversion, and particularly relates to a method and a device for automatically converting a data format, electronic equipment and a storage medium.
Background
With the deep application of the BIM technology in the transportation industry of China, the single technology application is more and more difficult to meet the increasingly complex informatization requirements of users. In the field of highways, the combination of the BIM technology and the GIS technology can not only describe the attributes of data in detail from the micro-scale, but also accurately express the real geographic environment from the macro-scale, so that the combination of the BIM technology and the GIS technology becomes a research hotspot for the application of the BIM technology of highways. The existing BIM and GIS technical fusion scheme is mainly divided into two types: one is aiming at the conversion of two standards of BIM standard IFC and GIS standard CityGML, the conversion method mainly solves the mapping of two standard semantic information from a theoretical level, and the application range is mainly aiming at the urban three-dimensional model, so that the practicability and the application range are limited; the second is the integration of the BIM software and the GIS software, and the method is mainly realized by converting the BIM data into the data format of the GIS platform, and becomes the main mode of BIM and GIS integration. The invention adopts the second scheme to perform technical fusion of BIM and GIS. However, due to the lack of a unified data standard between the BIM and the GIS, the model data created by the BIM modeling platform cannot be directly applied to the GIS platform, and therefore, complex data conversion is necessary to realize the fusion of the BIM and the GIS. Because the conversion process relates to contents such as data reading and writing, attribute hooking, coordinate system conversion and the like, the existing conversion method does not have a conversion tool directly facing a GIS platform, needs a large amount of manual participation, and has complex conversion process and low efficiency.
Disclosure of Invention
Aiming at the defects in the prior art, the data format automatic conversion method, the data format automatic conversion device, the electronic equipment and the storage medium provided by the invention have the advantages that systematic and informationized management is carried out on a large number of Revit models in highway engineering, and the data automatic conversion from the Revit models to multiple GIS platforms is completed through the service Revit plug-in the Revit platforms, so that the conversion processing efficiency of the models is improved, and the full automation of the processing process is realized.
In order to achieve the above purpose, the invention adopts the technical scheme that:
the scheme provides an automatic data format conversion method, which comprises the following steps:
s1, deploying the model data management system according to the highway project;
s2, constructing different types of Revit models based on the model data management system;
s3, developing different data conversion templates aiming at the different types of Revit models, and creating the templates into windows services;
and S4, calling the windows service to realize automatic conversion of data formats.
The invention has the beneficial effects that: the invention combines an information management system to perform information management on the Revit model information to be built of the highway project, and establishes a network foundation for automatic data conversion, namely, the invention performs systematic and information management on a large number of Revit models in the highway project, and completes data conversion from the Revit models to multiple GIS platforms through the service Revit plug-in the Revit platforms, thereby improving the conversion processing efficiency of the models and realizing full automation of the processing process.
Further, the model data management system in step S1 includes a Revit platform including a Revit plug-in, a server connected to the Revit platform, and a GIS platform and a web page terminal respectively connected to the server, where the Revit platform is connected to the GIS platform through the server;
the Revit platform is used for creating a Revit model and realizing data format conversion and data uploading;
the server is used for storing highway projects and Revit model information to be built;
the webpage end is used for providing a management interface of the highway project and the Revit model information to be built;
the information of the Revit model to be built is used for creating records comprising initial information and achievement data, wherein the initial information comprises the name of the Revit model, the type of the Revit model, the coordinate offset of the Revit model, the coordinate system of the Revit model, the expressway project to which the Revit model belongs and the Revit project; the attribute field of the achievement data comprises fields for storing FBX, XML and GIS file data;
and the GIS platform is used for loading the converted GIS file data through a server or releasing network GIS service through the GIS file data.
The beneficial effects of the further scheme are as follows: the invention manages the Revit model information to be built of the expressway project by combining with an information management system, connects the originally independent Revit platform and the GIS platform through the server, realizes the interconnection and intercommunication of data and establishes a network foundation for the automatic data conversion.
Still further, the step S2 includes the steps of:
s201, based on the model data management system, when a Revit project is created, according to original coordinates of an origin
Figure 737860DEST_PATH_IMAGE001
And coordinate offset
Figure 411418DEST_PATH_IMAGE002
Determining current model origin coordinates
Figure 141476DEST_PATH_IMAGE003
With the origin coordinates
Figure 466147DEST_PATH_IMAGE004
Constructing a Revit model for the origin, and offsetting coordinates
Figure 990669DEST_PATH_IMAGE005
Sending the Revit model information to be built corresponding to the server for storage;
s202, in Revit engineering, taking an element identifier ElementID generated by a Revit platform for each model component as a unique identifier of the Revit model component;
s203, uploading the Revit engineering file comprising the unique identifier to Revit model information to be built corresponding to the server through the webpage end, and completing construction of different types of Revit models.
The beneficial effects of the further scheme are as follows: in the invention, accurate spatial reference information of model data is given by setting coordinate offset in the creation stage of the Revit model, so that the coordinate offset can be conveniently obtained from a server in a subsequent FME conversion module for automatic conversion; meanwhile, the original Revit project file is managed through the server, and data can be directly obtained from the server to perform batch processing operation when the Revit plug-in service runs.
Still further, the step S3 includes the steps of:
s301, respectively developing a model derivation module and an FME conversion module aiming at different types of Revit models;
and S302, establishing the model export module and the FME conversion module as windows service for a user to call.
The beneficial effects of the further scheme are as follows: the invention develops the corresponding export module and FME conversion module aiming at different types of structural objects existing in the highway project, can effectively cover all types of structural objects, is convenient for the expansion and maintenance of the modules and ensures the stable and reliable conversion process; and the related modules are serviced, so that the automation degree is greatly improved.
Still further, the model export module in step S301 is configured to export and upload FBX model data, and specifically includes:
a1, developing a Revit plug-in by using a CustomExporter class and an IExportContext interface provided by a developer by using a Revit platform, and exporting model data in an FBX format by realizing that an IExportContext interface declares that an instance is transmitted to the CustomExporter class, wherein the CustomExporter represents a custom export class provided by the Revit platform for the developer and is used for realizing export behavior, and the IExportContext represents a model export interface provided by the Revit platform for a user and is used for defining exported content;
a2, describing the derived parent-child relationship of FBX model data by using a tree structure, storing the parent-child relationship and the unique identifier ElementID of the Revit model component through XML data, deriving the stored parent-child relationship and the unique identifier ElementID of the Revit model component together with the FBX model data, uploading the derived parent-child relationship and the unique identifier ElementID of the Revit model component to the Revit model information to be created corresponding to the server, and finishing the derivation and uploading of the FBX model data.
The beneficial effects of the further scheme are as follows: the FBX model data is derived to serve as the intermediate data format, and the data format has wide application range, so that more convenience is provided for the application of third-party tools including FME; the derived FBX data contains ElementID, and the original hierarchical structure of the model data is accurately described through the tree structure, so that accurate description information is provided for deep-level business application of the model data.
Still further, in step S301, the FME conversion module is configured to export GIS file data, and specifically:
b1, acquiring initial conversion parameters from a server, wherein a Revit model coordinate system is read in a character string mode;
b2, reading FBX model data through a Reader of the FME conversion module, extracting a unique identifier ElementID of a Revit model component, and offsetting according to the coordinate offset of the Revit model, wherein the Reader represents a data read-in converter provided by the FME conversion module for a user;
b3, reading XML data through a Reader of the FME conversion module, and matching unique identifiers ElementID of Revit model components of the XML data and the FBX model data after deviation;
b4, judging whether the matching is passed or not according to the matching result, if so, performing attribute hooking processing, and entering the step B5, otherwise, filtering unmatched FBX model data, and returning to the step B1;
b5, converting coordinates of the FBX model data after attribute hooking, taking a coordinate system read by a server as an original coordinate system, and taking WGS84 or CGCS2000 as a target coordinate system;
and B6, exporting the GIS file data through a Writer of the FME conversion module after the coordinate conversion processing is completed, wherein the Writer represents a data writing-out converter provided by the FME conversion module for a user.
The beneficial effects of the further scheme are as follows: the invention adopts the FME conversion template to realize data conversion, has strong expandability and reusability and has strong universality for Revit model conversion.
Based on the above method, the present invention also provides an automatic data format conversion device, which comprises:
the model data management system deployment sub-device is used for deploying the model data management system according to the expressway project;
the Revit model construction sub-device is used for constructing different types of Revit models based on the model data management system;
the data conversion template development sub-device is used for developing different data conversion templates aiming at the different types of Revit models and establishing the data conversion templates as windows services;
and the automatic conversion sub-device is used for calling the windows service and realizing the automatic conversion of the data format.
The invention has the beneficial effects that: the invention manages the Revit model information to be built of the highway project by combining an information management system, and establishes a network foundation for automatic data conversion, namely, the invention completes the data conversion from the Revit model to a plurality of GIS platforms by systematically and informationally managing a large number of Revit models in the highway engineering and by using a service plug-in the Revit platform, thereby improving the conversion processing efficiency of the models and realizing the full automation of the processing process.
The invention provides an electronic device which comprises a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor executes the program to realize a data format automatic conversion method.
The present invention provides a computer-readable storage medium storing a computer program which is executed by a processor to implement a data format automatic conversion method.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Fig. 2 is a schematic structural diagram of the model data management system in this embodiment.
FIG. 3 is a schematic view of the structure of the apparatus of the present invention.
Detailed Description
The following description of the embodiments of the present invention is provided to facilitate the understanding of the present invention by those skilled in the art, but it should be understood that the present invention is not limited to the scope of the embodiments, and it will be apparent to those skilled in the art that various changes may be made without departing from the spirit and scope of the invention as defined and defined in the appended claims, and all matters produced by the invention using the inventive concept are protected.
Example 1
As shown in fig. 1, the present invention provides an automatic data format conversion method, which includes the following steps:
s1, deploying the model data management system according to the highway project;
as shown in fig. 2, the model data management system includes a Revit platform including a Revit plug-in, a server connected to the Revit platform, and a GIS platform and a web page terminal respectively connected to the server, where the Revit platform is connected to the GIS platform through the server;
the Revit platform is used for creating a Revit model and realizing data format conversion and data uploading;
the server is used for storing highway projects and Revit model information to be built;
the webpage end is used for providing a management interface of the highway project and the Revit model information to be built;
the information of the Revit model to be built is used for creating records comprising initial information and achievement data, wherein the initial information comprises the name of the Revit model, the type of the Revit model, the coordinate offset of the Revit model, the coordinate system of the Revit model, the expressway project to which the Revit model belongs and the Revit project; the attribute field of the achievement data comprises fields for storing FBX, XML and GIS file data;
and the GIS platform is used for acquiring the converted GIS file data through the server.
In this embodiment, the plug-in on the Revit platform includes a model export module and an FME conversion module, and is used to implement conversion of a data format and data upload.
In this embodiment, a web page end provides a management interface of information of an expressway project and a Revit model to be built, the expressway project, the Revit model type, and the hierarchical relationship of the Revit model to be built, as shown in fig. 2, each Revit model to be built creates a record, the recorded information includes initial information and achievement data, an attribute field of the initial information includes a Revit model name, a Revit model type, a Revit model coordinate offset, a Revit model coordinate system, a project to which the Revit model belongs, a Revit project, and the like; the attribute fields of the achievement data comprise fields for storing file data such as FBX, XML, GIS and the like, the highway projects and the information of the Revit models to be built are managed and configured through a webpage end, specifically, as shown in FIG. 2, the first layer is the highway projects (such as highway project A, highway project B, highway project C and the like), the second layer is the Revit model types (such as tunnel, bridge, culvert and the like, wherein the tunnel can comprise tunnel A, tunnel B, tunnel C and the like), the third layer is the Revit models to be built, each Revit model to be built creates a record (such as a record is created by the Revit model tunnel to be built, the recorded information comprises initial information and achievement data, the attribute fields of the initial information comprise the name of the Revit model, the type of the Revit model, the coordinate offset of the Revit model, the coordinate system of the Revit model, the projects to which the Revit model belongs, the Revit project engineering and the like, the attribute fields of the achievement data comprise fields for storing FBX, XML, GIS and the information of the highway projects and the Revit models to be built, Fields of XML, GIS and other file data
S2, constructing different types of Revit models based on the model data management system, wherein the implementation method comprises the following steps:
s201, based on the model data management system, when a Revit project is created, according to original coordinates of an origin
Figure 151523DEST_PATH_IMAGE001
And coordinate offset
Figure 419694DEST_PATH_IMAGE002
Determining current model origin coordinates
Figure 677500DEST_PATH_IMAGE003
With the origin coordinates
Figure 763136DEST_PATH_IMAGE004
Constructing a Revit model for the origin, and offsetting coordinates
Figure 535920DEST_PATH_IMAGE005
Sending the Revit model information to be built corresponding to the server for storage;
s202, in Revit engineering, taking an element identifier ElementID generated by a Revit platform for each model component as a unique identifier of the Revit model component;
s203, uploading the Revit engineering file including the unique identifier to Revit model information to be built corresponding to the server through a webpage end, and completing construction of different types of Revit models.
In this embodiment, when a Revit project is created, since the Revit modeling platform performs range limitation on the view coordinate system, the project coordinate system is unavailable, and therefore the coordinate system after offset is adopted during modeling. Firstly, determining a modeling origin before modeling, wherein the original coordinate of the origin is
Figure 217568DEST_PATH_IMAGE001
Setting the coordinate offset
Figure 392198DEST_PATH_IMAGE002
Then the current model origin coordinates are
Figure 383156DEST_PATH_IMAGE003
Modeling by taking the point as an origin, and sending the coordinate offset to a model record corresponding to the server for storage; in Revit engineering, an ElementID generated by Revit for each model component is used as a unique identifier of the model component; and uploading the Revit engineering file to corresponding Revit model information to be built of the server through a webpage end.
S3, aiming at the different types of Revit models, different data conversion templates are developed and created as windows services, and the implementation method comprises the following steps:
s301, respectively developing a model derivation module and an FME conversion module aiming at different types of Revit models, as shown in FIG. 2;
as shown in fig. 2, the model export module is configured to export and upload FBX model data, and specifically includes:
a1, developing a Revit plug-in by using a CustomExporter class and an IExportContext interface provided by a developer by using a Revit platform, and exporting model data in an FBX format by realizing that an IExportContext interface declares that an instance is transmitted to the CustomExporter class, wherein the CustomExporter represents a custom export class provided by the Revit platform for the developer and is used for realizing export behavior, and the IExportContext represents a model export interface provided by the Revit platform for a user and is used for defining exported content;
a2, describing the derived parent-child relationship of FBX model data by using a tree structure, storing the parent-child relationship and the unique identifier ElementID of the Revit model component through XML data, deriving the stored parent-child relationship and the unique identifier ElementID of the Revit model component together with the FBX model data, uploading the derived parent-child relationship and the unique identifier ElementID of the Revit model component to the Revit model information to be created corresponding to the server, and finishing the derivation and uploading of the FBX model data.
In this embodiment, the model derivation module implements derivation of FBX model data. Revit provides a CustomExporter class and an IExportContext interface for a user, and the Revit plug-in declares an instance to be transmitted to the CustomExporter class by realizing the IExportContext interface, so as to derive model data in an FBX format. Meanwhile, in order to accurately describe the logic containing relationship of the complex model, a tree structure is adopted to describe the parent-child relationship of the model structure, the XML data is used for storing the parent-child relationship and the unique identifier ElementID of the model component, the ElementID and the FBX model are exported together, and the information is uploaded to the Revit model information to be built corresponding to the server.
As shown in fig. 2, the FME conversion module is configured to export GIS file data, and specifically includes:
b1, acquiring initial conversion parameters from a server, wherein a Revit model coordinate system is read in a character string mode;
b2, reading FBX model data through a Reader of the FME conversion module, extracting a unique identifier ElementID of a Revit model component, and offsetting according to the coordinate offset of the Revit model, wherein the Reader represents a data read-in converter provided by the FME conversion module for a user;
b3, reading XML data through a Reader of the FME conversion module, and matching unique identifiers ElementID of Revit model components of the XML data and the FBX model data after deviation;
b4, judging whether the matching is passed or not according to the matching result, if so, performing attribute hooking processing, and entering the step B5, otherwise, filtering unmatched FBX model data, and returning to the step B1;
b5, converting coordinates of the FBX model data after attribute hooking, taking a coordinate system read by a server as an original coordinate system, and taking WGS84 or CGCS2000 as a target coordinate system;
and B6, exporting the GIS file data through a Writer of the FME conversion module after the coordinate conversion processing is completed, wherein the Writer represents a data writing-out converter provided by the FME conversion module for a user.
And S302, establishing the model export module and the FME conversion module as windows service for a user to call.
In this embodiment, the conversion process of the FME conversion module is as follows: firstly, before data conversion is carried out, initial parameters such as FBX, XML, a coordinate system, coordinate offset and the like of a model to be converted are obtained from a server, wherein the coordinate system is directly read in a character string mode; then reading the FBX through a Reader of the FME, extracting ElementID in the FBX, and shifting according to the coordinate offset; reading XML through Reader of FME; then, performing ElementID matching on the XML and the FBX after the offset, performing corresponding attribute hooking if the XML and the FBX pass the matching, and filtering unmatched model components if the XML and the FBX do not match; finally, performing Coordinate conversion on the model data after attribute hooking is completed, taking a Coordinate System read by a server as an original Coordinate System, and taking WGS84 or CGCS2000 as a target Coordinate System, and after the conversion is completed, exporting GIS file data through a Writer of FME, wherein a WGS-84 Coordinate System is a geocentric Coordinate System adopted internationally, is called World geographic System-1984 Coordinate System and is abbreviated as WGS84 in English; CGCS2000 refers to the 2000 national Geodetic Coordinate System, having the English name of China Geodetic Coordinate System 2000, and abbreviated as CGCS2000 in English.
In this embodiment, the two modules are created as windows services for a user to call.
In the embodiment, the FME conversion module is a third-party tool, and the FME conversion module is mainly used for completing the functions of reading and writing of data such as FBX and XML, projection transformation, GIS file data export and the like, and the functions can also be completed through an autonomous development tool.
And S4, calling the windows service to realize automatic conversion of data formats.
In this embodiment, in order to complete the conversion from the Revit model of the whole highway project to the target GIS platform, the user calls the windows service to complete the full-automatic conversion of the data of the whole project, and after the conversion is completed, the GIS result data is uploaded to the Revit model information to be created corresponding to the server to be uniformly stored and managed.
Example 2
In this embodiment, as shown in fig. 3, the present invention provides an automatic data format conversion apparatus, including:
the model data management system deployment sub-device is used for deploying the model data management system according to the expressway project;
the Revit model construction sub-device is used for constructing different types of Revit models based on the model data management system;
the data conversion template development sub-device is used for developing different data conversion templates aiming at the different types of Revit models and establishing the data conversion templates as windows services;
and the automatic conversion sub-device is used for calling the windows service and realizing the automatic conversion of the data format.
The data format automatic conversion device provided in the embodiment shown in fig. 3 can implement the technical solution shown in the above method embodiment, and the implementation principle and the beneficial effect thereof are similar, and are not described herein again.
Example 3
The invention provides electronic equipment, which comprises a memory, a processor and a computer program stored on the memory and operated on the processor, wherein the processor executes the program to realize the automatic data format conversion method in embodiment 1.
In this embodiment, the electronic device may include: the system comprises a processor, a memory, a bus and a communication interface, wherein the processor, the communication interface and the memory are connected through the bus, the memory stores a computer program capable of running on the processor, and the processor executes the automatic data format conversion method provided by the foregoing embodiment 1 when running the computer program.
Example 4
The present invention provides a computer-readable storage medium storing a computer program which is executed by a processor to implement the data format automatic conversion method described in embodiment 1.
The computer-readable storage medium described above may be implemented in any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks, and may be any available medium that can be accessed by a general purpose or special purpose computer. A readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium, which may also be a component of the processor, and the processor and the readable storage medium may reside in an Application Specific Integrated Circuit (ASIC), and the processor and the readable storage medium may also reside as discrete components in the data format automatic conversion apparatus.
Embodiments of the present application may be provided as a method, apparatus, or computer program product, and as such, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. While the methods, apparatus (devices), and computer program products according to embodiments of the invention have been described with reference to flowchart illustrations and/or block diagrams, it is to be understood that each flowchart illustration and/or block diagram block or blocks, and combinations of flowchart illustrations and/or block diagrams, can be implemented by computer program instructions which are provided to a computer-readable memory of a general purpose computer, special purpose computer, embedded computer, or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart illustration of one or more flow diagrams and/or block diagrams block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks and/or flowchart block or blocks. .

Claims (8)

1. An automatic data format conversion method is characterized by comprising the following steps:
s1, deploying the model data management system according to the highway project;
s2, constructing different types of Revit models based on the model data management system;
the step S2 includes the steps of:
s201, based on the model data management system, when a Revit project is created, according to original coordinates of an origin
Figure 563358DEST_PATH_IMAGE001
And coordinate offset
Figure 378999DEST_PATH_IMAGE002
Determining current model origin coordinates
Figure 89334DEST_PATH_IMAGE003
With the origin coordinates
Figure 893080DEST_PATH_IMAGE004
Constructing a Revit model for the origin, and offsetting coordinates
Figure 337968DEST_PATH_IMAGE005
Sending the Revit model information to be built corresponding to the server for storage;
s202, in Revit engineering, taking an element identifier ElementID generated by a Revit platform for each model component as a unique identifier of the Revit model component;
s203, uploading the Revit engineering file comprising the unique identifier to Revit model information to be built corresponding to a server through a webpage end, and completing construction of different types of Revit models;
s3, developing different data conversion templates aiming at the different types of Revit models, and creating the templates into windows services;
and S4, calling the windows service to realize automatic conversion of data formats.
2. The method according to claim 1, wherein the model data management system in step S1 includes a Revit platform including a Revit plug-in, a server connected to the Revit platform, and a GIS platform and a web page terminal respectively connected to the server, and the Revit platform is connected to the GIS platform through the server;
the Revit platform is used for creating a Revit model and realizing data format conversion and data uploading;
the server is used for storing highway projects and Revit model information to be built;
the webpage end is used for providing a management interface of the highway project and the Revit model information to be built;
the information of the Revit model to be built is used for creating records comprising initial information and achievement data, wherein the initial information comprises the name of the Revit model, the type of the Revit model, the coordinate offset of the Revit model, the coordinate system of the Revit model, the expressway project to which the Revit model belongs and the Revit project; the attribute field of the achievement data comprises fields for storing FBX, XML and GIS file data;
and the GIS platform is used for loading the converted GIS file data through a server or releasing network GIS service through the GIS file data.
3. The method for automatically converting data format according to claim 1, wherein the step S3 includes the steps of:
s301, respectively developing a model derivation module and an FME conversion module aiming at different types of Revit models;
and S302, establishing the model export module and the FME conversion module as windows service for a user to call.
4. The method according to claim 3, wherein the model export module in step S301 is configured to export and upload FBX model data, which specifically includes:
a1, developing a Revit plug-in by using a CustomExporter class and an IExportContext interface provided by a developer by using a Revit platform, and exporting model data in an FBX format by realizing that an IExportContext interface declares that an instance is transmitted to the CustomExporter class, wherein the CustomExporter represents a custom export class provided by the Revit platform for the developer and is used for realizing export behavior, and the IExportContext represents a model export interface provided by the Revit platform for a user and is used for defining exported content;
a2, describing the derived parent-child relationship of FBX model data by using a tree structure, storing the parent-child relationship and the unique identifier ElementID of the Revit model component through XML data, deriving the stored parent-child relationship and the unique identifier ElementID of the Revit model component together with the FBX model data, uploading the derived parent-child relationship and the unique identifier ElementID of the Revit model component to the Revit model information to be created corresponding to the server, and finishing the derivation and uploading of the FBX model data.
5. The method according to claim 3, wherein in step S301, the FME conversion module is configured to export GIS file data, and specifically:
b1, acquiring initial conversion parameters from a server, wherein a Revit model coordinate system is read in a character string mode;
b2, reading FBX model data through a Reader of the FME conversion module, extracting a unique identifier ElementID of a Revit model component, and offsetting according to the coordinate offset of the Revit model, wherein the Reader represents a data read-in converter provided by the FME conversion module for a user;
b3, reading XML data through a Reader of the FME conversion module, and matching unique identifiers ElementID of Revit model components of the XML data and the FBX model data after deviation;
b4, judging whether the matching is passed or not according to the matching result, if so, performing attribute hooking processing, and entering the step B5, otherwise, filtering unmatched FBX model data, and returning to the step B1;
b5, converting coordinates of the FBX model data after attribute hooking, taking a coordinate system read by a server as an original coordinate system, and taking WGS84 or CGCS2000 as a target coordinate system;
and B6, exporting the GIS file data through a Writer of the FME conversion module after the coordinate conversion processing is completed, wherein the Writer represents a data writing-out converter provided by the FME conversion module for a user.
6. An apparatus for automatically converting a data format, comprising:
the model data management system deployment sub-device is used for deploying the model data management system according to the expressway project;
the Revit model construction sub-device is used for constructing different types of Revit models based on the model data management system, and specifically comprises the following steps:
based on the model data management system, when a Revit project is established, original coordinates are obtained according to an origin
Figure 190255DEST_PATH_IMAGE001
And coordinate offset
Figure 771409DEST_PATH_IMAGE002
Determining current model origin coordinates
Figure 480477DEST_PATH_IMAGE003
With the origin coordinates
Figure 396349DEST_PATH_IMAGE004
Constructing a Revit model for the origin, and offsetting coordinates
Figure 616109DEST_PATH_IMAGE005
Sending the Revit model information to be built corresponding to the server for storage;
in the Revit engineering, element identification ElementID generated by a Revit platform for each model component is used as a unique identifier of the Revit model component;
uploading the Revit engineering file including the unique identifier to Revit model information to be built corresponding to a server through a webpage end, and completing construction of different types of Revit models;
the data conversion template development sub-device is used for developing different data conversion templates aiming at the different types of Revit models and establishing the data conversion templates as windows services;
and the automatic conversion sub-device is used for calling the windows service and realizing the automatic conversion of the data format.
7. An electronic device comprising a memory, a processor, and a computer program stored on the memory and running on the processor, the processor executing the program to implement the data format automatic conversion method according to any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the data format automatic conversion method according to any one of claims 1 to 5.
CN202111536762.XA 2021-12-16 2021-12-16 Data format automatic conversion method and device, electronic equipment and storage medium Active CN113934684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111536762.XA CN113934684B (en) 2021-12-16 2021-12-16 Data format automatic conversion method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111536762.XA CN113934684B (en) 2021-12-16 2021-12-16 Data format automatic conversion method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113934684A CN113934684A (en) 2022-01-14
CN113934684B true CN113934684B (en) 2022-04-29

Family

ID=79289062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111536762.XA Active CN113934684B (en) 2021-12-16 2021-12-16 Data format automatic conversion method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113934684B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114091165B (en) * 2022-01-21 2022-11-08 四川省交通勘察设计研究院有限公司 Method for fusing grid data of BIM application engineering coordinate system in GIS scene
CN115311429B (en) * 2022-08-09 2023-05-02 北京飞渡科技股份有限公司 Revit-based data export method and system
CN116126783B (en) * 2022-12-30 2023-11-10 四川云控交通科技有限责任公司 Data conversion method for building GIS model and BIM model
CN116150297B (en) * 2023-04-17 2023-07-04 四川省交通勘察设计研究院有限公司 Expressway thematic map making and data visualization system and method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101996177B1 (en) * 2018-07-09 2019-07-03 서울시립대학교 산학협력단 Method and apparatus for providing bim/gis integrated information, and system using the same
CN109977162A (en) * 2019-04-10 2019-07-05 广东省城乡规划设计研究院 A kind of urban and rural planning data transfer device, system and computer readable storage medium
CN110659317A (en) * 2019-08-14 2020-01-07 珠海市规划设计研究院 BIM data lightweight method
CN111309315A (en) * 2018-12-12 2020-06-19 中国科学院沈阳自动化研究所 Automatic configuration method based on industrial Internet of things data and business modeling
CN111931278A (en) * 2020-08-14 2020-11-13 中水北方勘测设计研究有限责任公司 Building method and system of cloud platform based on BIM and GIS cooperative work
CN112035433A (en) * 2020-08-12 2020-12-04 华设设计集团股份有限公司 Method for converting BIM model into GIS model supporting large-volume grading loading
CN112465981A (en) * 2020-12-30 2021-03-09 华建数创(上海)科技有限公司 Method for automatically modeling by utilizing BIM data based on UE4
CN113094932A (en) * 2021-05-08 2021-07-09 国网河北省电力有限公司经济技术研究院 Method, device, equipment and storage medium for acquiring construction cost of power transformation project

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11158124B2 (en) * 2018-01-30 2021-10-26 Gaia3D, Inc. Method of providing 3D GIS web service
CN110442332A (en) * 2019-07-04 2019-11-12 深圳壹账通智能科技有限公司 Natural language is converted into the method, apparatus and computer equipment of program language
CN110414148B (en) * 2019-07-30 2023-03-24 中北大学 Open BIM (building information modeling) cross-platform online visualization method based on WebGL (WebGL)
CN112696025A (en) * 2020-12-30 2021-04-23 广西建工集团第五建筑工程有限责任公司 Method and system for guiding and monitoring correctness of high and large template supporting system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101996177B1 (en) * 2018-07-09 2019-07-03 서울시립대학교 산학협력단 Method and apparatus for providing bim/gis integrated information, and system using the same
CN111309315A (en) * 2018-12-12 2020-06-19 中国科学院沈阳自动化研究所 Automatic configuration method based on industrial Internet of things data and business modeling
CN109977162A (en) * 2019-04-10 2019-07-05 广东省城乡规划设计研究院 A kind of urban and rural planning data transfer device, system and computer readable storage medium
CN110659317A (en) * 2019-08-14 2020-01-07 珠海市规划设计研究院 BIM data lightweight method
CN112035433A (en) * 2020-08-12 2020-12-04 华设设计集团股份有限公司 Method for converting BIM model into GIS model supporting large-volume grading loading
CN111931278A (en) * 2020-08-14 2020-11-13 中水北方勘测设计研究有限责任公司 Building method and system of cloud platform based on BIM and GIS cooperative work
CN112465981A (en) * 2020-12-30 2021-03-09 华建数创(上海)科技有限公司 Method for automatically modeling by utilizing BIM data based on UE4
CN113094932A (en) * 2021-05-08 2021-07-09 国网河北省电力有限公司经济技术研究院 Method, device, equipment and storage medium for acquiring construction cost of power transformation project

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
BIM和GIS技术在某高速公路施工建设管理中的应用;秦川等;《测绘与空间地理信息》;20210624;第44卷(第6期);34-37页 *
ntegrated modeling of CityGML and IFC for city/neighborhood development for urban microclimates analysis;Steve Kardinal Jusuf等;《Energy Procedia》;20170930;第122卷;145-150页 *
基于Revit二次开发的BIM+WebGIS融合应用研究;胡夏恺等;《中南大学学报(自然科学版)》;20211126;第52卷(第11期);3930-3942页 *

Also Published As

Publication number Publication date
CN113934684A (en) 2022-01-14

Similar Documents

Publication Publication Date Title
CN113934684B (en) Data format automatic conversion method and device, electronic equipment and storage medium
CN109951315B (en) Method and system for mapping YANG model to internal model
CN111061475B (en) Software code generating method, device, computer equipment and storage medium
CN106990960A (en) Code dispositions method and device
CN113051650B (en) Real-time acquisition method and device for building information model component data
CN108427809A (en) A kind of attribute assignment method and device based on assembled architecture
CN110489812A (en) Multilayer level netlist processing method, device, computer equipment and storage medium
CN115495069B (en) Model-driven coal industry software process implementation method, device and equipment
CN116049442A (en) Method and system for constructing data link of wax pattern casting production line
CN115795629A (en) Data conversion method, data conversion system and electronic equipment
CN112395339B (en) Intersystem data admission verification method, device, computer equipment and storage medium
CN112597023A (en) Case management method and device based on guide picture, computer equipment and storage medium
CN112561690A (en) Method, system, equipment and storage medium for testing credit card staging service interface
CN116466915A (en) MVP architecture-based iOS development framework construction method and device
CN113434938B (en) BIM model checking method, BIM model checking device, computer equipment and storage medium
CN113987764A (en) Simulation model construction method and system based on SCA domain description file
CN115624747A (en) Method, device and equipment for processing topographic data and storage medium
CN116956838A (en) Project determining method and device for engineering quantity list
CN112182705B (en) BIM technology-based simulation model data analysis method
CN107844639B (en) Project standard structure automatic generation method and system
CN107861725B (en) iOS data reverse automatic analysis strategy
CN117540474B (en) BIM-based whole process management method and related device
CN116755684B (en) OAS Schema generation method, device, equipment and medium
CN110175116B (en) Test date switching method, device and system
CN116700703A (en) Service processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant