CN115239520A - Method and device for eliminating errors of model component, electronic device and storage medium - Google Patents

Method and device for eliminating errors of model component, electronic device and storage medium Download PDF

Info

Publication number
CN115239520A
CN115239520A CN202210904726.2A CN202210904726A CN115239520A CN 115239520 A CN115239520 A CN 115239520A CN 202210904726 A CN202210904726 A CN 202210904726A CN 115239520 A CN115239520 A CN 115239520A
Authority
CN
China
Prior art keywords
model
positioning
model component
building information
point
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.)
Pending
Application number
CN202210904726.2A
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 CN202210904726.2A priority Critical patent/CN115239520A/en
Publication of CN115239520A publication Critical patent/CN115239520A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/08Construction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/10Numerical modelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/20Configuration CAD, e.g. designing by assembling or positioning modules selected from libraries of predesigned modules

Abstract

The application provides an error elimination method and device for a model component, an electronic device and a storage medium. The method comprises the following steps: acquiring model components in the building information model, and acquiring the position of a positioning point or a positioning line end point corresponding to each model component; determining the distance error of each model component relative to the base point based on the positions of the positioning points or the end points of the positioning lines and the positions of the base points, and judging the distance error by using tolerance numerical values; when the distance error is larger than the tolerance value, obtaining the coordinates of the positioning points or the positioning line end points of the model component when the distance error is larger than the tolerance value, and determining the offset corresponding to the model component by using an offset value algorithm; and adjusting the coordinates of the positioning points or the positioning line end points of the model component when the deviation amount is larger than the tolerance value so as to change the absolute position of the model component relative to the base point when the deviation amount is larger than the tolerance value into an integer. The method and the device improve the efficiency of eliminating the errors of the model components and reduce the modeling cost of the building information model.

Description

