CN115238647A - Drawing conversion method, device, equipment and medium based on building information model - Google Patents

Drawing conversion method, device, equipment and medium based on building information model Download PDF

Info

Publication number
CN115238647A
CN115238647A CN202210892694.9A CN202210892694A CN115238647A CN 115238647 A CN115238647 A CN 115238647A CN 202210892694 A CN202210892694 A CN 202210892694A CN 115238647 A CN115238647 A CN 115238647A
Authority
CN
China
Prior art keywords
standard
content
file
building information
information model
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.)
Withdrawn
Application number
CN202210892694.9A
Other languages
Chinese (zh)
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.)
Chengdu Xumi Yuntu Architectural Design Co ltd
Original Assignee
Chengdu Xumi Yuntu Architectural Design 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 Chengdu Xumi Yuntu Architectural Design Co ltd filed Critical Chengdu Xumi Yuntu Architectural Design Co ltd
Priority to CN202210892694.9A priority Critical patent/CN115238647A/en
Publication of CN115238647A publication Critical patent/CN115238647A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a drawing conversion method, a drawing conversion device, drawing conversion equipment and a drawing conversion medium based on a building information model. The method comprises the following steps: determining first drawing contents in the building information model corresponding to the building information model file; exporting the first drawing content from the building information model by utilizing a preset drawing standard and color setting corresponding to the building information model to obtain a drawing file with a target format meeting the template requirement of the drawing standard; determining second drawing contents in the drawing file, and respectively converting different types of contents into corresponding standard contents according to different types of contents contained in the second drawing contents and a predefined content conversion standard; and generating a converted drawing file according to the standard content, wherein the standard layer of the converted drawing file comprises one or more standard contents. According to the method and the device, the standardized conversion of the drawing is realized, the standardized conversion efficiency of the drawing is improved, the cost of the standardized conversion of the drawing is reduced, and the quality of the converted drawing file is improved.

Description

