CN110941871B - Automatic labeling method and system based on room information in Revit three-dimensional model - Google Patents

Automatic labeling method and system based on room information in Revit three-dimensional model Download PDF

Info

Publication number
CN110941871B
CN110941871B CN201911293914.0A CN201911293914A CN110941871B CN 110941871 B CN110941871 B CN 110941871B CN 201911293914 A CN201911293914 A CN 201911293914A CN 110941871 B CN110941871 B CN 110941871B
Authority
CN
China
Prior art keywords
room
revit
information
coordinate data
floor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911293914.0A
Other languages
Chinese (zh)
Other versions
CN110941871A (en
Inventor
齐保良
蔺玉璞
杨秀芝
汪清清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Jianzhu University
Original Assignee
Shandong Jianzhu University
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 Shandong Jianzhu University filed Critical Shandong Jianzhu University
Priority to CN201911293914.0A priority Critical patent/CN110941871B/en
Publication of CN110941871A publication Critical patent/CN110941871A/en
Application granted granted Critical
Publication of CN110941871B publication Critical patent/CN110941871B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9038Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/907Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/909Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using geographical or spatial information, e.g. location
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Library & Information Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses an automatic labeling method and system based on room information in a Revit three-dimensional model, comprising the following steps: extracting room coordinate data information of the Revit floor plan and storing the information into a database; judging the position of a spatial coordinate system of a model room to be marked in the Revit three-dimensional view, and extracting spatial position coordinate data by means of a Revit API interface; and matching the spatially positioned position coordinate data set with rectangular coordinate data information stored in a database by adopting a coordinate data matching algorithm, extracting data information to be marked, and completing automatic marking of the room information of the Revit three-dimensional model. The method can extract and store the floor plane room coordinate information into the middleware, and call the middleware storage information to automatically match the coordinate data with the model room label name and ID information.

Description

Automatic labeling method and system based on room information in Revit three-dimensional model
Technical Field
The invention belongs to the field of Revit secondary development of BIM technology, and particularly relates to an automatic labeling method and system for room information in a Revit three-dimensional model.
Background
The statements in this section merely provide background information related to the present disclosure and may not necessarily constitute prior art.
In recent years, building information model (Building Information Modeling, BIM) technology has been widely used in the building industry, and despite the great development of the domestic related BIM technology, some difficulties in popularizing and implementing the BIM technology are faced. Revit is one of the common modeling software of BIM, and the characteristics of visualization, coordination and optimality of Revit enable the building industry to be further developed.
At present, information such as a steel bar model, a diameter and the like in a three-dimensional view of a steel bar BIM model can be marked in a lead mode, and information such as a room name and the like in a CAD (computer aided design) drawing can be automatically converted into a Revit floor plan, but room name and ID information cannot be displayed in Revit software with a three-dimensional view display, and when simulated roaming or a section view is observed, the three-dimensional view is required to be repeatedly switched to a two-dimensional floor plan to look up the marked room name and ID, so that the working efficiency of a diagrammer and a designer is greatly reduced.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides an automatic labeling method based on room information in a Revit three-dimensional model, and the invention extracts the room coordinate data information of a Revit floor plan by means of Revit API expansion mode, stores the information in a database, and utilizes a coordinate matching algorithm to automatically and accurately position and identify the room in the Revit model, thereby solving the automatic labeling of the room information of the Revit three-dimensional model and improving the work efficiency of designers and diagrammers.
To achieve the above object, one or more embodiments of the present invention provide the following technical solutions:
an automatic labeling method based on room information in a Revit three-dimensional model comprises the following steps:
extracting room coordinate data information of the Revit floor plan and storing the information into a database;
judging the position of a spatial coordinate system of a model room to be marked in the Revit three-dimensional view, and extracting spatial position coordinate data by means of a Revit API interface;
and matching the spatially positioned position coordinate data set with rectangular coordinate data information stored in a database by adopting a coordinate data matching algorithm, extracting data information to be marked, and completing automatic marking of the room information of the Revit three-dimensional model.
Further technical scheme, extract the room coordinate data information of Revit floor plan: accessing building elements through a Revit API interface in a Revit floor plan, creating a filtering collector and filtering conditions, and storing a Room into the collector;
and converting the Transform function coordinates into a unified model coordinate system by using the Transform function coordinates, positioning the Revitlocation function coordinates to obtain coordinate data of the boundary outline of the room area, and obtaining the room name and ID character string information by using built-in parameters of the Revit API.
According to a further technical scheme, an ID is defined so that each record in the database can be uniquely identified, the relation between a main key and an external key among tables is established, the extracted room information is stored in the database, and the stored information of the database is written into an Excel file.
According to the further technical scheme, a mouse trigger event is utilized to display the model room name and ID information in the three-dimensional view, and labeling is completed.
According to a further technical scheme, building components are accessed, and different components are distinguished and accessed by the Revit API according to component identification characteristics;
the system family instance is accessed only by judging the class name attribute of the component, and the loadable family instance is accessed by judging the class name and class of the component together; all object component traversals in the Revit development platform use a filtering collector to collect the filtered objects, and the filtered objects are used together with a plurality of filters during filtering operation, and after filtering, the filtering collector obtains an object component set meeting the conditions.
According to the technical scheme, the interior of the building model is composed of a plurality of rooms and a public area, so that the rooms are judged to be the main basis for acquiring information, building components in floor rooms are positioned by a unified coordinate system, and in a Revit floor plan, the room names and ID information are marked in the interior of the wall outlines of the closed rooms.
According to the technical scheme, after a floor room is accessed by a building component and filtered by a filtering collector, a designated collection room is stored in the built collector, and then a Transform type is used for being converted into a unified model coordinate system, so that coordinate positioning information of a boundary of the building floor room is obtained; and then directly identifying and extracting the room name and ID character string through the built-in parameters of the Revit API.
In a further technical scheme, in a Revit three-dimensional view, model annotation information is obtained through a Revit coordinate data matching algorithm, and the coordinate data information algorithm in the middleware is matched: determining a model room to be marked, taking any point A in the model room, and obtaining a spatial coordinate system (x i ,y i ,z k ) Let z k Representing the height of the floor (x) i ,y j ) Representing the position in the floor room, according to z k Judging the floor range in the floor plane to which the floor ID belongs, thereby obtaining the floor ID; and then respectively making x-axis and y-axis vertical lines on the point A in the xy plane according to (x i ,y j ) The range of the rectangular coordinate system for obtaining the floor ID can be accurately judged by matching with the data in the middleware file, so that the name and ID of the whole model room can be obtained.
According to the further technical scheme, under the condition of simulated roaming or a section view, a mouse trigger event technology is adopted, the name and ID information of a room are displayed, and middleware information is extracted to achieve labeling by utilizing a prompt node function;
when the mouse moves any point in the model room area, the model room information appears beside the mouse through the prompt node, and the information of the model room is displayed timely; when the mouse is removed, the information disappears.
An automatic labeling system based on room information in a Revit three-dimensional model, comprising a server configured to:
extracting room coordinate data information of the Revit floor plan and storing the information into a database;
judging the position of a spatial coordinate system of a model room to be marked in the Revit three-dimensional view, and extracting spatial position coordinate data by means of a Revit API interface;
and matching the spatially positioned position coordinate data set with rectangular coordinate data information stored in a database by adopting a coordinate data matching algorithm, extracting data information to be marked, and completing automatic marking of the room information of the Revit three-dimensional model.
The one or more of the above technical solutions have the following beneficial effects:
(1) The automatic labeling method for the three-dimensional model room is convenient for designers and aesthetic staff to browse and operate, accords with labeling standards, avoids interference and overlapping of labeling information, realizes accurate and visual display and expression of room information, and improves design efficiency.
(2) The room name and ID information in the three-dimensional view are automatically marked through the Revit, so that time for turning over the drawings is saved for designers and image-examining staff, and the working efficiency is greatly improved.
(3) The automatic labeling method for the three-dimensional model room has important significance for reducing three-dimensional labeling time, improving design efficiency and guaranteeing three-dimensional model information accuracy, and has positive significance for popularization of BIM technology.
(4) The invention extracts the floor plane room coordinate information and stores the floor plane room coordinate information in the database, and matches the spatially positioned position coordinate data set with rectangular coordinate data information stored in the database by adopting a coordinate data matching algorithm, thereby playing a certain role in promoting the modernization and informatization of the building design industry.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention.
FIG. 1 is a specific flow chart of an automatic Revit three-dimensional room information labeling middleware in an embodiment example of the invention;
FIG. 2 is a diagram of definition information of a closed polygon according to an embodiment of the present invention;
FIG. 3 is a flow chart of a model information data matching algorithm of an embodiment of the present invention;
FIG. 4 is a flowchart of the Revit data information extraction of an embodiment of the present invention;
fig. 5 shows a model room according to an embodiment of the present invention.
Detailed Description
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the invention. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the present invention. As used herein, the singular is also intended to include the plural unless the context clearly indicates otherwise, and furthermore, it is to be understood that the terms "comprises" and/or "comprising" when used in this specification are taken to specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof.
Embodiments of the invention and features of the embodiments may be combined with each other without conflict.
Example 1
The embodiment discloses an automatic labeling method based on room information in a Revit three-dimensional model, which extracts the room coordinate data information of a Revit floor plan by means of Revit API expansion mode, stores the information in a database, and utilizes a coordinate matching algorithm to automatically and accurately position and identify the room in the Revit model, thereby completing the automatic labeling of the room information of the Revit three-dimensional model and improving the work efficiency of designers and diagrammers.
See figure 1 for a general frame diagram. The method is characterized in that floor room information is acquired from a Revit floor plan, is stored in a database, and is marked by utilizing a coordinate matching algorithm in a three-dimensional model room. The method comprises the following specific steps:
step one: accessing building elements through a Revit API interface in a Revit floor plan, creating a filtering collector and filtering conditions, and storing a Room into the collector;
step two: converting the Transform function coordinates into a unified model coordinate system by each floor ROOM primitive component, positioning the Revit.location function coordinates to obtain coordinate data of the boundary outline of the ROOM area, and obtaining the ROOM NAME and ID character string information by using the Revit API built-in parameter building InParameter ELEM_ROOM_NAME;
step three: and (3) establishing a BIM-based database (Epplus library) by combining the SQL server, defining an ID so that each record in the database can be uniquely identified, establishing a main key and external key relation between each table, storing the room information extracted in the step two into the database, and writing the database storage information into an Excel file.
Step four: judging the position of a spatial coordinate system of a model room to be marked in the Revit three-dimensional view, and extracting spatial position coordinate data again by means of a Revit API interface;
step five: matching the spatially positioned position coordinate data set with rectangular coordinate data information stored in the middleware by adopting a coordinate data matching algorithm, and extracting data information to be marked;
step six: and displaying the model room name and ID information in the three-dimensional view by utilizing a mouse trigger event, and finishing the labeling.
In a specific implementation example, in the Revit floor plan, building components are accessed through a Revit API interface, a filtering collector and filtering conditions are created, and a Room Room is stored in the collector; converting the Transform function coordinates into a unified model coordinate system by each floor ROOM primitive component, positioning the Revitlocation function coordinates to obtain coordinate data of the boundary outline of the ROOM area, and obtaining the ROOM NAME and ID character string information by using the Revit API built-in parameter building InParameter ELEM_ROOM_NAME; building a BIM-based database by combining an SQL server, defining an ID so that each record in the database can be uniquely identified, establishing a main key and external key relation between each table, storing the extracted room information into the database, and writing the stored information into an Excel file; judging the position of a spatial coordinate system of a model room to be marked in the Revit three-dimensional view, and extracting spatial position coordinate data again by means of a Revit API interface; matching the spatially positioned position coordinate data set with rectangular coordinate data information stored in the middleware by adopting a coordinate data matching algorithm, and extracting data information to be marked; and displaying the model room name and ID information in the three-dimensional view by utilizing a mouse trigger event, and finishing the labeling.
In the second embodiment, in the Revit floor plan, the coordinate reference values of the different primitive members are different, and the primitive members are positioned by the relative positions of the primitives. The primitive component firstly carries out coordinate conversion and is converted into a unified model coordinate system.
In the second embodiment, the Revit software provides a Transform class to perform coordinate transformation, and a developer may assign a value to the Transform object to construct a transformation matrix, and use the transformation matrix to Transform the coordinates of a given coordinate point into a model coordinate system. First, transform is initialized, then the values Of three directional vectors BasisX, basisY, basisZ Of its target coordinate system are set, point coordinate conversion is performed using Of Point, vector coordinate conversion is performed using Of Vector, and the target Point or Vector coordinate is converted to the coordinates Of the model coordinate system. The geometry instance, line and plane coordinates of all points in the group instances such as the primitive component door and window in the floor plan are obtained from the group instances by using the transformation matrix (the coordinates under the model coordinate system can also be directly returned by the geometry instance, the geometry instance () function of the geometry instance object).
Building component access, the Revit API distinguishes and accesses different components according to component identification features. The method only needs to judge the class name attribute of the component when accessing the system family instance, and the class name and class of the component need to be judged jointly when accessing the loadable family instance; all object component traversals in the Revit development platform use a filter collector (Filter element collector) to collect the filtered objects, and the filter collector obtains an object component set meeting the conditions after the filter collector is used together with a plurality of filters during the filtering operation.
Since the interior of the building model is composed of a plurality of rooms and a common area, the judgment of the rooms is the main basis for acquiring information, and building elements in floor rooms should be positioned by a unified coordinate system. In the Revit floor plan, room name and ID information are marked inside the outline of the wall of the closed room.
After the floor rooms are accessed by building components and filtered by a filtering collector, storing the designated collection rooms into the built collector, then converting the collection rooms into a unified model coordinate system by using a Transform type, and acquiring coordinate positioning information of the boundaries of the building floor rooms by using a Revit. Location; and then directly identifying and extracting the ROOM NAME and ID character string through the built-in parameter builtInParameter. ELEM_ROOM_NAME of the Revit API, and preparing for the next data storage.
In the second embodiment, the positioning information of the Revit primitive element is located in coordinates in two ways:
mode one: the location simple family instance locations are obtained using a Revit. Location function. Comprising two classes of objects:
object one: point-based family instance: such as posts, doors and windows, furniture, and the like. The Location attribute of the Point-based family instance returns Location Point IP an object, the position coordinate of the insertion Point is obtained through the IP Point, the rotation angle of the Point is obtained through the IP position, the value of the rotation angle is an radian value, and the anticlockwise rotation is positive.
Object two: line-based family example: such as beams, walls, etc. The Location attribute of the line-based family instance returns Location Curve Ic the object, and the base line can be returned through Ic Curve, so that the position information of the starting point and the ending point of the path is obtained.
Mode two: the Element Geometry function is used to obtain the point, plane and line space positioning of complex graphic primitives. For example: stairs, roof, inclined wall.
In a second embodiment, parameters identifying the room and the coordinates of the boundary of the closed room are obtained through the Revit API in the Revit floor. The primitive component element is a condition of a room boundary, and for the element of the model curve, the class of the primitive component element is building InCategory; for other elements, such as walls, columns, their ROOM boundary (buihinparameter. WALL_ATTR_ROOM_BOUNDING) parameter must be set to True.
In the Revit three-dimensional view, model annotation information is obtained through a Revit coordinate data matching algorithm, and the idea of a coordinate data information algorithm in the middleware is matched: determining model rooms to be markedTaking any point A in the model room, and obtaining the spatial coordinate system (x i ,y i ,z k ) Let z k Representing the height of the floor (x) i ,y j ) Representing the position in the floor room, according to z k Judging the floor range in the floor plane to which the floor ID belongs, thereby obtaining the floor ID; and then respectively making x-axis and y-axis vertical lines on the point A in the xy plane according to (x i ,y j ) The range of the rectangular coordinate system for obtaining the floor ID can be accurately judged by matching with the data in the middleware file, so that the name and ID of the whole model room can be obtained.
In the second embodiment, the floor room name and ID information acquired by the middleware are indicated by the area coordinate data range of the boundary of each floor room. In the Revit floor plan, the lower left corner of the drawing floor room is defined as the origin (0, 0) of the coordinate system, and the rectangular coordinate system (x i ,y i )、(x i ,y j )、(x j ,y i )、(x j ,y j ) Four nodes representing each closed polygon, and the four nodes are respectively made into four straight lines x=x i ,X=X j ,Y=Y i ,Y=Y j The closed polygon surrounded by the four straight lines is a room boundary outline, the boundary of the room is determined by using a BoundarySegment function, and any point of the shadow part of the closed polygon area is taken to represent the name and ID information of the room. See fig. 2 for a specific flow chart.
In the third embodiment, the components of the BIM database in the present invention mainly include 2 data tables, which are respectively: the data table of the room names and the IDs stores the data table of the room names and the ID information and the room boundaries in the BIM model, and stores the coordinate data information of the room outlines in the BIM model. To make it clear that each record can be uniquely identified, and to facilitate mapping with its associated statement, it is necessary to define a room name and ID so that each record in the database can be uniquely identified, so as to establish a primary key and foreign key relationship between the tables.
In the fourth step of the embodiment, the coordinate matching method of the present invention is described with reference to fig. 3, and the methodIn the spatial coordinate system, let the Z-axis represent the floor height and the X, Y-axis represent the horizontal position within the floor room. According to z k Determine the floor ID in its floor plan if 0.ltoreq.z k Less than or equal to 1, representing one layer of the floor plan; z is not less than 1 k And less than or equal to 2, and represents two layers. And point A (x) i ,y j ) Coordinates representing the position of a room in the floor, and determining the position (x i ,y j ) Is a range of rectangular coordinate system data sets stored by matching middleware.
In a fifth step of a specific implementation example, the information labeling method comprises the steps of determining the space position of a room of a model to be extracted in a three-dimensional view, accessing middleware, matching data information stored in a database by using coordinate data, acquiring attribute information by using traversal features, judging the data attribute information, extracting the information if the data attribute information accords with the data attribute information, and labeling a three-dimensional model; if not, continuing to access, and finally judging whether the labeling is finished. See fig. 4 for a specific flow chart.
In step six of the specific implementation example, referring to fig. 5, in the mouse triggering technology of the present invention, under the condition of simulated roaming or a cross-sectional view, the name and ID information of the room are displayed, and the middleware information is extracted to implement labeling by using a function of a prompt node (Tooltip). When the mouse moves any point in the model room area, the model room information appears beside the mouse through the prompt node, and the information of the model room is displayed timely; when the mouse is removed, the information disappears.
Example two
It is an object of the present embodiment to provide a computing device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of:
extracting room coordinate data information of the Revit floor plan and storing the information into a database;
judging the position of a spatial coordinate system of a model room to be marked in the Revit three-dimensional view, and extracting spatial position coordinate data by means of a Revit API interface;
and matching the spatially positioned position coordinate data set with rectangular coordinate data information stored in a database by adopting a coordinate data matching algorithm, extracting data information to be marked, and completing automatic marking of the room information of the Revit three-dimensional model.
Example III
An object of the present embodiment is to provide a computer-readable storage medium.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
extracting room coordinate data information of the Revit floor plan and storing the information into a database;
judging the position of a spatial coordinate system of a model room to be marked in the Revit three-dimensional view, and extracting spatial position coordinate data by means of a Revit API interface;
and matching the spatially positioned position coordinate data set with rectangular coordinate data information stored in a database by adopting a coordinate data matching algorithm, extracting data information to be marked, and completing automatic marking of the room information of the Revit three-dimensional model.
Example IV
An automatic labeling system based on room information in a Revit three-dimensional model, comprising a server configured to:
extracting room coordinate data information of the Revit floor plan and storing the information into a database;
judging the position of a spatial coordinate system of a model room to be marked in the Revit three-dimensional view, and extracting spatial position coordinate data by means of a Revit API interface;
and matching the spatially positioned position coordinate data set with rectangular coordinate data information stored in a database by adopting a coordinate data matching algorithm, extracting data information to be marked, and completing automatic marking of the room information of the Revit three-dimensional model.
The steps involved in the devices of the second, third and fourth embodiments correspond to those of the first embodiment of the method, and the detailed description of the embodiments can be found in the related description section of the first embodiment. The term "computer-readable storage medium" should be taken to include a single medium or multiple media including one or more sets of instructions; it should also be understood to include any medium capable of storing, encoding or carrying a set of instructions for execution by a processor and that cause the processor to perform any one of the methods of the present invention.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented by general-purpose computer means, alternatively they may be implemented by program code executable by computing means, whereby they may be stored in storage means for execution by computing means, or they may be made into individual integrated circuit modules separately, or a plurality of modules or steps in them may be made into a single integrated circuit module. The present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
While the foregoing description of the embodiments of the present invention has been presented in conjunction with the drawings, it should be understood that it is not intended to limit the scope of the invention, but rather, it is intended to cover all modifications or variations within the scope of the invention as defined by the claims of the present invention.