Method and device for eliminating errors of model component, electronic device and storage medium
Technical Field
The present disclosure relates to the field of building information model technologies, and in particular, to a method and an apparatus for eliminating an error of a model component, an electronic device, and a storage medium.
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 projects and facilities, and a three-dimensional, real-time and dynamic model is applied in the whole process, so that the model covers 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.
Often, when using Revit modeling, there is a sporadic small numerical error in the relative position between the model members, or in the absolute position between the model members and the project base point, due to software auto-capture misalignment or manual operator error. However, such errors cannot be quickly discriminated during modeling, and when the number of model components is increased, the errors are accumulated more and more, so that the model accuracy is poorer and poorer. The existing building information model is mainly characterized in that dimension marks of components are simulated by lines and numbers through false marks, but marked values are not related to Revit components, model components needing error elimination need to be manually searched, and errors are eliminated in sequence through a manual modification mode.
Disclosure of Invention
In view of this, embodiments of the present application provide an error elimination method and apparatus for a model component, an electronic device, and a storage medium, so as to solve the problems that in the prior art, a manual error searching and modifying manner wastes time and labor, increases modeling cost, and reduces error elimination efficiency of a model component.
In a first aspect of the embodiments of the present application, a method for eliminating an error of a model component is provided, including: determining a building information model for performing an error elimination operation of a model member, and acquiring the model member in the building information model by using a filter provided by an interface of a preset building information model; acquiring the position of a positioning point or a positioning line end point corresponding to each model component by using an interface of a building information model, wherein the position of the positioning point or the positioning line end point is used for representing the absolute coordinate of the model component relative to a base point in the building information model; determining the distance error of each model component relative to the base point based on the positions of the positioning points or the end points of the positioning lines and the positions of the base points, and judging the distance error by utilizing a preset tolerance value; when the distance error is larger than the tolerance value, obtaining the coordinates of the locating point or the locating line end point of the model component when the distance error is larger than the tolerance value, and determining the offset corresponding to the model component when the distance error is larger than the tolerance value by using a preset offset value algorithm; and adjusting the coordinates of the positioning points or the positioning line end points of the model component when the deviation amount is larger than the tolerance value so as to change the absolute position of the model component when the deviation amount is larger than the tolerance value relative to the base point into an integer.
In a second aspect of the embodiments of the present application, there is provided an error elimination apparatus for a model member, including: a filtering module configured to determine a building information model for performing an error elimination operation of the model member, and acquire the model member in the building information model using a filter provided by an interface of a preset building information model; the acquisition module is configured to acquire the position of a positioning point or a positioning line endpoint corresponding to each model component by using an interface of the building information model, wherein the position of the positioning point or the positioning line endpoint is used for representing the absolute coordinates of the model component in the building information model relative to a base point; the judging module is configured to determine a distance error of each model component relative to the base point based on the positions of the positioning points or the positioning line end points and the positions of the base points, and judge the distance error by using a preset tolerance value; the calculation module is configured to obtain coordinates of a positioning point or a positioning line end point of the model component when the distance error is larger than the tolerance value, and determine the offset corresponding to the model component when the distance error is larger than the tolerance value by using a preset offset value algorithm; and the adjusting module is configured to adjust the coordinates of the positioning points or the positioning line end points of the model component when the deviation amount is larger than the tolerance value so as to change the absolute position of the model component relative to the base point when the deviation amount is larger than the tolerance value into an integer.
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:
acquiring a model member in a building information model by determining the building information model for performing an error elimination operation of the model member, using a filter provided by an interface of a preset building information model; acquiring the position of a positioning point or a positioning line end point corresponding to each model component by using an interface of a building information model, wherein the position of the positioning point or the positioning line end point is used for representing the absolute coordinate of the model component relative to a base point in the building information model; determining the distance error of each model component relative to the base point based on the positions of the positioning points or the end points of the positioning lines and the positions of the base points, and judging the distance error by utilizing a preset tolerance value; when the distance error is larger than the tolerance value, acquiring coordinates of a positioning point or a positioning line end point of the model component when the distance error is larger than the tolerance value, and determining the offset corresponding to the model component when the distance error is larger than the tolerance value by using a preset offset value algorithm; and adjusting the coordinates of the positioning points or the positioning line end points of the model component when the deviation amount is larger than the tolerance value so as to change the absolute position of the model component when the deviation amount is larger than the tolerance value relative to the base point into an integer. According to the method and the device, the absolute position of each model component with errors in the building information model is corrected to enable the absolute position of each model component relative to the base point to be an integer, so that the problem of scattered small numerical errors generated during the labeling of the model components is fundamentally eliminated, manual searching is not needed, the errors are eliminated, the modeling cost of the building information model is reduced, and the efficiency of eliminating the errors of the model components is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required 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 flow chart illustrating an error elimination method for model components according to an embodiment of the present disclosure;
FIG. 2 is a schematic structural diagram of an error elimination apparatus for model members according to an embodiment of the present disclosure;
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, the use of Revit modeling results in a sporadic fractional numerical error like "0.1" or "1" in the relative position between model components or in the absolute position between project basepoints due to software auto-capture misalignment or manual operator error. The error can not be quickly discriminated during modeling, when the number of components is large, the error is accumulated more and more, and the model precision is also poor more and more.
In the prior art, when the problem of the scattered small numerical errors is solved, the dimension labels of the components are simulated by lines and numbers mainly by making false labels, but because the labeled numerical values are not associated with the Revit components, the model components needing to eliminate the errors need to be manually searched, and then the errors are sequentially eliminated by a manual modification mode, namely, the positions of the model components are adjusted by the manual modification mode. Therefore, the existing error elimination mode aiming at the model member in the building information model needs manual elimination, the mode of manually searching and modifying the error is time-consuming and labor-consuming, and the mode does not accord with the forward design flow of drawing after drawing in the building information model and drawing consistency, and the existing error elimination mode aiming at the model member can not really eliminate the position error of the model member.
In view of the above problems in the prior art, it is desirable to provide a model component error elimination scheme that can automatically eliminate the position error of a model component in a building information model, does not need to manually find and eliminate the position error, and can correct the absolute position of the model component to truly eliminate all scattered decimal errors generated during modeling. 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 of an error elimination method for a model component according to the embodiments of the present application. The error elimination method of the model member of fig. 1 may be performed by building information model software or separately developed software, and as shown in fig. 1, the error elimination method of the model member may specifically include:
s101, determining a building information model for executing error elimination operation of a model component, and acquiring the model component in the building information model by using a filter provided by an interface of a preset building information model;
s102, acquiring the position of a positioning point or a positioning line endpoint corresponding to each model component by using an interface of the building information model, wherein the position of the positioning point or the positioning line endpoint is used for representing the absolute coordinate of the model component in the building information model relative to a base point;
s103, determining the distance error of each model component relative to the base point based on the positions of the positioning points or the end points of the positioning lines and the positions of the base points, and judging the distance errors by utilizing preset tolerance values;
s104, when the distance error is larger than the tolerance value, obtaining the coordinates of the positioning point of the model component or the end point of the positioning line when the distance error is larger than the tolerance value, and determining the offset corresponding to the model component when the distance error is larger than the tolerance value by using a preset offset value algorithm;
and S105, adjusting the coordinates of the positioning points or the end points of the positioning lines of the model component when the positioning points or the end points of the positioning lines are larger than the tolerance value according to the offset, so that the absolute position of the model component relative to the base point when the positioning points or the end points of the positioning lines are larger than the tolerance value is changed into an integer.
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 tolerance value of the embodiment of the present application may be regarded as a range that allows a distance error of the model member with respect to the base point, and a smaller tolerance value may have a higher requirement on the accuracy of the position of the model member in the building information model, and a larger tolerance value may have a lower requirement on the accuracy of the position of the model member in the building information model; in practical applications, a certain tolerance may be set according to actual requirements, for example, the tolerance may be set to the following values: 5mm, 10mm, 20mm, etc. It will be appreciated that the smaller the set tolerance value, the smaller the allowed distance error of the model component with respect to the base point, the greater the number of model components that need to be position corrected, and thus the smaller the tolerance value, the greater the computational complexity.
In some embodiments, obtaining model members in the building information model using a filter provided by an interface of a preset building information model includes: and filtering the instances in the file corresponding to the building information model according to the type of the preset model component by using a filter provided by an API (application program interface) of the building information model to obtain the instances corresponding to the model components conforming to the type in the building information model.
Specifically, the building information model may adopt a Revit model, at this time, an API interface of the building information model may be regarded as a Revit API, and through a filter provided by the Revit API, instances in a file (such as a Revit model file) of the building information model are filtered to obtain an instance corresponding to a model component conforming to a preset type. The instance is an object corresponding to the model component in the file of the building information model, and the instance includes the content such as the attribute information and the position information corresponding to the model component.
In some embodiments, the obtaining the position of the positioning point or the positioning line end point corresponding to each model component by using the interface of the building information model comprises: acquiring absolute coordinates of a positioning point or a positioning line end point corresponding to an instance of each model component from a file of the building information model by using an API (application program interface) interface of the building information model, and taking the absolute coordinates of the positioning point or the positioning line end point as the absolute position of the model component in the building information model; and the positioning points or the positioning line end points are used for positioning the model members in the building information model.
Specifically, each model component in the building information model is located by a positioning point or a positioning line, so that the absolute coordinates of the positioning point or the positioning line endpoint corresponding to each example of the model component can be obtained from the Revit model file by using the method provided by the Revit API. Therefore, the absolute coordinates of the positioning point or the positioning line end point corresponding to the instance of each model component are obtained through the Revit API, so that the absolute position of each model component in the building information model can be obtained.
It should be noted that, in addition to determining the position of the model component by obtaining the absolute coordinates of the positioning point or the end point of the positioning line of the model component, the absolute position of the model component may also be determined by using the coordinates of other points, as long as it is ensured that the selected point can reflect the absolute position of the model component in the building information model, the embodiment of the present application does not limit the type and specific position of the positioning point or the positioning line, and any manner that can realize the positioning of the model component in the building information model is suitable for the technical solution of the present application.
In some embodiments, determining the distance error of each model component with respect to the base point based on the positions of the anchor points or the anchor line end points and the positions of the base points comprises: calculating the distance between the model component and the base point based on the absolute coordinates of the positioning points or the positioning line end points of the model component in the building information model, and taking the numerical value of the decimal place as the distance error of the model component relative to the base point when the numerical value corresponding to the distance comprises the decimal place; and when the numerical value corresponding to the distance is an integer value, judging that the model component has no distance error relative to the base point.
Specifically, after obtaining the absolute coordinates of the positioning point or the positioning line end point of each model component in the building information model, the distance between the model component and the base point is determined by using the coordinates of the positioning point or the positioning line end point of the model component and the coordinates of the base point, where the distance is the distance between the model component and the base point in the base point coordinate system. The distance error elimination operation is required for model members corresponding to distances including fractional numbers, and the distance error elimination operation is not required for model members having distances of integer values.
In some embodiments, determining the corresponding offset of the model component when the offset is greater than the tolerance value using a predetermined offset algorithm comprises: and rounding the distance error corresponding to the model component when the distance error is larger than the tolerance value, enabling the distance between the rounded model component and the base point to be an integer, and taking the difference between the front distance and the rear distance as the offset of the model component according to the distance between the front model component and the rear model component which are rounded and the base point.
Specifically, before correcting the absolute coordinates of the model component with the distance error, the Revit API and the NET encapsulation method are used to calculate the offset value (i.e. offset) required by the model component, and the present embodiment encapsulates the rounding method into the NET method, and uses the NET method to calculate the offset of the model component. The following describes in detail the offset calculation process using the NET encapsulation rounding algorithm with reference to a specific embodiment, which may specifically include the following steps:
based on the numerical value behind the decimal point in the numerical values of the distances between the model component and the base point, taking the numerical value as a distance error, and changing the distance error into 0 or 1 in a rounding way; for example, when the distance between the model member a and the base point is 10.3cm, and the numerical value of the distance is rounded to obtain that the distance between the model member a and the base point is 10cm, that is, after the distance error of the model member a is eliminated, the distance between the model member a and the base point in the Revit model should be 10cm, the difference between the distances before and after rounding may be used as the offset amount of the model member in the Revit model, and in the above embodiment, the offset amount of the model member a is 0.3cm.
In some embodiments, adjusting coordinates of the locating point or locating line end point of the model member when the offset is greater than the tolerance value comprises: and correcting the absolute position of the model component in the building information model when the model component is larger than the tolerance value according to the offset corresponding to the model component when the model component is larger than the tolerance value, so that the absolute position of the model component relative to the base point after correction is an integer.
Specifically, the method and the device can adjust the coordinates of the positioning points or the end points of the positioning lines of the model component only when the positioning points or the end points of the positioning lines are larger than the tolerance value, that is, only when the distance error of the model component relative to the base point is larger than a certain threshold value (namely, the tolerance value), the distance error of the model component is eliminated, and the model component corresponding to the distance error smaller than the tolerance value is not eliminated, so that the efficiency of eliminating the errors can be improved, and certain precision requirements can be ensured.
Further, after the offset amount corresponding to the model member is calculated according to a rounding algorithm, the absolute position of the model member having a distance error larger than the tolerance value is corrected according to the offset amount, and the absolute position in the embodiment of the present application refers to the coordinates of the model member in a coordinate system having the base point as the origin, and thus may also be referred to as absolute coordinates. For example, continuing the example of the foregoing embodiment, if the offset of the model component a is calculated to be 0.3cm through a rounding algorithm, the coordinate corresponding to the positioning point or point end point of the model component a may be offset by 0.3cm, the offset direction may be determined by the direction of the connecting line between the positioning point or point end point and the base point, that is, the coordinate may be moved by 0.3cm along the connecting line between the positioning point or point end point and the base point toward the base point, so that the distance between the positioning point or point end point and the base point of the model component a after the offset becomes an integer distance of 10cm.
According to the technical scheme provided by the embodiment of the application, because the distance error generated by the model component in Revit during modeling is difficult to find, the application finds the absolute coordinates of the positioning points or the positioning line end points of different types of components through Revit API, and then shifts the positions of the positioning points and the positioning line end points by combining the preset tolerance value and the rounding algorithm, thereby finally achieving the purpose of eliminating the position error of the component. The position error of the model component can be corrected based on the base point position in the Revit model, the problem that scattered small numerical errors are generated when the model component is marked is fundamentally eliminated, and the model precision is improved so as to facilitate later application. The method and the device eliminate the absolute position error between the model component and the model base point, and also eliminate the relative position error between the model components. Compared with a mode of manually searching and moving the position, the distance error elimination method of the model component greatly improves the efficiency of eliminating the model component errors, reduces labor cost and time cost, and finally reduces the modeling cost of the building information model.
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 an error elimination apparatus for model members according to an embodiment of the present disclosure.
As shown in fig. 2, the error removing apparatus of the model member includes:
a filtering module 201 configured to determine a building information model for performing an error elimination operation of a model component, and obtain the model component in the building information model by using a filter provided by an interface of a preset building information model;
an obtaining module 202, configured to obtain, by using an interface of the building information model, a position of a positioning point or a positioning line endpoint corresponding to each model component, where the position of the positioning point or the positioning line endpoint is used to represent absolute coordinates of the model component in the building information model relative to a base point;
a judging module 203, configured to determine a distance error of each model component relative to the base point based on the positions of the positioning points or the end points of the positioning lines and the positions of the base points, and judge the distance error by using a preset tolerance value;
the calculation module 204 is configured to, when the distance error is greater than the tolerance value, obtain coordinates of a positioning point or a positioning line end point of the model component when the distance error is greater than the tolerance value, and determine, by using a preset offset value algorithm, an offset corresponding to the model component when the distance error is greater than the tolerance value;
an adjusting module 205 configured to adjust coordinates of the positioning points or the positioning line end points of the model member when being larger than the tolerance value according to the offset amount so as to change the absolute position of the model member when being larger than the tolerance value with respect to the base point to an integer.
In some embodiments, the filtering module 201 in fig. 2 filters the instance in the file corresponding to the building information model according to the type of the preset model component by using the filter provided by the API interface of the building information model, so as to obtain the instance corresponding to the model component conforming to the type in the building information model.
In some embodiments, the obtaining module 202 of fig. 2 obtains, by using an API interface of the building information model, absolute coordinates of a base point corresponding to a positioning point or a positioning line end point corresponding to an instance of each model component from a file of the building information model, and uses the absolute coordinates of the positioning point or the positioning line end point as an absolute position of the model component in the building information model; and the positioning points or the positioning line end points are used for positioning the model members in the building information model.
In some embodiments, the determining module 203 of fig. 2 calculates a distance between the model component and the base point based on absolute coordinates of the positioning point or the positioning line end point of the model component in the building information model, and takes a numerical value of the decimal place as a distance error of the model component relative to the base point when the numerical value corresponding to the distance includes the decimal place; and when the numerical value corresponding to the distance is an integer value, judging that the model component has no distance error relative to the base point.
In some embodiments, the calculation module 204 of fig. 2 rounds the distance error corresponding to the model component when the distance error is greater than the tolerance value, so that the distance between the rounded model component and the base point becomes an integer, and the difference between the front and rear distances is used as the offset of the model component according to the distance between the rounded front and rear model components and the base point.
In some embodiments, the adjustment module 205 of fig. 2 corrects the absolute position of the model component in the building information model when the model component is greater than the tolerance value according to the corresponding offset of the model component when the model component is greater than the tolerance value, so that the absolute position of the model component after correction relative to the base point becomes an integer.
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 operable 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 device 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 of the modules/units may be a series of computer program instruction segments capable of performing certain functions, the instruction segments being used for describing 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 less components than those shown, or combine certain components, or different components, for example, the electronic device may also include input-output devices, network access devices, buses, 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 should be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units and modules is only used for illustration, and in practical applications, the above function distribution may be performed by different functional units and modules as needed, that is, the internal structure of the device is divided into different functional units or modules, so as to perform all or part of the above described functions. 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 for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. For the specific working processes of the units and modules in the system, reference may be made to the corresponding processes in the foregoing method embodiments, which are not described herein again.
In the above embodiments, the description of each embodiment has its own emphasis, and reference may be made to the related description of other embodiments for parts that are not described or recited in any 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 depart from the spirit and scope of the embodiments of the present application, and they should be construed as being included in the present application.