Drawing conversion method, device, equipment and medium based on building information model
Technical Field
The present application relates to the field of building information model technology, and in particular, to a drawing conversion method, apparatus, device, and medium based on a building information model.
Background
The Building Information Modeling (BIM) refers to a process of creating and managing Building Information in a whole life cycle of planning, designing, constructing, operating and maintaining stages of construction engineering and facilities, and a three-dimensional, real-time and dynamic model is applied in the whole process to cover geometric Information, spatial Information, geographic Information, property Information of various Building components and work material Information. In BIM, revit is a mainstream BIM visualization and modeling tool.
After the Revit is used for modeling, a model in the Revit needs to be exported as a CAD drawing file so as to be convenient for delivery, but the difference between the drawing effect of the CAD drawing exported by using the original function of the Revit and the required standard drawing is large, and the exported drawing layers and lines are disordered and are not convenient for subsequent editing, so that a large amount of time is usually spent on manual modification in the CAD drawing so that the CAD drawing can meet the requirement for delivery. However, the mode of manually opening the CAD drawing to modify the primitives which do not meet the standard requirements is time-consuming and labor-consuming, consumes a large amount of manpower and material resources, and is prone to error and missing items if the modification amount is too large, so a scheme capable of automatically performing the compliant conversion on the CAD drawing derived by Revit is urgently needed.
Disclosure of Invention
In view of this, embodiments of the present application provide a drawing conversion method, an apparatus, a device, and a medium based on a building information model, so as to solve the problems in the prior art that a large amount of manpower and material resources are consumed, missing items are easily generated in the modification process, and the efficiency of converting into a standard drawing is low because primitives that do not meet the standard requirements are manually modified.
In a first aspect of the embodiments of the present application, a drawing conversion method based on a building information model is provided, including: acquiring a building information model file for drawing conversion, and determining a first drawing content in a building information model corresponding to the building information model file; exporting the first drawing content from the building information model by utilizing a preset drawing standard and color setting corresponding to the building information model to obtain a drawing file with a target format meeting the template requirement of the drawing standard; determining second drawing contents in the drawing file, and respectively converting different types of contents into corresponding standard contents according to different types of contents contained in the second drawing contents and a predefined content conversion standard; and generating a converted drawing file according to the standard content, wherein the standard layer of the converted drawing file comprises one or more standard contents.
In a second aspect of the embodiments of the present application, a drawing conversion apparatus based on a building information model is provided, including: the acquisition module is configured to acquire a building information model file for drawing conversion and determine that the building information model file corresponds to first drawing contents in a building information model; the export module is configured to export the first drawing content from the building information model by using a preset drawing standard and color setting corresponding to the building information model to obtain a drawing file with a target format meeting the template requirement of the drawing standard; the conversion module is configured to determine second drawing contents in the drawing file, and convert the different types of contents into corresponding standard contents respectively according to different types of contents contained in the second drawing contents and a predefined content conversion standard; the generating module is configured to generate a converted drawing file according to the standard content, wherein the standard layer of the converted drawing file comprises one or more standard contents.
In a third aspect of the embodiments of the present application, there is provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the method.
In a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, and the computer program realizes the steps of the above method when being executed by a processor.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
determining a first drawing content in a building information model corresponding to a building information model file by acquiring the building information model file for drawing conversion; exporting the first drawing content from the building information model by utilizing a preset drawing standard and color setting corresponding to the building information model to obtain a drawing file with a target format meeting the template requirement of the drawing standard; determining second drawing contents in the drawing file, and respectively converting the different types of contents into corresponding standard contents according to the different types of contents contained in the second drawing contents and a predefined content conversion standard; and generating a converted drawing file according to the standard content, wherein the standard layer of the converted drawing file comprises one or more standard contents. According to the method and the device, the first drawing contents in the building information model are exported to the drawing file in the target format according to the requirements of the drawing standard, so that the second drawing contents are automatically converted based on the drawing file in the target format, and the standard drawing layers of the converted drawing file all accord with the standard.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic flowchart of a drawing conversion method based on a building information model according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a drawing conversion device based on a building information model according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
As described in the foregoing background art, after a Revit model file is obtained by using Revit modeling, since a two-dimensional drawing file (such as a CAD drawing) is used during actual construction, a three-dimensional Revit model needs to be exported as the two-dimensional drawing file, however, a large amount of time is required for manual adjustment and modification because a drawing effect of the CAD drawing exported by using a Revit native function is greatly different from a required standard drawing, and a drawing layer and a line in the exported two-dimensional drawing file are disordered, which is inconvenient for subsequent editing processing. That is, although Revit has a native function of exporting a three-dimensional model as a CAD drawing, the drawing derived using the native function has a poor effect, and subsequent editing is difficult, and a large amount of manual operations are required for modification.
In the prior art, besides manual modification of non-standard contents one by one, standard conversion can be performed by using the image guide function of other Revit plug-ins on the market, but the plug-ins start from the original export setting of Revit and perform quick modification, character style processing and the like of primitives through the export setting; however, the picture effect obtained by the method of exporting the standardized drawing by using the Revit plug-in is still poor, and the situation of disordered layers still exists, so that the standardized conversion of the relevant settings of the layers of the exported drawings cannot be really performed, the subsequent editing cannot be facilitated, and the conversion cannot be performed by adapting to different picture standards.
In view of the above problems in the prior art, it is desirable to provide a drawing conversion scheme capable of automatically converting non-standard contents in a drawing into standard contents, and in the embodiments of the present application, on the basis of a Revit export function, a technical scheme of standard conversion and adaptation of drawing contents according to different drawing standards is added, and after a first drawing content in Revit is exported as a two-dimensional drawing file, contents (such as drawing layer color, drawing layer name, drawing layer linetype, and the like) in a two-dimensional drawing are automatically and conformably converted through a content conversion standard, so that each drawing layer in the two-dimensional drawing meets the requirements of a standard drawing layer, and a two-dimensional drawing meeting the standard requirements is obtained. The efficiency of the standardized conversion of drawing has been promoted in this application, reduces the consumption of manpower and materials to be difficult to the mistake and miss the item, promote the quality of the drawing file after the conversion.
The implementation process and principle of the technical solution of the present application are described below with reference to the accompanying drawings and specific embodiments, and fig. 1 is a schematic flow chart diagram of a drawing conversion method based on a building information model provided in the embodiments of the present application. The drawing conversion method based on the building information model in fig. 1 may be executed by building information model software or separately developed software, and as shown in fig. 1, the drawing conversion method based on the building information model may specifically include:
s101, obtaining a building information model file for drawing conversion, and determining a first drawing content in a building information model corresponding to the building information model file;
s102, exporting the first drawing content from the building information model by using a preset drawing standard and color setting corresponding to the building information model to obtain a drawing file in a target format meeting the template requirement of the drawing standard;
s103, determining second drawing contents in the drawing file, and respectively converting the different types of contents into corresponding standard contents according to the different types of contents contained in the second drawing contents and a predefined content conversion standard;
and S104, generating a converted drawing file according to the standard content, wherein the standard layer of the converted drawing file comprises one or more standard contents.
Specifically, the Building Information model in the embodiment of the present application may adopt a model based on a forward design of a BIM (Building Information Modeling), which is referred to as a Building Information model for short, where the BIM refers to a process of creating and managing Building Information in a whole life cycle of planning, designing, constructing, and operating and maintaining stages of a construction project and a facility, and the whole process applies a three-dimensional, real-time, and dynamic model to cover geometric Information, spatial Information, geographic Information, property Information of various Building components, and work material Information. In BIM, revit is a mainstream BIM visualization and modeling tool, and therefore, the building information model in the embodiment of the present application may adopt a Revit model.
Further, the drawing standard and the color setting in the embodiment of the present application are standards and color settings customized in advance in the Revit model, and the drawing standard and the color setting have an effect that when a first drawing content is derived from the Revit model as a second drawing content in a drawing file, the drawing standard provides a set of drawing templates (also called layer templates), after a user selects the used drawing template, the Revit model automatically derives the first drawing content as the drawing file matched with the drawing template, and the content in the derived drawing file also meets the requirement for the color setting in the Revit model.
Further, the drawing contents of the embodiment of the present application refer to primitive components in a model or a drawing, such as lines, labels, characters, drawing layer colors, and the like, and since the primitive components are displayed in a drawing file in a drawing layer manner, the present application may also be regarded as a standardized conversion of the drawing layer, and the drawing standard may also be regarded as a drawing standard; the first drawing content and the second drawing content respectively represent a primitive component in the building information model and a primitive component in the derived CAD drawing, and it should be understood that the substitution in the noun does not constitute a limitation to the technical solution of the present application.
In some embodiments, determining that the building information model file corresponds to the first pictorial content in the building information model comprises: and acquiring all primitive components from the building information model file by using the interface corresponding to the building information model, and taking a picture formed by all primitive components as first picture content, wherein the primitive components in the first picture content are model components corresponding to the original building information model.
Specifically, the building information model in the embodiment of the present application may adopt a Revit model, at this time, an API interface of the building information model may be regarded as a Revit API, all primitive components corresponding to the current building information model may be obtained from the building information model file through the Revit API, all primitive components form a plurality of pictures together, the number and types of the primitive components included in each picture are not completely the same, in other words, the first picture content actually includes content corresponding to a plurality of pictures.
In some embodiments, deriving the first drawing content from the building information model using a preconfigured drawing standard and a color setting corresponding to the building information model, to obtain a drawing file in a target format meeting a template requirement of the drawing standard, includes: selecting at least one drawing standard from preset drawing standards as a drawing template when a drawing file is exported, exporting first drawing contents from a building information model by using the drawing template to obtain an exported CAD drawing file, and using the exported CAD drawing file as an original drawing file, wherein second drawing contents in the original drawing file meet the requirements of color setting corresponding to the building information model.
Specifically, the drawing standard is some preset standard templates (namely drawing templates), and when a user exports a CAD drawing file, the user can select one drawing standard in the Revit model as the drawing template used when exporting the drawing file; the color setting is also the color used in the preset Revit view, so when the CAD drawing is derived from the Revit model, the first drawing content is derived to be the second drawing content which accords with the color setting according to the drawing template. In practical application, the colors required by the layer standard, and the colors of the CAD original image are derived by Revit in the Revit model according to the embodiment of the present application, and the three are in a specific unified relationship.
Furthermore, the first drawing content is derived from the building information model, so that the view in the Revit model can be derived as a CAD drawing, and the drawing derived by the Revit model at this time is the drawing to be converted, so that the derived CAD drawing can be used as the original drawing to be converted. After the CAD drawing is exported, whether the color of each layer in the CAD drawing is consistent with the color specified by the drawing standard needs to be judged, only if the color is consistent with the color specified by the drawing standard, the CAD drawing is further converted by using the content conversion standard, otherwise, the color setting in the Revit model is revised again, and the color setting is kept consistent with the color in the drawing standard.
In some embodiments, the second drawing content includes different types of primitive components, and each type of primitive component corresponds to a content conversion standard; according to different types of contents contained in the second drawing contents and predefined content conversion standards, the different types of contents are respectively converted into corresponding standard contents, and the method comprises the following steps: determining different types of primitive components contained in the second picture content, and converting the primitive components belonging to the same type into standard content conforming to the content conversion standard according to the content conversion standard corresponding to each type of primitive components; the different types of primitive components comprise layer colors, layer names and layer line types.
Specifically, in the embodiment of the application, a user may define a content conversion standard in advance, each type of primitive component (i.e., the drawing content) in the derived CAD drawing corresponds to one content conversion standard, and the content conversion standards between different types of primitive components are different. The following describes the content conversion standard in the embodiment of the present application with reference to different types of primitive components, which may specifically include the following:
the types of the primitive components in the embodiment of the application include, but are not limited to, characters, labels, layer colors, layer names, layer line types, part of special components and the like; taking characters as an example, the characters in the original drawing are usually TTF characters, and the commonly used characters in the CAD drawing are shx characters, so that it can be seen that the characters in the original drawing are not unified with the actually required CAD drawing in terms of characters, and therefore, the TTF characters in the original drawing are converted into the commonly used characters in the CAD drawing by defining the content conversion standard related to the characters in advance.
Further, for example, the corresponding content conversion standard is labeled as: converting the marked style in the original drawing into a common style meeting the drawing standard; for some special components, the predefined content conversion criteria are: a plurality of continuous single lines in a CAD drawing derived from a part of Revit model are combined into the same multi-line segment so as to be edited later, for example, the cross section of a vertical pipeline in a special water supply and drainage drawing is originally 2 semicircles and is changed into a full circle line through processing.
In some embodiments, when at least one type of primitive component in the second drawing content is a drawing layer color, converting the drawing layer color into a corresponding standard drawing layer color includes: and converting the layer color in the original image file from an RGB color system to a color system corresponding to the index color in the standard CAD drawing file by using the mapping relation between the layer color of the preset original image file and the layer color in the standard CAD drawing file.
Specifically, because the layer color in the CAD drawing derived from the Revit model is the RGB color system, and the layer color in the CAD drawing finally delivered for use requires the index color, it is first necessary to find the layer in which the primitive component of each color is located, and modify all the relevant contents of the layer into the standard layer contents corresponding to the colors of the primitive components, thereby implementing layer standardization modification.
Further, the content conversion standard includes a conversion relationship between the derived model color system of the CAD drawing and the CAD drawing color system of the actual requirement result, for example, the RGB color of a certain model drawing in Revit is 255, and then the index color in the corresponding CAD drawing may be set to 1. The layer colors in the CAD drawing derived from the Revit model can be modified into the layer colors required by the CAD drawing when the CAD drawing is actually delivered for use through the mapping relation between the layer colors, so that the layer colors are modified.
Certainly, in the embodiment of the application, besides the color of the layer, the font, the labeling style, the layer name, the layer line type, part of the special component and the like of the character can be modified, wherein the character is converted from the TTF font in the original drawing (the CAD drawing derived from the Revit model is called the original drawing) into the shx font commonly used by CAD, and the shx font comprises the ordinary characters of the drawing and the characters for labeling, so that the drawing is more beautiful and normalized; the marking pattern can be changed into a common pattern which accords with the drawing standard, so that the fonts and the marking patterns in the original drawing are converted into the designated fonts and the marking patterns, and the drawing standardization, the drawing conversion and the drawing export are realized.
In some embodiments, when the at least one type of primitive component in the second drawing content is a layer name, converting the layer name into a corresponding standard layer name includes: merging the image layers belonging to the same color in the original image file, searching the name of a standard image layer corresponding to the name of the merged original image layer based on a content conversion standard, and modifying the name of the merged original image layer by using the name of the standard image layer so as to convert the name of the original image layer into the name of the standard image layer.
Specifically, when modifying the names of the image layers, the image layers of the original image belonging to the same color in the original image are merged, the image layer corresponding to the color of the standard image layer in the original image is found according to the image layer standard in the predefined content conversion standard, and then the names of the standard image layers are given to the corresponding image layer in the original image, so that the standardized modification of the image layer names is completed.
In some embodiments, when at least one type of primitive component in the second drawing content is a drawing line type, converting the drawing line type into a corresponding standard drawing line type includes: and converting the layer line type in the original image file into a standard layer line type by using a content conversion standard, wherein the content conversion standard comprises a corresponding relation between the original image layer line type and the standard layer line type.
Specifically, when the line type of the layer is converted, the layer with the modified name according to the layer standard in the content conversion standard is continuously modified according to the standard to modify the corresponding line type of the layer; that is, the conversion operation of the layer line type is performed after the layer name is modified, and the layer line type is also modified according to the layer standard in the content conversion standard, so as to modify the layer line type in the original drawing into the standard layer line type, so that the modified CAD drawing achieves the effect of delivery for use.
Further, for the conversion of a part of special components in the original drawing, a plurality of continuous single lines in the Revit-derived CAD drawing (i.e., the original drawing) are first merged into the same multi-line segment for subsequent editing, such as 2 semi-circles in the vertical pipe cross section in the water supply and drainage professional drawing, and the whole line is converted into a full circle line through the conversion processing of the special components.
According to the technical scheme provided by the embodiment of the application, the Revit model is derived into an original drawing (namely, a CAD drawing directly derived from the Revit) through a built-in drawing standard and color setting in the Revit model, and the picture contents (namely, primitive components) in the original drawing are respectively converted into corresponding standard contents (namely, standard primitive components) including conversion of characters, a labeling style, layer colors, layer names, layer line types, part of special components and the like according to a predefined content conversion standard on the basis of the original drawing, so that all the layer contents in the original drawing are converted into the standard layer contents, and the converted CAD drawing can meet the actual delivery and use requirements. The technical scheme provided by the embodiment of the application has the following advantages:
1) The method and the device can realize the standardized management of the layers of the Revit derived CAD drawing and the conversion of adapting to different standards;
2) The increase and decrease of the layer and the correspondence of the name can be controlled at any time by using the color and layer standard modification through Revit, so that subsequent editable applications (including printing and the like) are ensured;
3) The method and the device can realize the standardized transformation of the content of the picture of the CAD drawing derived from Revit, so that the picture is more attractive and meets the standard requirement of the picture.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 2 is a schematic structural diagram of a drawing conversion device based on a building information model according to an embodiment of the present application. As shown in fig. 2, the drawing conversion apparatus based on the building information model includes:
the obtaining module 201 is configured to obtain a building information model file for drawing conversion, and determine that the building information model file corresponds to first drawing contents in a building information model;
the exporting module 202 is configured to export the first drawing content from the building information model by using a preset drawing standard and a color setting corresponding to the building information model to obtain a drawing file in a target format meeting the template requirement of the drawing standard;
a conversion module 203, configured to determine second drawing contents in the drawing file, and convert the different types of contents into corresponding standard contents according to different types of contents included in the second drawing contents and a predefined content conversion standard, respectively;
the generating module 204 is configured to generate a converted drawing file according to the standard content, where a standard layer of the converted drawing file includes one or more standard contents.
In some embodiments, the obtaining module 201 in fig. 2 obtains all primitive components from the building information model file by using the interface corresponding to the building information model, and takes a drawing formed by all primitive components as a first drawing content, where the primitive components in the first drawing content are model components corresponding to the original building information model.
In some embodiments, the exporting module 202 of fig. 2 selects at least one drawing standard from the pre-configured drawing standards as a drawing template for exporting the drawing file, and exports the first drawing content from the building information model by using the drawing template to obtain an exported CAD drawing file, and uses the exported CAD drawing file as an original drawing file, wherein the second drawing content in the original drawing file meets the requirement of the color setting corresponding to the building information model.
In some embodiments, the second drawing content includes different types of primitive components, each type of primitive component corresponds to a content conversion standard, the conversion module 203 in fig. 2 determines the different types of primitive components included in the second drawing content, and converts the primitive components belonging to the same type into standard content conforming to the content conversion standard according to the content conversion standard corresponding to each type of primitive component; the different types of primitive components comprise layer colors, layer names and layer line types.
In some embodiments, when at least one type of primitive component in the second drawing content is a layer color, the conversion module 203 in fig. 2 converts the layer color in the original drawing file from an RGB color system to a color system corresponding to an index color in the standard CAD drawing file by using a preset mapping relationship between the layer color in the original drawing file and the layer color in the standard CAD drawing file.
In some embodiments, when the at least one type of primitive component in the second image content is a layer name, the conversion module 203 of fig. 2 merges layers belonging to the same color in the original image file, searches for a name of a standard layer corresponding to the name of the merged original image layer based on the content conversion criterion, and modifies the name of the merged original image layer by using the name of the standard layer so as to convert the name of the original image layer into the name of the standard layer.
In some embodiments, when at least one type of primitive component in the second drawing content is a drawing line type, the conversion module 203 in fig. 2 converts the drawing line type in the original drawing file into a standard drawing line type by using a content conversion standard, where the content conversion standard includes a corresponding relationship between the original drawing line type and the standard drawing line type.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 3 is a schematic structural diagram of an electronic device 3 provided in an embodiment of the present application. As shown in fig. 3, the electronic apparatus 3 of this embodiment includes: a processor 301, a memory 302, and a computer program 303 stored in the memory 302 and executable on the processor 301. The steps in the various method embodiments described above are implemented when the processor 301 executes the computer program 303. Alternatively, the processor 301 implements the functions of the modules/units in the above-described apparatus embodiments when executing the computer program 303.
Illustratively, the computer program 303 may be partitioned into one or more modules/units, which are stored in the memory 302 and executed by the processor 301 to accomplish the present application. One or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 303 in the electronic device 3.
The electronic device 3 may be a desktop computer, a notebook, a palm computer, a cloud server, or other electronic devices. The electronic device 3 may include, but is not limited to, a processor 301 and a memory 302. Those skilled in the art will appreciate that fig. 3 is merely an example of the electronic device 3, and does not constitute a limitation of the electronic device 3, and may include more or fewer components than those shown, or some of the components may be combined, or different components, e.g., the electronic device may further include an input-output device, a network access device, a bus, etc.
The Processor 301 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 302 may be an internal storage unit of the electronic device 3, for example, a hard disk or a memory of the electronic device 3. The memory 302 may also be an external storage device of the electronic device 3, such as a plug-in hard disk provided on the electronic device 3, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 302 may also include both an internal storage unit of the electronic device 3 and an external storage device. The memory 302 is used for storing computer programs and other programs and data required by the electronic device. The memory 302 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/computer device and method may be implemented in other ways. For example, the above-described apparatus/computer device embodiments are merely illustrative, and for example, a division of modules or units, a division of logical functions only, an additional division may be made in actual implementation, multiple units or components may be combined or integrated with another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by the present application, and the computer program can be stored in a computer readable storage medium to instruct related hardware, and when the computer program is executed by a processor, the steps of the method embodiments described above can be realized. The computer program may comprise computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain suitable additions or additions that may be required in accordance with legislative and patent practices within the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals or telecommunications signals in accordance with legislative and patent practices.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A drawing conversion method based on a building information model is characterized by comprising the following steps:
acquiring a building information model file for drawing conversion, and determining a first drawing content in a building information model corresponding to the building information model file;
exporting the first drawing content from the building information model by using a preset drawing standard and a color setting corresponding to the building information model to obtain a drawing file with a target format meeting the template requirement of the drawing standard;
determining second drawing contents in the drawing file, and respectively converting the different types of contents into corresponding standard contents according to different types of contents contained in the second drawing contents and a predefined content conversion standard;
and generating a converted drawing file according to the standard content, wherein the standard layer of the converted drawing file comprises one or more standard contents.
2. The method of claim 1, wherein determining that the building information model file corresponds to a first pictorial content in a building information model comprises:
and acquiring all primitive components from the building information model file by using an interface corresponding to the building information model, and taking a drawing formed by all primitive components as the first drawing content, wherein the primitive components in the first drawing content are the original model components corresponding to the building information model.
3. The method of claim 1, wherein deriving the first drawing content from the building information model using a pre-configured drawing standard and a color setting corresponding to the building information model to obtain a drawing file in a target format meeting template requirements of the drawing standard comprises:
selecting at least one drawing standard from preset drawing standards as a drawing template when drawing files are exported, exporting the first drawing content from the building information model by using the drawing template to obtain the exported CAD drawing file, and using the exported CAD drawing file as an original drawing file, wherein the second drawing content in the original drawing file meets the requirement of color setting corresponding to the building information model.
4. The method according to claim 1, wherein the second drawing content comprises different types of primitive components, and each type of primitive component corresponds to a content conversion standard;
the converting the different types of content into corresponding standard content according to the different types of content included in the second drawing content and a predefined content conversion standard includes:
determining different types of primitive components contained in the second drawing content, and converting the primitive components belonging to the same type into standard content conforming to the content conversion standard according to the content conversion standard corresponding to each type of primitive components; the different types of primitive components comprise layer colors, layer names and layer line types.
5. The method according to claim 4, wherein when at least one type of primitive component in the second drawing content is a drawing layer color, converting the drawing layer color into a corresponding standard drawing layer color comprises:
and converting the layer colors in the original image file from an RGB color system to a color system corresponding to the index colors in the standard CAD drawing file by using the mapping relation between the layer colors in the preset original image file and the layer colors in the standard CAD drawing file.
6. The method according to claim 4, wherein when the at least one type of primitive component in the second drawing content is a layer name, converting the layer name into a corresponding standard layer name comprises:
merging the image layers belonging to the same color in the original image file, searching the name of the standard image layer corresponding to the name of the merged original image layer based on the content conversion standard, and modifying the name of the merged original image layer by using the name of the standard image layer so as to convert the name of the original image layer into the name of the standard image layer.
7. The method according to claim 4, wherein when at least one type of primitive component in the second drawing content is a drawing type, converting the drawing type into a corresponding standard drawing type comprises:
and converting the layer line type in the original image file into a standard layer line type by using the content conversion standard, wherein the content conversion standard comprises a corresponding relation between the original image layer line type and the standard layer line type.
8. A drawing conversion apparatus based on a building information model, comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is configured to acquire a building information model file for drawing conversion and determine a first drawing content in a building information model corresponding to the building information model file;
the export module is configured to export the first drawing content from the building information model by using a preset drawing standard and a color setting corresponding to the building information model to obtain a drawing file with a target format meeting the template requirement of the drawing standard;
the conversion module is configured to determine second drawing contents in the drawing file, and convert the different types of contents into corresponding standard contents according to different types of contents contained in the second drawing contents and a predefined content conversion standard;
and the generating module is configured to generate a converted drawing file according to the standard content, wherein the standard layer of the converted drawing file contains one or more standard contents.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202210892694.9A 2022-07-27 2022-07-27 Drawing conversion method, device, equipment and medium based on building information model Withdrawn CN115238647A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210892694.9A CN115238647A (en) 2022-07-27 2022-07-27 Drawing conversion method, device, equipment and medium based on building information model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210892694.9A CN115238647A (en) 2022-07-27 2022-07-27 Drawing conversion method, device, equipment and medium based on building information model