Claims (9)

1. An automatic labeling method based on room information in a Revit three-dimensional model is characterized by comprising the following steps:
extracting room coordinate data information of the Revit floor plan and storing the information into a database;
judging the position of a spatial coordinate system of a model room to be marked in the Revit three-dimensional view, and extracting spatial position coordinate data by means of a Revit API interface;
matching the spatially positioned position coordinate data set with rectangular coordinate data information stored in a database by adopting a coordinate data matching algorithm, extracting data information to be marked, and completing automatic marking of room information of a Revit three-dimensional model;
in the Revit three-dimensional view, model annotation information is obtained through a Revit coordinate data matching algorithm, and the coordinate data information algorithm in the middleware is matched: determining a model room to be marked, taking any point A in the model room, and obtaining a spatial coordinate system (x i ,y j ,z k ) Let z k Representing the height of the floor (x) i ,y j ) Representing the position in the floor room, according to z k Judging the floor range in the floor plane to which the floor ID belongs, thereby obtaining the floor ID; and then respectively making x-axis and y-axis vertical lines on the point A in the xy plane according to (x i ,y j ) The range of the rectangular coordinate system for obtaining the floor ID can be accurately judged by matching with the data in the middleware file, so that the name and ID of the whole model room can be obtained.
2. The automatic labeling method based on room information in a Revit three-dimensional model as claimed in claim 1, wherein the room coordinate data information of the Revit floor plan is extracted: in the Revit floor plan, building elements are accessed through the Revit API interface, filter collectors are created, filter conditions, and rooms Room are stored in the collectors.
3. The automatic labeling method based on room information in a Revit three-dimensional model according to claim 2, wherein each floor room primitive component is converted into a unified model coordinate system by using Transform function coordinates, coordinate data of a boundary outline of a room area are obtained by positioning Revit. Location function coordinates, and room name and ID character string information are obtained by using built-in parameters of Revit API.
4. The automatic labeling method based on room information in a Revit three-dimensional model according to claim 1, wherein an ID is defined so that each record in a database can be uniquely identified, a main key and external key relation between each table is established, the extracted room information is stored in the database, and the stored information of the database is written in an Excel file;
further, the mouse trigger event is utilized to display the model room name and ID information in the three-dimensional view, and the labeling is completed.
5. The automatic labeling method based on room information in a Revit three-dimensional model according to claim 1, wherein the access of building components is characterized in that the Revit API distinguishes and accesses different components according to component identification characteristics;
the system family instance is accessed only by judging the class name attribute of the component, and the loadable family instance is accessed by judging the class name and class of the component together; all object component traversals in the Revit development platform use a filtering collector to collect the filtered objects, and the filtered objects are used together with a plurality of filters during filtering operation, and after filtering, the filtering collector obtains an object component set meeting the conditions.
6. The automatic labeling method based on room information in a Revit three-dimensional model according to claim 1, wherein the method is characterized in that under the condition of simulated roaming or a section view, a mouse trigger event technology is adopted to display the name and ID information of a room, and the function of a prompt node is utilized to extract middleware information to realize labeling;
when the mouse moves any point in the model room area, the model room information appears beside the mouse through the prompt node, and the information of the model room is displayed timely; when the mouse is removed, the information disappears.
7. An automatic labeling system based on room information in a three-dimensional model of Revit, which is characterized in that the automatic labeling system for realizing the automatic labeling method based on room information in the three-dimensional model of Revit according to any one of claims 1-6 comprises a server configured to:
extracting room coordinate data information of the Revit floor plan and storing the information into a database;
judging the position of a spatial coordinate system of a model room to be marked in the Revit three-dimensional view, and extracting spatial position coordinate data by means of a Revit API interface;
matching the spatially positioned position coordinate data set with rectangular coordinate data information stored in a database by adopting a coordinate data matching algorithm, extracting data information to be marked, and completing automatic marking of room information of a Revit three-dimensional model;
in the Revit three-dimensional view, model annotation information is obtained through a Revit coordinate data matching algorithm, and the coordinate data information algorithm in the middleware is matched: determining a model room to be marked, taking any point A in the model room, and obtaining a spatial coordinate system (x i ,y i ,z k ) Let z k Representing the height of the floor (x) i ,y j ) Representing the position in the floor room, according to z k Judging the floor range in the floor plane to which the floor ID belongs, thereby obtaining the floor ID; and then respectively making x-axis and y-axis vertical lines on the point A in the xy plane according to (x i ,y j ) The range of the rectangular coordinate system for obtaining the floor ID can be accurately judged by matching with the data in the middleware file, so that the name and ID of the whole model room can be obtained.
8. A computing device implementing the labeling method of any of claims 1-6 or the labeling system of claim 7, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the program, performs the steps comprising:
extracting room coordinate data information of the Revit floor plan and storing the information into a database;
judging the position of a spatial coordinate system of a model room to be marked in the Revit three-dimensional view, and extracting spatial position coordinate data by means of a Revit API interface;
and matching the spatially positioned position coordinate data set with rectangular coordinate data information stored in a database by adopting a coordinate data matching algorithm, extracting data information to be marked, and completing automatic marking of the room information of the Revit three-dimensional model.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the labeling method of any of claims 1-6 or the labeling system of claim 7, performing the steps of:
extracting room coordinate data information of the Revit floor plan and storing the information into a database;
judging the position of a spatial coordinate system of a model room to be marked in the Revit three-dimensional view, and extracting spatial position coordinate data by means of a Revit API interface;
matching the spatially positioned position coordinate data set with rectangular coordinate data information stored in a database by adopting a coordinate data matching algorithm, extracting data information to be marked, and completing automatic marking of room information of a Revit three-dimensional model;
in the Revit three-dimensional view, model annotation information is obtained through a Revit coordinate data matching algorithm, and the coordinate data information algorithm in the middleware is matched: determining a model room to be marked, taking any point A in the model room, and obtaining a spatial coordinate system (x i ,y i ,z k ) Let z k Representing the height of the floor (x) i ,y j ) Representing the position in the floor room, according to z k Judging the floor range in the floor plane to which the floor ID belongs, thereby obtaining the floor ID; and then respectively making x-axis and y-axis vertical lines on the point A in the xy plane according to (x i ,y j ) The range of the rectangular coordinate system for obtaining the floor ID can be accurately judged by matching with the data in the middleware file, so that the name and ID of the whole model room can be obtained.
CN201911293914.0A 2019-12-16 2019-12-16 Automatic labeling method and system based on room information in Revit three-dimensional model Active CN110941871B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911293914.0A CN110941871B (en) 2019-12-16 2019-12-16 Automatic labeling method and system based on room information in Revit three-dimensional model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911293914.0A CN110941871B (en) 2019-12-16 2019-12-16 Automatic labeling method and system based on room information in Revit three-dimensional model