Claims (10)

1. A method of eliminating errors in a model component, comprising:
determining a building information model for executing error elimination operation of a model component, and acquiring the model component in the building information model by using a preset filter provided by an interface of the building information model;
acquiring the position of a positioning point or a positioning line end point corresponding to each model component by using an interface of the building information model, wherein the position of the positioning point or the positioning line end point is used for representing the absolute coordinate of the model component in the building information model relative to a base point;
determining the distance error of each model component relative to the base point based on the positions of the positioning points or the end points of the positioning lines and the positions of the base points, and judging the distance error by utilizing a preset tolerance value;
when the distance error is larger than the tolerance value, acquiring coordinates of a positioning point or a positioning line end point of the model component when the distance error is larger than the tolerance value, and determining the offset corresponding to the model component when the distance error is larger than the tolerance value by using a preset offset value algorithm;
and adjusting the coordinates of the positioning points or the positioning line end points of the model component when the deviation is larger than the tolerance value so as to change the absolute position of the model component relative to the base point when the deviation is larger than the tolerance value into an integer.
2. The method according to claim 1, wherein the obtaining model components in the building information model using a preset filter provided by an interface of the building information model comprises:
and filtering the instances in the file corresponding to the building information model according to the type of a preset model component by using a filter provided by an API (application program interface) of the building information model to obtain the instances corresponding to the model components conforming to the type in the building information model.
3. The method according to claim 1, wherein the obtaining the position of the positioning point or the positioning line end point corresponding to each model member by using the interface of the building information model comprises:
acquiring absolute coordinates of a positioning point or a positioning line end point corresponding to each instance of the model member from a file of the building information model by using an API (application programming interface) of the building information model, and taking the absolute coordinates of the positioning point or the positioning line end point as the absolute position of the model member in the building information model; wherein the positioning points or positioning line end points are used for positioning the model members in the building information model.
4. The method of claim 3, wherein determining a distance error of each of the model members with respect to the base point based on the positions of the anchor points or anchor line end points and the positions of the base points comprises:
calculating the distance between the model component and the base point based on the absolute coordinates of the positioning points or the positioning line end points of the model component in the building information model, and taking the numerical value of the decimal place as the distance error of the model component relative to the base point when the numerical value corresponding to the distance comprises the decimal place; and when the numerical value corresponding to the distance is an integer value, judging that the model component has no distance error relative to the base point.
5. The method of claim 4, wherein the determining the offset corresponding to the model component when the offset is greater than the tolerance value using a predetermined offset algorithm comprises:
and rounding the distance error corresponding to the model component when the distance error is larger than the tolerance value, enabling the distance between the rounded model component and the base point to be an integer, and taking the difference between the front distance and the rear distance as the offset of the model component according to the distance between the model component and the base point before and after rounding.
6. The method of claim 1, wherein the adjusting coordinates of the positioning points or the positioning line end points of the model member larger than the tolerance value according to the offset amount comprises:
and correcting the absolute position of the model component in the building information model when the model component is larger than the tolerance value according to the offset corresponding to the model component when the model component is larger than the tolerance value, so that the absolute position of the model component after correction relative to the base point is an integer.
7. The method according to any of claims 1-6, wherein the building information model comprises a Revit model, and the interface of the building information model comprises a Revit API interface.
8. An error elimination apparatus of a model member, comprising:
the filtering module is configured to determine a building information model for executing an error elimination operation of a model component, and acquire the model component in the building information model by using a preset filter provided by an interface of the building information model;
the acquisition module is configured to acquire the position of a positioning point or a positioning line endpoint corresponding to each model component by using an interface of the building information model, wherein the position of the positioning point or the positioning line endpoint is used for representing the absolute coordinates of the model component in the building information model relative to a base point;
a judging module configured to determine a distance error of each model component relative to the base point based on the positions of the positioning points or the positioning line end points and the positions of the base points, and judge the distance error by using a preset tolerance value;
the calculation module is configured to obtain coordinates of a positioning point or a positioning line end point of the model component when the distance error is larger than the tolerance value, and determine a corresponding offset of the model component when the distance error is larger than the tolerance value by using a preset offset algorithm;
and the adjusting module is configured to adjust the coordinates of the positioning points or the positioning line end points of the model component when the deviation amount is larger than the tolerance value so as to change the absolute position of the model component when the deviation amount is larger than the tolerance value relative to the base point into an integer.
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.
CN202210904726.2A 2022-07-29 2022-07-29 Method and device for eliminating errors of model component, electronic device and storage medium Pending CN115239520A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210904726.2A CN115239520A (en) 2022-07-29 2022-07-29 Method and device for eliminating errors of model component, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210904726.2A CN115239520A (en) 2022-07-29 2022-07-29 Method and device for eliminating errors of model component, electronic device and storage medium