Publications (1)

Publication Number Publication Date
CN115238647A true CN115238647A (en) 2022-10-25

Family

ID=83677499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210892694.9A Withdrawn CN115238647A (en) 2022-07-27 2022-07-27 Drawing conversion method, device, equipment and medium based on building information model

Country Status (1)

Country Link
CN (1) CN115238647A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117726748A (en) * 2023-11-13 2024-03-19 北京京能地质工程有限公司 Method, device, electronic equipment and medium for generating building information model

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117726748A (en) * 2023-11-13 2024-03-19 北京京能地质工程有限公司 Method, device, electronic equipment and medium for generating building information model

Similar Documents

Publication Publication Date Title
US11281742B2 (en) Interactive and selective coloring of digital vector glyphs
CN115238647A (en) Drawing conversion method, device, equipment and medium based on building information model
CN103646303A (en) A flexible management information system used for customizing processes and forms in a ship enterprise
CN112496553A (en) Method and system for printing card based on printing template
CN102509314A (en) Quick generating method for sunlight greenhouse construction drawing
CN108230236B (en) Digital image automatic imposition method and digitally published picture imposition method
JP2019091361A (en) Translation support device, translation support program, and method for supporting translation with information processing apparatus
CN116245052A (en) Drawing migration method, device, equipment and storage medium
CN107436785B (en) Revit software information interaction system and interaction method based on information system
CN113312033A (en) Template protocol generation and management method
Parakkat et al. Delaunay painting: Perceptual image colouring from raster contours with gaps
CN109617944B (en) WEB parameter management method, device, computer storage medium and equipment
CN115239846A (en) Visual modification method and device for cut file and related components
CN102184300A (en) Label rectangular graph computer produced drawing method
CN117032666A (en) Page editing method and device based on editor, terminal equipment and storage medium
CN114201793B (en) Sketchup-based BIM model lightweight method and system
CN116129126A (en) Construction method of segmentation prediction model, picture semantic segmentation labeling method and device
CN116956838A (en) Project determining method and device for engineering quantity list
CN115840564A (en) Integrated model construction method, device and system based on multi-frame construction model language
CN116956837A (en) Project determining method and device for engineering quantity list
CN114443683A (en) System, method, device and medium for on-site query of automatic operation of power grid equipment
CN107783789B (en) Demand development process method and demand development platform for project data
CN108228688B (en) Template generation method, system and server based on XBRL
JP7168366B2 (en) Image data editing system and method
CN108460816A (en) A kind of interactive intelligent generation system of intelligent grid communication planning design report

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20221025

WW01 Invention patent application withdrawn after publication