Publications (2)

Publication Number Publication Date
CN110941871A CN110941871A (en) 2020-03-31
CN110941871B true CN110941871B (en) 2023-04-28

Family

ID=69911349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911293914.0A Active CN110941871B (en) 2019-12-16 2019-12-16 Automatic labeling method and system based on room information in Revit three-dimensional model

Country Status (1)

Country Link
CN (1) CN110941871B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111523221B (en) * 2020-04-17 2023-04-18 同瀚建筑科技(杭州)有限公司 Pipeline marking system based on BIM technology and method of application system
CN111460567B (en) * 2020-04-17 2022-11-15 同瀚建筑科技(杭州)有限公司 BIM-based stair surface clear height inspection system, application system-based stair surface clear height inspection method and process
CN112182699B (en) * 2020-09-17 2022-11-18 中北大学 Information extraction method based on revit primitive model
CN112632682A (en) * 2020-12-30 2021-04-09 青岛腾远设计事务所有限公司 Method and device for generating floor surface layer model based on BIM forward design
CN112906108A (en) * 2021-01-27 2021-06-04 吴世甘 Automatic generation method and device of building electrical design drawing and storage device
CN113205589A (en) * 2021-03-11 2021-08-03 深圳市华阳国际工程设计股份有限公司 Automatic labeling method, processing equipment and storage medium of stair model
CN113486425A (en) * 2021-07-06 2021-10-08 成都云中楼阁科技有限公司 Method for automatically marking plane size of building by taking room as center
CN113360999B (en) * 2021-08-11 2021-11-05 上海建工集团股份有限公司 Building operation and maintenance management-oriented BIM model lightweight reconstruction method
CN115659477B (en) * 2022-11-14 2023-04-14 深圳市地铁集团有限公司 Data extraction method, device, equipment and storage medium based on BIM (building information modeling)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109242764A (en) * 2018-08-29 2019-01-18 北京道亨时代科技有限公司 A kind of method of two dimension cad plan view automatic conversion Revit threedimensional model

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109242764A (en) * 2018-08-29 2019-01-18 北京道亨时代科技有限公司 A kind of method of two dimension cad plan view automatic conversion Revit threedimensional model

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
李昌华 ; 田思敏 ; 周方晓 ; .自适应分块的BIM墙体轮廓提取及三维重建研究.计算机科学与探索.2017,(第03期),全文. *
赵飞 ; 张大宝 ; 李昌松 ; .BIM技术在钢结构模块化建筑工程中的应用.建筑技术.2018,(第S1期),全文. *
钟辉 ; 李驰 ; 孙红 ; 张珂 ; .面向BIM模型二次开发数据提取与应用技术.沈阳建筑大学学报(自然科学版).2019,(第03期),全文. *