Publications (1)

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

Family

ID=83677318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210904726.2A Pending CN115239520A (en) 2022-07-29 2022-07-29 Method and device for eliminating errors of model component, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN115239520A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115454432A (en) * 2022-11-09 2022-12-09 中建八局第三建设有限公司 Examination development method and system based on BIM platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115454432A (en) * 2022-11-09 2022-12-09 中建八局第三建设有限公司 Examination development method and system based on BIM platform
CN115454432B (en) * 2022-11-09 2023-03-14 中建八局第三建设有限公司 Examination development method and system based on BIM platform

Similar Documents

Publication Publication Date Title
CN108931795B (en) Positioning equipment track optimization and boundary extraction method and device
CN111311632B (en) Object pose tracking method, device and equipment
CN108198218B (en) Flexible circuit board positioning method, device and computer readable storage medium
CN111795687B (en) Robot map updating method and device, readable storage medium and robot
CN112595323A (en) Robot and drawing establishing method and device thereof
CN110502839B (en) GIS (geographic information System) coordinate and CAD (computer aided design) coordinate conversion method based on BIM (building information modeling) platform
CN112288254B (en) Construction quality detection method, terminal and storage medium
CN104567893B (en) A kind of method and apparatus for building fine map
CN115239520A (en) Method and device for eliminating errors of model component, electronic device and storage medium
CN112484738B (en) Robot mapping method and device, computer readable storage medium and robot
CN114241018A (en) Tooth point cloud registration method and system and readable storage medium
CN113050660B (en) Error compensation method, error compensation device, computer equipment and storage medium
CN105389783A (en) Remote sensing image precise processing system and method
CN110826146B (en) Jig frame correction method, device and equipment based on CATIA (computer-graphics aided three-dimensional Interactive application), and storage medium
CN103092814B (en) A kind of general least square adjustment method of measurement data
CN112444820A (en) Robot pose determining method and device, readable storage medium and robot
CN112948605A (en) Point cloud data labeling method, device, equipment and readable storage medium
CN115018922A (en) Distortion parameter calibration method, electronic device and computer readable storage medium
CN111360796B (en) Robot and positioning method and device thereof
CN114371475A (en) Method, system, equipment and computer storage medium for optimizing calibration parameters
CN112001857A (en) Image correction method, system and equipment based on binocular camera and readable storage medium
CN108920749B (en) Pipeline two-dimensional and three-dimensional data updating method and device and computer readable storage medium
CN112200860A (en) Object position relation determining method and device, storage medium and electronic device
CN112347210A (en) Lane center line bending error correction method and system for medium-precision map
CN112329178B (en) Method and device for establishing three-dimensional construction cost model of angle steel tower and terminal equipment

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