Disclosure of Invention
In view of the above, it is desirable to provide an information processing method, an information processing apparatus, a computer device, and a readable storage medium capable of improving the utilization rate of a computer aided design application.
An embodiment of the present application provides an information processing method, including:
obtaining an elevation name and an elevation plane according to the elevation information;
acquiring a building component in a building information model;
acquiring graphic information after the intersection of the building component and the elevation plane, and writing the graphic information into the computer-aided design drawing file;
acquiring storage path information of the computer aided design drawing file;
and obtaining an elevation description file according to the height information, the elevation name and the storage path information in the elevation information.
In one embodiment, the graphic information includes a graphic type and data information including coordinates of the graphic and a size of the graphic.
In one embodiment, the obtaining of the graphic information after the intersection of the building element and the elevation plane and the writing of the graphic information into the computer-aided design drawing file includes:
and acquiring graphic information after the intersection of the building component and the elevation plane, and displaying the graphic information in the computer-aided design drawing file.
In one embodiment, the obtaining an elevation description file according to the height information in the elevation information, the elevation name, and the storage path information includes:
extracting the height information from the elevation information;
and storing the height information, the elevation name and the storage path information into the elevation description file.
In one embodiment, the method further comprises: and calling the elevation description file, and displaying the information in the elevation description file in an engine.
In one embodiment, the method further comprises: and acquiring the elevation information in the building modeling application program.
In one embodiment, the method further comprises: and acquiring a building information model.
In one embodiment, the method further comprises: and newly creating the CAD drawing file.
In one embodiment, the obtaining of the storage path information of the computer-aided design drawing file includes:
determining the name of the CAD drawing file according to the elevation name;
and acquiring the corresponding storage path information according to the file name of the computer aided design drawing.
An embodiment of the present application provides an information processing method, including:
acquiring elevation information in a building modeling application program;
obtaining an elevation name and an elevation plane according to the elevation information;
obtaining a building information model;
acquiring a building component in the building information model;
acquiring graphic information after the building component is intersected with the elevation plane, and displaying the graphic information in the CAD drawing file, wherein the graphic information comprises graphic types and data information, and the data information comprises graphic coordinates and graphic sizes;
determining the name of the CAD drawing file according to the elevation name;
acquiring corresponding storage path information according to the file name of the computer-aided design drawing;
extracting the height information from the elevation information;
storing the height information, the elevation name and the storage path information into the elevation description file;
and calling the elevation description file, and displaying the information in the elevation description file in an engine.
An embodiment of the present application provides an information processing apparatus, the apparatus including:
the conversion module is used for obtaining an elevation name and an elevation plane according to the elevation information;
the acquisition building component module is used for acquiring building components in the building information model;
the drawing file obtaining module is used for obtaining the graphic information after the intersection of the building component and the elevation plane and writing the graphic information into the computer aided design drawing file;
the path information acquisition module is used for acquiring the storage path information of the computer aided design drawing file;
and the elevation description file obtaining module is used for obtaining an elevation description file according to the height information, the elevation name and the storage path information in the elevation information.
The embodiment of the application provides a computer device, which comprises a memory and a processor, wherein a computer program capable of running on the processor is stored in the memory, and the processor executes the computer program to realize the following steps:
obtaining an elevation name and an elevation plane according to the elevation information;
acquiring a building component in a building information model;
acquiring graphic information after the intersection of the building component and the elevation plane, and writing the graphic information into the computer-aided design drawing file;
acquiring storage path information of the computer aided design drawing file;
and obtaining an elevation description file according to the height information, the elevation name and the storage path information in the elevation information.
An embodiment of the application provides a readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the following steps:
obtaining an elevation name and an elevation plane according to the elevation information;
acquiring a building component in a building information model;
acquiring graphic information after the intersection of the building component and the elevation plane, and writing the graphic information into the computer-aided design drawing file;
acquiring storage path information of the computer aided design drawing file;
and obtaining an elevation description file according to the height information, the elevation name and the storage path information in the elevation information.
According to the information processing method and device, the computer device and the readable storage medium provided by the embodiment, the computer device obtains an elevation name and an elevation plane according to elevation information, obtains a building component in a building information model, obtains graphic information after the building component is intersected with the elevation plane, writes the graphic information into a computer-aided design drawing file, obtains storage path information of the computer-aided design drawing file, and obtains an elevation description file according to height information, the elevation name and the storage path information in the elevation information; the computer equipment can store the storage path information, the height information and the elevation name in the elevation information corresponding to the computer-aided design drawing file into the elevation description file, so that a subsequent engine can check the computer-aided design drawing by directly calling the elevation description file, the functional requirements on the computer-aided design application program are further reduced, and the utilization rate of the computer-aided design application program is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The information processing method provided by the embodiment can be applied to computer equipment. The computer device may be an electronic device with a drawing application installed, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, or a personal digital assistant, and the specific form of the computer device is not limited in this embodiment.
In the information processing method provided in the embodiments of the present application, the execution main body may be an information processing apparatus, and the apparatus may be implemented as part of or all of a computer device by software, hardware, or a combination of software and hardware. The implementation of the method embodiments described below is described using a computer device as an example to enable a computer aided design drawing file with elevation information to be derived with only one operation of the building modeling application.
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application are further described in detail by the following embodiments in combination with the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the invention.
Fig. 1 is a flowchart illustrating an information processing method according to an embodiment. The embodiment relates to a process of obtaining an elevation description file. As shown in fig. 1, the method includes:
s101, obtaining an elevation name and an elevation plane according to the elevation information.
In this embodiment, the elevation information may be structural elevation information, and the structural elevation information may be top elevation information of a beam, a slab, or a column, elevation information of pure concrete or a masonry, elevation information when a main capping is not finished, or the like, when a building is constructed. Optionally, the elevation information may include elevation information, unique identification information of the elevation, an elevation name, and an elevation range. Optionally, the elevation information may be effective elevation information extracted from a building modeling application. Optionally, the effective elevation information may be elevation information corresponding to an actual demand.
It should be noted that the computer device may display the corresponding elevation plane according to the elevation information. Optionally, the elevation name may be an elevation name corresponding to each elevation information, for example, during building construction, the top elevation information of the beam, the slab, and the column, and the elevation name corresponding to the elevation information may be the beam, the slab, and the column.
S102, building components in the building information model are obtained.
Optionally, before the step of acquiring the building elements in the building information model in S102, the method further includes: and acquiring a building information model.
Specifically, the building information model may be a 3D building model designed by a Revit application, and the building information model may be a model designed by a user at the current time, or a model designed by the user in advance and stored in a local or mobile hard disk. The building member may have an opening/closing structure or a fixed structure. For example, doors and windows have an open-close configuration, and beams, panels and columns have a fixed configuration.
S103, obtaining graphic information after the building component is intersected with the elevation plane, and writing the graphic information into the computer aided design drawing file.
Specifically, the computer device may automatically display the building component and the elevation plane to obtain an intersected shape, obtain corresponding graphic information according to the shape, and write the graphic information into a computer aided design drawing file. Alternatively, the shape may be a circle, an ellipse, a rectangle, or the like.
Optionally, the graphic information includes a graphic type and data information, and the data information includes a coordinate of the graphic and a size of the graphic. Optionally, the step of obtaining the graphic information after the intersection of the building element and the elevation plane in S103 and writing the graphic information into the computer-aided design drawing file may specifically include: and acquiring graphic information after the intersection of the building component and the elevation plane, and displaying the graphic information in the computer-aided design drawing file.
It should be noted that the graphic information may include a graphic type, a graphic coordinate, and/or a graphic size. For example, if the graphic type is a circle, the graphic information may include coordinates of a center of the circle and a radius of the circle, that is, the radius of the circle may be understood as a size of the circle; if the graphic type is a rectangle, the graphic information may include coordinates of four corners of the rectangle.
Optionally, before the step of obtaining the graphic information after the intersection of the building element and the elevation plane and writing the graphic information into the computer-aided design drawing file, the method further includes: and newly creating the CAD drawing file.
It can be understood that the newly created computer aided design drawing file of the computer device may be a blank computer aided design drawing file, and the computer device may directly display the acquired graphic information in the computer aided design drawing file. Alternatively, different graphical information may be displayed simultaneously and independently.
And S104, acquiring the storage path information of the computer aided design drawing file.
Specifically, the computer device may store the computer aided design drawing file written with the graphic information locally or in a mobile hard disk, so as to determine the corresponding storage path information.
And S105, obtaining an elevation description file according to the height information, the elevation name and the storage path information in the elevation information.
Optionally, the step of obtaining the elevation description file according to the height information in the elevation information, the elevation name, and the storage path information in the above S105 may specifically include:
s1051, extracting the height information in the elevation information.
Specifically, the elevation information may include elevation height information, unique identification information of the elevation, an elevation name, and an elevation range, and the elevation information may be presented in a form of a table, where the elevation height information, the unique identification information of the elevation, the elevation name, and the elevation range correspond to different columns, respectively. Optionally, the computer device may extract the altitude information from the table corresponding to the altitude information.
And S1052, storing the height information, the elevation name and the storage path information into the elevation description file.
It should be noted that the computer device may pre-establish a blank elevation description file, and store the height information, the elevation name, and the storage path information corresponding to all the elevation information into the elevation description file. Each elevation information has corresponding height information, elevation name and storage path information, and the storage path information can be stored in a computer aided design drawing file corresponding to the elevation information.
In this embodiment, the elevation description file may be understood as an array, and the number of elements included in the array may be equal to the number of pieces of elevation information. Optionally, each element in the array may include three sub-elements, which are height information, elevation name, and storage path information, respectively.
In the information processing method provided by this embodiment, a computer device obtains an elevation name and an elevation plane according to elevation information, obtains a building component in a building information model, obtains graphic information after the building component intersects with the elevation plane, writes the graphic information into a computer-aided design drawing file, obtains storage path information of the computer-aided design drawing file, and obtains an elevation description file according to height information, the elevation name and the storage path information in the elevation information; the computer equipment can derive the computer aided design drawing file with elevation information through one-time operation, and the storage path information corresponding to the computer aided design drawing file, the height information in the elevation information and the elevation name are stored in the elevation description file, so that a subsequent engine can check the computer aided design drawing by directly calling the elevation description file, further the functional requirements on the computer aided design application program are reduced, and the utilization rate of the computer aided design application program is improved.
In one embodiment, before the step of obtaining the altitude name and the altitude plane according to the altitude information in S101, the method further includes: and acquiring the elevation information in the building modeling application program.
Specifically, the computer device may traverse all elevation information in the architectural modeling application to obtain effective elevation information. Optionally, the effective elevation information may be report information corresponding to actual design requirements.
According to the information processing method provided by the embodiment, the CAD drawing file with the elevation information can be exported through one-time operation, and the storage path information corresponding to the CAD drawing file, the height information in the elevation information and the elevation name are stored in the elevation description file, so that a subsequent engine can check the CAD drawing by directly calling the elevation description file, further the functional requirements on the CAD application program are reduced, and the utilization rate of the CAD application program is improved.
In one embodiment, the step of obtaining the storage path information of the computer-aided design drawing file in S104 may specifically include:
s1041, determining the name of the CAD drawing file according to the elevation name.
Specifically, the computer device may define a name of the cad drawing file corresponding to the cad drawing file according to the elevation name. Optionally, each elevation name may have a corresponding computer-aided design drawing file.
S1042, obtaining the corresponding storage path information according to the file name of the computer aided design drawing.
Specifically, the computer device may obtain, according to the name of the cad drawing file, the storage path information corresponding to the cad drawing file when the cad drawing file is stored.
In the information processing method provided by this embodiment, the computer device may determine, according to the elevation name, a computer-aided design drawing file name of the computer-aided design drawing file, obtain, according to the computer-aided design drawing file name, corresponding storage path information, and further obtain, according to the height information, the elevation name, and the storage path information in the elevation information, an elevation description file; the computer equipment can store the storage path information, the height information and the elevation name in the elevation information corresponding to the CAD drawing file into the elevation description file, so that a subsequent engine can check the CAD drawing by directly calling the elevation description file, the functional requirement on the CAD application program is further reduced, and the utilization rate of the CAD application program is improved.
As an embodiment, after the step of obtaining the altitude description file according to the altitude information in the altitude information, the altitude name, and the storage path information in S105, the method further includes: and calling the elevation description file, and displaying the information in the elevation description file in an engine.
Specifically, the computer device may call the stored elevation description file to obtain height information and all elevation names corresponding to all the elevation information in the elevation description file, and display all the height information and all the elevation names in the engine.
In the information processing method provided by this embodiment, after obtaining the elevation description file, the computer device may call the elevation description file, and display information in the elevation description file in the computer aided design drawing; the computer equipment can check the computer aided design drawing by directly calling the elevation description file, thereby reducing the functional requirements on the computer aided design application program and improving the utilization rate of the computer aided design application program.
Fig. 2 is a schematic flowchart of an information processing method according to another embodiment. As shown in fig. 2, the information processing method may include:
s201, acquiring elevation information in a building modeling application program;
s202, obtaining an elevation name and an elevation plane according to the elevation information;
s203, obtaining a building information model;
s204, obtaining the building components in the building information model;
s205, acquiring graphic information after the building component is intersected with the elevation plane, and displaying the graphic information in the CAD drawing file, wherein the graphic information comprises a graphic type and data information, and the data information comprises a graphic coordinate and a graphic size;
s206, determining the name of the CAD drawing file according to the elevation name;
s207, acquiring corresponding storage path information according to the file name of the computer-aided design drawing;
s208, extracting the height information in the elevation information;
s209, storing the height information, the elevation name and the storage path information into the elevation description file;
s210, calling the elevation description file, and displaying information in the elevation description file in an engine.
In the information processing method provided by this embodiment, the computer device can derive the computer aided design drawing file with the elevation information through one operation, and the storage path information corresponding to the computer aided design drawing file, the height information in the elevation information, and the elevation name are stored in the elevation description file, so that the subsequent engine can check the computer aided design drawing by directly calling the elevation description file, thereby reducing the functional requirements on the computer aided design application program, and improving the utilization rate of the computer aided design application program.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
For specific limitations of the information processing apparatus, reference may be made to the above limitations of the information processing method, which are not described herein again. The respective modules in the information processing apparatus of the computer device described above may be entirely or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 3 is a schematic structural diagram of an information processing apparatus according to an embodiment. As shown in fig. 3, the apparatus may include: the system comprises a conversion module 11, a building component acquisition module 12, a drawing file acquisition module 13, a path information acquisition module 14 and an elevation description file acquisition module 15.
Specifically, the conversion module 11 is configured to obtain an elevation name and an elevation plane according to the elevation information;
the building component obtaining module 12 is configured to obtain a building component in a building information model;
the drawing file obtaining module 13 is configured to obtain graphic information after the building component intersects with the elevation plane, and write the graphic information into the computer-aided design drawing file;
the obtaining path information module 14 is configured to obtain storage path information of the computer-aided design drawing file;
the elevation description file obtaining module 15 is configured to obtain an elevation description file according to the height information in the elevation information, the elevation name, and the storage path information.
Optionally, the graphic information includes a graphic type and data information, and the data information includes a coordinate of the graphic and a size of the graphic.
The information processing apparatus provided in this embodiment may execute the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
In one embodiment, the information processing apparatus further includes: and a display module.
The display module is used for calling the elevation description file and displaying the information in the elevation description file in an engine.
The information processing apparatus provided in this embodiment may execute the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
In one embodiment, the obtaining the elevation description file module 15 includes: an extraction height information unit and a storage unit.
Wherein the height information extracting unit is configured to extract the height information from the altitude information;
the storage unit is used for storing the height information, the elevation name and the storage path information into the elevation description file.
The information processing apparatus provided in this embodiment may execute the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
In one embodiment, the information processing apparatus further includes: and an elevation information obtaining module.
The elevation information obtaining module is used for obtaining the elevation information in the building modeling application program.
The information processing apparatus provided in this embodiment may execute the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
In one embodiment, the information processing apparatus further includes: and obtaining a model module.
The model obtaining module is used for obtaining a building information model.
The information processing apparatus provided in this embodiment may execute the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
In one embodiment, the obtaining drawing file module 13 is specifically configured to obtain graphic information after the building component intersects with the elevation plane, and display the graphic information in the computer-aided design drawing file.
The information processing apparatus provided in this embodiment may execute the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
In one embodiment, the information processing apparatus further includes: and a new drawing file module.
And the new drawing file module is used for newly creating the CAD drawing file.
The information processing apparatus provided in this embodiment may execute the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
In one embodiment, the obtaining path information module 14 includes: the device comprises a first determining unit and an acquiring path information unit.
The first determining unit is used for determining the name of the CAD drawing file according to the elevation name;
and the path information acquiring unit is used for acquiring the corresponding storage path information according to the file name of the computer aided design drawing.
The information processing apparatus provided in this embodiment may execute the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
In one embodiment, a computer device is provided, the internal structure of which may be as shown in FIG. 4. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external computer device through a network connection. The computer program is executed by a processor to implement an information processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
obtaining an elevation name and an elevation plane according to the elevation information;
acquiring a building component in a building information model;
acquiring graphic information after the intersection of the building component and the elevation plane, and writing the graphic information into the computer-aided design drawing file;
acquiring storage path information of the computer aided design drawing file;
and obtaining an elevation description file according to the height information, the elevation name and the storage path information in the elevation information.
In one embodiment, a readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
obtaining an elevation name and an elevation plane according to the elevation information;
acquiring a building component in a building information model;
acquiring graphic information after the intersection of the building component and the elevation plane, and writing the graphic information into the computer-aided design drawing file;
acquiring storage path information of the computer aided design drawing file;
and obtaining an elevation description file according to the height information, the elevation name and the storage path information in the elevation information.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.