Also Published As

Publication number Publication date
CN110941871A (en) 2020-03-31

Similar Documents

Publication Publication Date Title
CN110941871B (en) Automatic labeling method and system based on room information in Revit three-dimensional model
CN105931294B (en) A method of BIM physical model is converted into detail GIS standardized model
CN109840338B (en) Three-dimensional building model construction method applied to three-dimensional real estate information management
CN111597170B (en) Method for building spatial semantic database from BIM model without damage
CN107045526A (en) A kind of pattern recognition method of electronics architectural working drawing
CN109974703B (en) Method, system and device for constructing indoor navigation network
KR100538082B1 (en) Integrated building information management system based on augmented reality
CN111008422A (en) Building live-action map making method and system
CN103678737B (en) A kind of lever system dummy assembly method
CN110598195A (en) Automatic labeling and typesetting method for decoration drawing
CN110765523A (en) BIM technology-based rapid construction method for deep foundation pit support structure
CN109522381B (en) Building hidden facility safety detection method based on 3DGIS + BIM
CN113538706B (en) Digital sand table-based house scene display method, device, equipment and storage medium
CN110083872A (en) A kind of data extraction method towards BIM model
CN112465958A (en) WebGL-based BIM model lightweight display method
CN112001026B (en) Method, terminal and storage medium for building information model construction
CN111046459A (en) Building model image design method based on 3D software
Yang et al. Complementarity of historic building information modelling and geographic information systems
CN110162731B (en) Method for displaying IFC model component space information on Web
CN113063427A (en) Indoor high-precision map production method, device, equipment and storage medium
CN111340100A (en) Similarity calculation method of BIM (building information modeling) model
CN116129460A (en) Drawing analysis method, device, equipment and storage medium
Tsai et al. Integration of BIM and GIS to query management on pipeline of building-a case study of dormitory
CN114095716B (en) Monitoring camera three-dimensional simulation method and system based on BIM technology and GIS technology
CN112052489B (en) Method and system for generating house type graph

Legal Events

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