CN111814237B - Plug-in coordinate output method and device based on Revit basic building model - Google Patents
Plug-in coordinate output method and device based on Revit basic building model Download PDFInfo
- Publication number
- CN111814237B CN111814237B CN202010663662.2A CN202010663662A CN111814237B CN 111814237 B CN111814237 B CN 111814237B CN 202010663662 A CN202010663662 A CN 202010663662A CN 111814237 B CN111814237 B CN 111814237B
- Authority
- CN
- China
- Prior art keywords
- revit
- coordinates
- examples
- instances
- pier
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000011161 development Methods 0.000 claims abstract description 46
- 238000003780 insertion Methods 0.000 claims abstract description 28
- 230000037431 insertion Effects 0.000 claims abstract description 28
- 239000011159 matrix material Substances 0.000 claims abstract description 21
- 230000009466 transformation Effects 0.000 claims abstract description 20
- 238000012545 processing Methods 0.000 claims description 29
- 238000004891 communication Methods 0.000 claims description 17
- 230000008569 process Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 8
- 238000004364 calculation method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000000007 visual effect Effects 0.000 description 5
- 238000013461 design Methods 0.000 description 4
- 238000013473 artificial intelligence Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/13—Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/24—Object-oriented
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Civil Engineering (AREA)
- Architecture (AREA)
- Structural Engineering (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Evolutionary Computation (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a method and a device for outputting coordinates of a plug-in based on a Revit basic building model, which are applied to a server, wherein the server comprises the Revit basic building model and the plug-in thereof, and the method comprises the following steps: calling a collector to obtain a plurality of bridge pier family examples in a bridge database; acquiring names of the plurality of pier clusters, and extracting entities including target keywords from the names of the plurality of pier clusters to obtain a plurality of examples including the target keywords; and acquiring positioning points of the plurality of examples, acquiring the positions of the insertion points of the plurality of examples in the project and the rotation angle of the insertion, and calculating the coordinates of the plurality of examples by utilizing a matrix to carry out coordinate transformation. By adopting the application, the server can effectively improve the efficiency and accuracy of obtaining the pier coordinates through the Revit basic building model and the plug-in unit thereof. And the coordinates of a plurality of examples are conveniently output subsequently, so that the data can be accessed more conveniently. The method has high execution efficiency and strong expandability, and provides a foundation for later integrated development.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for outputting coordinates of a plug-in based on a Revit basic building model.
Background
With the development of computer technology, the functional coverage of computers is also becoming wider, and the fields of application are also increasing. Many things to be completed manually can be achieved originally, and prediction with higher accuracy can be achieved through program design of a computer, simulation of a related model, artificial intelligence and big data. The Revit series software is built for a Building Information Model (BIM), and can help building designers to design, build and maintain buildings with better quality and higher energy efficiency.
At present, when the calculation of pier coordinates in a pier cluster is performed, a large amount of data is required to be measured manually, the calculation is performed based on the large amount of data, time and labor are consumed, and because of manual operation, a plurality of calculation errors, even errors, are easily caused due to subjectivity, so that the accuracy of the coordinates is affected.
Disclosure of Invention
The invention provides a method and a device for outputting coordinates of a plug-in based on a Revit basic building model. And the plug-in of the Revit basic building model is utilized to rapidly and accurately output the pier coordinates based on the data in the bridge database, so that the calculation efficiency and accuracy are improved.
In a first aspect, a method for outputting coordinates of a plugin based on a Revit building model is applied to a server, where the server includes the Revit building model and plugins thereof, and the plugins include collectors, and the method includes:
calling a collector to obtain a plurality of bridge pier family examples in a bridge database;
Acquiring names of the plurality of pier clusters, and extracting entities including target keywords from the names of the plurality of pier clusters to obtain a plurality of examples including the target keywords;
and acquiring positioning points of the plurality of examples, acquiring the positions of the insertion points of the plurality of examples in the project and the rotation angle of the insertion, and calculating the coordinates of the plurality of examples by utilizing a matrix to carry out coordinate transformation.
Optionally, before the call collector obtains the instances of the plurality of bridge pier families in the bridge database, the method further includes: setting up a development environment in the Revit basic modeling platform, and adding plug-ins according to a preset mode; wherein the plug-in is used for outputting coordinates of a plurality of examples in the bridge database.
Optionally, building a development environment in the Revit basic modeling platform, adding plug-ins according to a preset mode, including: installing a development tool set, an object-oriented programming language and Revit series software; installing a software development kit provided by the Revit, and adding a Revit interface and a Revit user interface in the development kit set; wherein, at the Revit user interface, an operation menu is configured so that a user can execute a target operation through the menu.
Optionally, after the coordinates of the plurality of instances are calculated by performing coordinate transformation by using the matrix, the method further includes running a compiler included in a development tool set, and generating a dynamic library file supported by Revit from the coordinates of the plurality of instances.
Optionally, the method further comprises: and driving a form tool by using a serial communication port provided by an object-oriented programming language to process the coordinates of the plurality of instances according to a preset form template, and outputting the processed coordinates of the plurality of instances.
In a second aspect, a coordinate output device, the electronic apparatus includes a communication unit, a processing unit, wherein,
The processing unit is used for calling the collector to acquire a plurality of bridge pier family examples in the bridge database;
The processing unit is further configured to obtain names of the multiple bridge pier cluster instances, and extract entities including the target keywords in the names of the multiple bridge pier clusters to obtain multiple instances including the target keywords;
the processing unit is used for acquiring positioning points of the plurality of examples, acquiring the positions of the insertion points of the plurality of examples in the project and the rotation angles of the insertion, and calculating the coordinates of the plurality of examples by utilizing a matrix to carry out coordinate transformation.
In a third aspect, an embodiment of the present application provides a server, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, embodiments of the present application provide a chip comprising a processor and a data interface, the processor reading instructions stored on a memory via the data interface, performing a method as in the first aspect and any of the alternative implementations described above.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform part or all of the steps described in the first aspect of the embodiments of the present application.
In a sixth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
In the embodiment of the application, the server obtains a plurality of examples including the target keyword based on a plurality of pier family examples in the beam database and according to the names of the pier family examples, takes the entity including the target keyword from the names of the pier family examples. And acquiring positioning points of the multiple instances, positions of insertion points of the multiple instances in the project and rotation angles of the insertion, and calculating coordinates of the multiple instances by utilizing a matrix to carry out coordinate transformation. And the efficiency and accuracy of pier coordinate acquisition are improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a coordinate output method according to an embodiment of the present application;
FIG. 2 is a flowchart of another method for outputting coordinates according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a software system architecture of a plug-in provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a functional unit of a coordinate output device according to an embodiment of the present application;
Fig. 5 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims and in the above-described figures, are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The Revit basic building model is a tool (BIM software) which is commonly used in the building and construction engineering industry, and has the main characteristics that the learning process is easier to start, and a humanized operation interface is provided. The Revit basic building model adopts a single model building concept, can produce views in all directions and all graph speaking data, provides automatic coordination capability of projects, and automatically manages the change and reference of the graphs. Support simultaneous model operation and use in the same project, and its object database can support multiple user setup and use at the same time. However, the software is insufficient for the detail design of the object, and cannot provide enough detail design database, and the detail design function can be achieved only by customizing the definition object by the user. In addition, the limited functionality of the Revit building model makes the Revit building model incapable of meeting the functional requirements of various aspects of the building field. Therefore, secondary development is required to be carried out on the Revit basic building model, and the functionality of the Revit basic building model is increased by adding the plug-in, so that the Revit basic building model can better meet the demands of users.
At present, when the calculation of pier coordinates in a pier cluster is performed, a large amount of data is required to be measured manually, the calculation is performed based on the large amount of data, time and labor are consumed, and because of manual operation, a plurality of calculation errors, even errors, are easily caused due to subjectivity, so that the accuracy of the coordinates is affected.
Aiming at the problems, the embodiment of the application provides a coordinate output method of a plug-in of a Revit basic building model, which is applied to a server.
The server may include, for example, a distributed storage server, a conventional server, a large storage system, a desktop computer, a notebook computer, a tablet computer, a palm computer, a smart phone, a portable digital player, a smart watch, a smart bracelet, and the like.
Referring first to fig. 1, fig. 1 is a flowchart of a method for outputting coordinates of a plugin of a Revit basic building model according to an embodiment of the present application, where the method is applied to a server, and the server includes the Revit basic building model and plugins thereof, and the method may include, but is not limited to, the following steps:
101. And calling a collector to obtain a plurality of bridge pier family examples in the bridge database.
Specifically, it can be understood that the bridge database stores related data of a plurality of bridges, and the bridge database can be a built-in database of the server or an external database of the server. When a user runs a program, i.e., runs plug-ins to the Revit infrastructure model, the program calls Collector (FILTERED ELEMENT Collector) functions to obtain all instances of pier families in the bridge database of the bridge Revit model (FAMILY INSTANCE).
102. And obtaining the names of the plurality of pier clusters, and extracting the entities including the target keywords in the names of the plurality of pier clusters to obtain a plurality of examples including the target keywords.
Specifically, the server may call a Family instance function in the plug-in to obtain the names of the plurality of bridge pier cluster instances. And selecting an entity containing the target keyword from the names of the bridge pier family examples, wherein the entity is more than the target keyword and can be other similar keywords, so that a plurality of examples including the target keyword are obtained.
103. And acquiring positioning points of the plurality of examples, acquiring the positions of the insertion points of the plurality of examples in the project and the rotation angle of the insertion, and calculating the coordinates of the plurality of examples by utilizing a matrix to carry out coordinate transformation.
Specifically, the server may immediately obtain positioning points (Location points) of multiple instances, obtain positions of insertion points of the pier family in the project, extract rotation angles of insertion of the multiple instances in the project by using (Location Point Rotation) attributes in the plug-in of the Revit, and calculate coordinates of each feature Point by using Matrix to perform coordinate transformation. The Matrix class "Matrix". It incorporates the methods of point coordinate transformation (Transform Points), translation (Translate), scaling (Scale), rotation (Rotate).
It can be seen that, in the embodiment of the present application, the server obtains, based on the plurality of bridge pier family instances in the beam database, a plurality of instances including the target keyword from the plurality of bridge pier family instances according to the names of the plurality of bridge pier family instances, where the entity including the target keyword is included in the names of the plurality of bridge pier clusters. And acquiring positioning points of the multiple instances, positions of insertion points of the multiple instances in the project and rotation angles of the insertion, and calculating coordinates of the multiple instances by utilizing a matrix to carry out coordinate transformation. And the efficiency and accuracy of pier coordinate acquisition are improved.
In accordance with the embodiment shown in fig. 1, referring to fig. 2, fig. 2 is another method for outputting coordinates of a plugin based on a Revit building model according to an embodiment of the present application, which is applied to a server, where the server includes a Revit building model and plugins thereof, and the plugins include collectors, and the method includes:
201. And calling a collector to obtain a plurality of bridge pier family examples in the bridge database.
202. And obtaining the names of the plurality of pier clusters, and extracting the entities including the target keywords in the names of the plurality of pier clusters to obtain a plurality of examples including the target keywords.
203. And acquiring positioning points of the plurality of examples, acquiring the positions of the insertion points of the plurality of examples in the project and the rotation angle of the insertion, and calculating the coordinates of the plurality of examples by utilizing a matrix to carry out coordinate transformation.
Steps 201-203 refer to steps 101-103 and are not described in detail herein.
204. And running a compiler included in the development tool set, and generating the coordinates of the multiple instances into a dynamic library file supported by Revit.
Specifically, after obtaining the coordinates of the multiple instances, the server may further run a compiler of the development tool set Visual studio to generate a dynamic library file (. Dll.) supported by Revit. The coordinates of a plurality of examples are conveniently output subsequently, so that the data can be accessed more conveniently.
205. And driving a form tool by using a serial communication port provided by an object-oriented programming language to process the coordinates of the plurality of instances according to a preset form template, and outputting the processed coordinates of the plurality of instances.
Specifically, it may be understood that after the coordinates of multiple instances are obtained, the serial communication port com interface provided by the object-oriented programming language c++ or c# may be utilized to drive the operation of the Excel table, and the coordinates of multiple instances are processed according to a preset table template, so as to output the obtained coordinate data of multiple instances. And in the processing process, a table template is preset, and the obtained coordinates of a plurality of examples are divided into rows or pages according to the format specified by the table template.
It can be seen that, in the embodiment of the present application, the server obtains, based on the plurality of bridge pier family instances in the beam database, a plurality of instances including the target keyword from the plurality of bridge pier family instances according to the names of the plurality of bridge pier family instances, where the entity including the target keyword is included in the names of the plurality of bridge pier clusters. And acquiring positioning points of the multiple instances, positions of insertion points of the multiple instances in the project and rotation angles of the insertion, and calculating coordinates of the multiple instances by utilizing a matrix to carry out coordinate transformation. And the efficiency and accuracy of pier coordinate acquisition are improved. Further, a compiler of the development tool set Visual studio is run to generate a dynamic library file (.dll) supported by Revit. And the serial communication port com interface provided by the object-oriented programming language C++ or C# is utilized to drive the operation of the Excel table, the coordinates of a plurality of examples are processed according to a preset table template, and the obtained coordinate data of the plurality of examples are output. The coordinates of a plurality of examples are conveniently output subsequently, so that the data can be accessed more conveniently. The method has high execution efficiency and strong expandability, and provides a foundation for later integrated development.
In one possible example, before the call collector obtains an instance of a plurality of bridge pier families in the bridge database, the method further comprises: setting up a development environment in the Revit basic modeling platform, and adding plug-ins according to a preset mode; wherein the plug-in is used for outputting coordinates of a plurality of examples in the bridge database.
Specifically, it can be understood that, in order to realize the pier coordinate output function of the Revit basic building model, the server needs to perform secondary development on the Revit basic building model, and add a plug-in of the Revit basic building model. Setting up a development environment in the Revit basic modeling platform, and adding plug-ins according to a preset mode. While the added plug-in can realize the function of outputting the coordinates of a plurality of examples in the bridge database.
It can be seen that the server outputs the coordinates of multiple instances by developing the existing Revit infrastructure model a second time and adding plug-ins. The development cost of the software is reduced, and the functionality of the software is increased.
In one possible example, the building a development environment in the Revit base modeling platform, adding plug-ins according to a preset manner includes: installing a development tool set, an object-oriented programming language and Revit series software; installing a software development kit provided by the Revit, and adding a Revit interface and a Revit user interface in the development kit set; wherein, at the Revit user interface, an operation menu is configured so that a user can execute a target operation through the menu.
Specifically, the server builds a development environment in the Revit basic modeling platform, and adds plug-ins according to a preset mode, and specifically includes the following steps: the development tool set Visual studio, object-oriented programming language, and the Revit family software are installed first. The version of Visual studio is compatible with the version of the Revit base model. Installing a Software Development Kit (SDK) provided by the Revit, wherein the software development kit can be an object-oriented programming language C++ or C#. Revit interfaces (APIs) are added to the development tool set Visual studio. A Revit user interface; wherein a reference to dll at the Revit user interface (Revit API UI) is provided. The operation menu is configured, and a Menue create. Xlm file can also be configured. So that the user can execute the target operation through the menu, and can load the operation menu of the user in the Revit basic modeling interface.
In addition, the secondary development environment may be further configured as a three-layer structure, as shown in fig. 2, wherein the three-layer structure includes: an application layer as a user interaction interface; the business logic layer is used for carrying out data processing; and the data access layer is used for acquiring the complete data information of the bottom layer. The multiplexing of the software development function is facilitated, and the development logic is made clearer.
Therefore, the server performs secondary development on the Revit basic building model according to a preset mode, so that the multiplexing of software development functions is facilitated, and the development logic is clearer.
Referring to fig. 4, fig. 4 is a schematic diagram of a functional unit structure of a coordinate output device 400 according to an embodiment of the present application, where the device may be the server or a built-in or external device of the server. The apparatus comprises a communication unit 410, a processing unit 420, wherein,
The processing unit is used for calling the collector to acquire a plurality of bridge pier family examples in the bridge database;
The processing unit is further configured to obtain names of the multiple bridge pier cluster instances, and extract entities including the target keywords in the names of the multiple bridge pier clusters to obtain multiple instances including the target keywords;
the processing unit is used for acquiring positioning points of the plurality of examples, acquiring the positions of the insertion points of the plurality of examples in the project and the rotation angles of the insertion, and calculating the coordinates of the plurality of examples by utilizing a matrix to carry out coordinate transformation.
It can be seen that, in the embodiment of the present application, the coordinate output device obtains, based on a plurality of bridge pier family instances in the beam database, a plurality of instances including the target keyword from the plurality of bridge pier family instances according to the names of the plurality of bridge pier family instances, where the entity including the target keyword is included in the names of the plurality of bridge pier clusters. And acquiring positioning points of the multiple instances, positions of insertion points of the multiple instances in the project and rotation angles of the insertion, and calculating coordinates of the multiple instances by utilizing a matrix to carry out coordinate transformation. The efficiency and accuracy of pier coordinate acquisition can be effectively improved.
In one possible example, the apparatus includes: before the recall-based model is built, the call collector obtains the instances of the plurality of bridge pier families in the bridge database, and the processing unit is further configured to: setting up a development environment in the Revit basic modeling platform, and adding plug-ins according to a preset mode; wherein the plug-in is used for outputting coordinates of a plurality of examples in the bridge database.
In one possible example, the building a development environment in the Revit basic modeling platform increases plugins according to a preset manner, and the processing unit is specifically configured to: installing a development tool set, an object-oriented programming language and Revit series software; installing a Software Development Kit (SDK) provided by the Revit, and adding a Revit interface and a Revit user interface in the development tool set; wherein, at the Revit user interface, an operation menu is configured so that a user can execute a target operation through the menu.
In a possible example, the processing unit is configured to, after calculating coordinates of the plurality of instances by performing coordinate transformation using a matrix, further configured to: and running a compiler included in the development tool set, and generating the coordinates of the multiple instances into a dynamic library file supported by Revit.
In one possible example, the processing unit is further configured to: and driving a form tool by using a serial communication port provided by an object-oriented programming language to process the coordinates of the plurality of instances according to a preset form template, and outputting the processed coordinates of the plurality of instances.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a server 500 according to an embodiment of the present application, as shown in the drawing, the server 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, wherein the one or more programs 521 are stored in the memory 520 and configured to be executed by the application processor 510, and the one or more programs 521 include steps for performing:
calling a collector to obtain a plurality of bridge pier family examples in a bridge database;
Acquiring names of the plurality of pier clusters, and extracting entities including target keywords from the names of the plurality of pier clusters to obtain a plurality of examples including the target keywords;
and acquiring positioning points of the plurality of examples, acquiring the positions of the insertion points of the plurality of examples in the project and the rotation angle of the insertion, and calculating the coordinates of the plurality of examples by utilizing a matrix to carry out coordinate transformation.
In one possible example, the apparatus includes: the one or more programs 521 are further configured to, before the call collector obtains the instances of the plurality of bridge pier families in the bridge database, perform: setting up a development environment in the Revit basic modeling platform, and adding plug-ins according to a preset mode; wherein the plug-in is used for outputting coordinates of a plurality of examples in the bridge database.
In one possible example, the building a development environment in the Revit building model platform adds plug-ins according to a preset manner, and the one or more programs 521 are specifically configured to: installing a development tool set, an object-oriented programming language and Revit series software; installing a Software Development Kit (SDK) provided by the Revit, and adding a Revit interface and a Revit user interface in the development tool set; wherein, at the Revit user interface, an operation menu is configured so that a user can execute a target operation through the menu.
In one possible example, the one or more programs 521 are further configured to, after calculating coordinates of the plurality of instances by using the matrix for coordinate transformation: and running a compiler included in the development tool set, and generating the coordinates of the multiple instances into a dynamic library file supported by Revit.
In one possible example, the one or more programs 521 are further configured to: and driving a form tool by using a serial communication port provided by an object-oriented programming language to process the coordinates of the plurality of instances according to a preset form template, and outputting the processed coordinates of the plurality of instances.
The one or more programs 504 are stored in the memory 503 and configured to be executed by the processor, the programs including instructions for performing the steps of the method for outputting coordinates of the plug-in of the Revit-based model in the above embodiment of the application. Processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc., among others. The processor 501 may be implemented in at least one hardware form of DSP (DIGITAL SIGNAL Processing), FPGA (FieId-Programmable GATE ARRAY, field Programmable gate array), PLA (Programmable Logic Array ). The processor 501 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor may incorporate a GPU (Graphics Processing Unit, image processor) for rendering and rendering of content to be displayed by the display screen. In some embodiments, the processor 501 may also include an AI (ARTIFICIAL INTELLIGENCE ) processor for processing computing operations related to machine learning.
Memory 503 may include one or more computer-readable storage media, which may be non-transitory. Memory 503 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 503 is at least used to store a computer program, where the computer program, when loaded and executed by the processor 501, can implement relevant steps in the method for managing multi-element hardware disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 503 may further include an operating system, data, and the like, and the storage manner may be transient storage or permanent storage. The operating system may include Windows, unix, linux, among other things. The data may include, but is not limited to, terminal interaction data, terminal device signals, and the like.
In some embodiments, the server may further include an input-output interface, a communication interface, a power supply, and a communication bus.
It will be appreciated by those skilled in the art that the structure disclosed in this embodiment is not limiting and may include more or fewer components.
The embodiment of the application provides a chip, which comprises a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface and executes part or all of the steps of any one of the methods described in the embodiment of the method.
The embodiment of the present application also provides a computer storage medium storing a computer program for electronic data exchange, where the computer program causes a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a server.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising a server.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The above disclosure is only a few examples of the present application, and it is not intended to limit the scope of the present application, but it is understood by those skilled in the art that all or a part of the above embodiments may be implemented and equivalent changes may be made in the claims of the present application.
Claims (4)
1. A method for outputting coordinates of a plugin based on a Revit building model, which is applied to a server, wherein the server comprises the Revit building model and plugins thereof, and the plugins comprise collectors, and the method comprises:
calling a collector to obtain a plurality of bridge pier family examples in a bridge database;
Acquiring names of the plurality of pier clusters, and extracting entities including target keywords from the names of the plurality of pier clusters to obtain a plurality of examples including the target keywords;
Acquiring positioning points of the multiple instances, acquiring the positions of insertion points of the multiple instances in the project and the rotation angles of the insertion, and calculating coordinates of the multiple instances by utilizing a matrix to perform coordinate transformation;
Before the call collector obtains the instances of the plurality of bridge pier families in the bridge database, the method further comprises:
setting up a development environment in the Revit basic modeling platform, and adding plug-ins according to a preset mode;
the plug-in is used for outputting coordinates of a plurality of examples in the bridge database;
Setting up a development environment in the Revit basic modeling platform, adding plug-ins according to a preset mode, and comprising:
installing a development tool set, an object-oriented programming language and Revit series software;
Installing a software development kit provided by the Revit, and adding a Revit interface and a Revit user interface in the development kit set;
wherein, at the Revit user interface, an operation menu is configured so that a user can execute a target operation through the menu;
After the coordinates of the plurality of instances are calculated by using the matrix for coordinate transformation, the method further comprises:
And running a compiler included in the development tool set, and generating the coordinates of the multiple instances into a dynamic library file supported by Revit.
2. The method according to claim 1, wherein the method further comprises:
And driving a form tool by using a serial communication port provided by an object-oriented programming language to process the coordinates of the plurality of instances according to a preset form template, and outputting the processed coordinates of the plurality of instances.
3. A coordinate output device is characterized by comprising a communication unit and a processing unit, wherein,
The processing unit is used for calling the collector to acquire a plurality of bridge pier family examples in the bridge database;
The processing unit is further configured to obtain names of the multiple bridge pier cluster instances, and extract entities including the target keywords in the names of the multiple bridge pier clusters to obtain multiple instances including the target keywords;
The processing unit is used for acquiring positioning points of the plurality of examples, acquiring the positions of the insertion points of the plurality of examples in the project and the rotation angles of the insertion, and calculating the coordinates of the plurality of examples by utilizing a matrix for coordinate transformation;
The device comprises: before the recall-based model is built, the call collector obtains the instances of the plurality of bridge pier families in the bridge database, and the processing unit is further configured to:
setting up a development environment in the Revit basic modeling platform, and adding plug-ins according to a preset mode;
the plug-in is used for outputting coordinates of a plurality of examples in the bridge database;
setting up a development environment in the Revit basic modeling platform, adding plug-ins according to a preset mode, and the processing unit is specifically used for:
installing a development tool set, an object-oriented programming language and Revit series software;
Installing a Software Development Kit (SDK) provided by the Revit, and adding a Revit interface and a Revit user interface in the development tool set;
wherein, at the Revit user interface, an operation menu is configured so that a user can execute a target operation through the menu;
the processing unit is configured to, after calculating coordinates of the plurality of instances by performing coordinate transformation using the matrix, further be configured to:
And running a compiler included in the development tool set, and generating the coordinates of the multiple instances into a dynamic library file supported by Revit.
4. The apparatus of claim 3, wherein the processing unit is further configured to:
And driving a form tool by using a serial communication port provided by an object-oriented programming language to process the coordinates of the plurality of instances according to a preset form template, and outputting the processed coordinates of the plurality of instances.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010663662.2A CN111814237B (en) | 2020-07-10 | 2020-07-10 | Plug-in coordinate output method and device based on Revit basic building model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010663662.2A CN111814237B (en) | 2020-07-10 | 2020-07-10 | Plug-in coordinate output method and device based on Revit basic building model |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111814237A CN111814237A (en) | 2020-10-23 |
CN111814237B true CN111814237B (en) | 2024-05-14 |
Family
ID=72843022
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010663662.2A Active CN111814237B (en) | 2020-07-10 | 2020-07-10 | Plug-in coordinate output method and device based on Revit basic building model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111814237B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110083872A (en) * | 2019-03-28 | 2019-08-02 | 沈阳建筑大学 | A kind of data extraction method towards BIM model |
CN110941871A (en) * | 2019-12-16 | 2020-03-31 | 山东建筑大学 | Automatic labeling method and system based on room information in Revit three-dimensional model |
-
2020
- 2020-07-10 CN CN202010663662.2A patent/CN111814237B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110083872A (en) * | 2019-03-28 | 2019-08-02 | 沈阳建筑大学 | A kind of data extraction method towards BIM model |
CN110941871A (en) * | 2019-12-16 | 2020-03-31 | 山东建筑大学 | Automatic labeling method and system based on room information in Revit three-dimensional model |
Non-Patent Citations (4)
Title |
---|
BIM与3DGIS的集成技术及在铁路桥梁施工中的应用;张文胜 等;《中国铁道科学》;全文 * |
Revit三维模型中房间信息的自动标注方法;齐保良 等;《计算机***应用》;摘要,正文第1-4节 * |
基于BIM技术的连续梁桥0号块托架方案设计与计算;李仁强;《价值工程》;全文 * |
面向BIM模型二次开发数据提取与应用技术;钟辉 等;《沈阳建筑大学学报(自然科学版)》;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111814237A (en) | 2020-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018205730A1 (en) | Method and device for obtaining smart contract interface in blockchain | |
US9619304B2 (en) | Automatic connections between application components | |
Qin et al. | A strategy for raster-based geocomputation under different parallel computing platforms | |
CN111639287A (en) | Page processing method and device, terminal equipment and readable storage medium | |
CN111045675B (en) | Page generation method, device, equipment and storage medium based on Flutter | |
US10180825B2 (en) | System and method for using ubershader variants without preprocessing macros | |
CN113010945A (en) | BIM model linkage method and system | |
CN113918195A (en) | Application interface updating method and device, electronic equipment and readable storage medium | |
CN109388843B (en) | Visualization system and method of truss antenna based on VTK (virtual terminal K), and terminal | |
US10628909B2 (en) | Graphics processing unit resource dependency viewer | |
CN115080016A (en) | Extended function implementation method, device, equipment and medium based on UE editor | |
CN110709891A (en) | Virtual reality scene model establishing method and device, electronic equipment and storage medium | |
CN107423291A (en) | A kind of data translating method and client device | |
CN114186527A (en) | Method and device for realizing automatic wiring of integrated circuit independent of grid point | |
CN107436839B (en) | Process load acquisition method, electronic terminal and computer readable storage medium | |
US20190196794A1 (en) | Visual programming method, system and terminal device | |
CN111814237B (en) | Plug-in coordinate output method and device based on Revit basic building model | |
CN103268245A (en) | Immediate streamline meteorological data processing method | |
CN112486807A (en) | Pressure testing method and device, electronic equipment and readable storage medium | |
CN115981783A (en) | Simulation application program construction system and method based on micro-service | |
CN115525323A (en) | Distributed relay protection system generation method and device, electronic equipment and medium | |
CN111832254B (en) | Drawing annotation display processing method and device | |
CN110930499B (en) | 3D data processing method and device | |
CN113885996A (en) | User interface generation method and device | |
CN114741294A (en) | Page debugging method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210906 Address after: 215000 building 4, Dongfang Haiyue garden, No. 997, Yundong Avenue, Jiangling street, Wujiang District, Suzhou City, Jiangsu Province Applicant after: China Railway ninth Bureau Group No.1 Construction Co.,Ltd. Address before: 110000 Jing bin street, Shenhe District, Shenyang, Liaoning Province, No. 3-1 Applicant before: SIXTH ENGINEERING CO., LTD. OF CHINA RAIL WAY NO.9 Group |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |