CN115408763B - BIM platform-based component generation method - Google Patents

BIM platform-based component generation method Download PDF

Info

Publication number
CN115408763B
CN115408763B CN202211349788.8A CN202211349788A CN115408763B CN 115408763 B CN115408763 B CN 115408763B CN 202211349788 A CN202211349788 A CN 202211349788A CN 115408763 B CN115408763 B CN 115408763B
Authority
CN
China
Prior art keywords
family
information
constraint
target
contour line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211349788.8A
Other languages
Chinese (zh)
Other versions
CN115408763A (en
Inventor
马云海
杨宇
王光宇
任姗
李杨
王贤磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Yingjianke Software Co ltd
Original Assignee
Beijing Yingjianke Software 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 Beijing Yingjianke Software Co ltd filed Critical Beijing Yingjianke Software Co ltd
Priority to CN202211349788.8A priority Critical patent/CN115408763B/en
Publication of CN115408763A publication Critical patent/CN115408763A/en
Application granted granted Critical
Publication of CN115408763B publication Critical patent/CN115408763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/04Architectural design, interior design
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Civil Engineering (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The disclosure provides a BIM platform-based component generation method, and relates to the field of computers. The method comprises the following specific steps: acquiring basic data in a family file corresponding to a target component, and preprocessing the basic data to extract target information of the target component, wherein the basic data comprises geometric data, constraint information, family parameter information and family type information; generating a storage database according to the corresponding relation between the target information and the target component; and generating a three-dimensional visual component corresponding to the target component according to the content of the storage database. According to the method and the device, the target information corresponding to the target component is extracted, the storage database is generated, the visual component is generated on the target platform according to the content of the storage database, the information of the target component is extracted, the target component is displayed on the target platform, the problems that the components cannot be communicated and are difficult to cooperate among different BIM platforms are solved, and the efficiency of designing by utilizing the components of the BIM platforms is improved.

Description

BIM platform-based component generation method
Technical Field
The disclosure relates to the field of computers, in particular to a BIM platform-based component generation method.
Background
In the related art, building Information Modeling (BIM) platforms are increasingly used in the field of Building design. The building of the model in the BIM needs to be supported by various basic components, the types and the constraints of the components on the BIM platforms are various at present, the model quality is uneven when the components of other BIM platforms are utilized to carry out modeling on one BIM platform, the model does not support subsequent use modification, and the modeling efficiency on the BIM platform is reduced.
Disclosure of Invention
The present disclosure provides a component generation method for a BIM platform, so as to at least solve the problem in the related art that components between different BIM platforms cannot communicate with each other and are difficult to cooperate. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a component generation method of a BIM platform, including:
acquiring basic data in a family file corresponding to a target component, and preprocessing the basic data to extract target information of the target component, wherein the basic data comprises geometric data, constraint information, family parameter information and family type information;
generating a storage database according to the corresponding relation between the target information and the target component;
and generating a three-dimensional visual component corresponding to the target component on a target platform according to the content of the storage database.
Optionally, the geometric data includes family middle volume data, sketch plane data corresponding to the family middle volume, and volume contour line data corresponding to the sketch plane data, and the type of the family middle volume data includes: lofting, stretching, fusing, and rotating; the constraint information includes a label element and a constraint element.
Optionally, the step of preprocessing the basic data to extract the target information of the target component specifically includes:
and acquiring a body index ID in the family of the target component, and acquiring a contour line in body contour line data corresponding to the sketch plane data and a contour line ID corresponding to the contour line.
Optionally, the step of preprocessing the basic data to extract the target information of the target component further includes:
obtaining the type of the contour line, wherein the type of the contour line comprises an arc and a straight line;
responding to the contour line being an arc, and acquiring a starting point, a terminal point, a circle center and a radius of the contour line;
responding to the fact that the contour line is a straight line, and obtaining a starting point and an end point of the contour line;
and acquiring the coordinates of the starting point and the end point, and generating point IDs corresponding to the starting point and the end point.
Optionally, the step of preprocessing the basic data to extract the target information of the target component further includes:
and acquiring normal vectors and original points corresponding to all planes according to the sketch plane data, and generating a normal vector ID corresponding to the normal vectors, an original point ID corresponding to the original points and a plane ID corresponding to the planes.
Optionally, the step of preprocessing the basic data to extract the target information of the target component further includes:
generating a constraint ID corresponding to the constraint information;
acquiring parameter names corresponding to the marking elements in the constraint information;
and acquiring the constraint type corresponding to the constraint element.
Optionally, the step of preprocessing the basic data to extract the target information of the target component further includes:
acquiring a constraint object set corresponding to the constraint information according to the marking element, and acquiring the type of a constraint object in the constraint object set according to the constraint element;
in response to the fact that the type of the constraint object is a plane, acquiring a normal vector and an origin of the constraint object, and generating a normal vector ID corresponding to the normal vector, an origin ID corresponding to the origin and a plane ID corresponding to the plane;
and responding to the type of the constraint object as a contour line, acquiring the coordinates of the starting point and the end point, and generating point IDs corresponding to the starting point and the end point.
Optionally, the step of preprocessing the basic data to extract the target information of the target component further includes:
generating a family parameter ID corresponding to family parameter information, and acquiring a parameter name, a parameter storage mode, a parameter expression equation, whether a parameter is an instance parameter or not and a parameter group name in the family parameter information;
generating a family ID corresponding to each family according to the family type information, and acquiring the family type contained in each family; and generating a family type ID corresponding to the family type information, and acquiring a family type name and a family parameter in the family type information.
Optionally, the step of generating a storage table according to the corresponding relationship between the target information and the target member specifically includes:
generating a family name storage table according to the family type ID corresponding to the family ID, the family type ID, the corresponding family type name and the corresponding family parameter;
generating a point storage table according to the point ID and the coordinates of the corresponding points;
generating a contour line storage table according to the contour line ID and the corresponding point ID;
generating a plane storage table according to the plane ID, the corresponding normal vector ID and the origin ID;
generating a family midbody storage table according to the family midbody ID and the corresponding contour line ID;
and generating a constraint storage table according to the parameter name, the constraint type, the contour line ID and the plane ID which correspond to the constraint ID.
And recording the storage table by a database file.
Optionally, the step of generating a three-dimensional visualization component corresponding to the target component on a target platform according to the content of the storage database specifically includes:
and performing element combination on a target platform according to target information corresponding to each target component in the content of the storage database to generate the target component.
According to a second aspect of the embodiments of the present disclosure, there is provided a component generation apparatus of a BIM platform, including:
the extraction module is used for acquiring basic data in a family file corresponding to the target component and preprocessing the basic data to extract target information of the target component, wherein the basic data comprises geometric data, constraint information, family parameter information and family type information;
the database generation module is used for generating a storage database according to the corresponding relation between the target information and the target component;
and the visualization module is used for generating a three-dimensional visualization component corresponding to the target component on a target platform according to the storage table.
According to a third aspect of embodiments of the present disclosure, there is provided a computer program product comprising the method of any one of the above first aspects.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
by extracting the target information corresponding to the target component and generating the storage table and generating the visual component on the target platform according to the storage table, the information of the target component is extracted and the target component is displayed on the target platform, the problems that the components of different BIM platforms cannot be communicated and are difficult to cooperate are solved, and the efficiency of designing the BIM platform by utilizing the components is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flowchart illustrating a BIM platform based component generation method according to an exemplary embodiment.
FIG. 2 is a flow diagram illustrating a BIM platform based component generation method in accordance with an exemplary embodiment.
FIG. 3 is a flow diagram illustrating a BIM platform based component generation method in accordance with an exemplary embodiment.
FIG. 4 is a flowchart illustrating a BIM platform based component generation method in accordance with an exemplary embodiment.
Fig. 5 is a block diagram illustrating a BIM platform-based component generation apparatus according to an exemplary embodiment.
FIG. 6 is a block diagram illustrating an apparatus in accordance with an example embodiment.
FIG. 7 is a block diagram illustrating an apparatus in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure as detailed in the appended claims.
It should be noted that the user information (including but not limited to user device information, user personal information, etc.) referred to in the present disclosure is information authorized by the user or sufficiently authorized by each party.
The key of the BIM technology application lies in the information transmission and sharing, but the conversion efficiency of the BIM model of the same project among different BIM platforms is low and the workload is large at present. The building block is an important component of the BIM model, and the complete and efficient conversion of information of the building block is crucial to engineering collaboration across the BIM platform.
Some existing three-dimensional modeling software has rich and complete family files, but is complex to operate, very strict in family parameters and constraint conditions, not in line with the operation habits of users, and high in the difficulty of manual operation of the users. In addition, the types of components on the current market are various, and a unified family library does not exist, so that the quality of models built by users is uneven, a plurality of models cannot support subsequent use, and a large amount of manpower and material resources are wasted. In order to effectively utilize components in the existing family files, the extraction work needs to be carried out on the family files, so that the display and editing work of basic primitives (unit components in the model) can be provided for the BIM model, the BIM model can be accurately and efficiently established on different BIM platforms, the design efficiency is greatly improved, and the digital and intelligent transformation and upgrading of the building industry are facilitated.
Fig. 1 is a flowchart illustrating a BIM platform based component generation method according to an exemplary embodiment, as shown in fig. 1, the method including the following steps.
Step 101, acquiring basic data in a family file corresponding to a target component, and preprocessing the basic data to extract target information of the target component, wherein the basic data comprises geometric data, constraint information, family parameter information and family type information;
it is an object of embodiments of the present application to convert high quality BIM components into a format that can be used on a target platform and visualize the BIM components on the target platform. The information corresponding to the BIM component is stored in the family file, and the basic data in the family file corresponding to the target component is extracted firstly. The basic data is further extracted to keep the most basic information required by generating the target component, and the extracted information is the target information.
102, generating a storage database according to the corresponding relation between the target information and the target component;
in the embodiment of the application, the extracted target information corresponds to different target components, and the corresponding relation between the target information and the target components is stored through the database, so that the target platform can conveniently obtain the corresponding relation between the target components and the target information.
Step 103, generating a three-dimensional visualization component corresponding to the target component on a target platform according to the content of the storage database.
In the embodiment of the application, after the storage database is generated, the target component is converted into a format which can be recognized by the target platform, the target platform can acquire the relationship between each target component and corresponding target information according to the storage table, the engine is called according to the target information to render, the three-dimensional visible target component is generated, and a user can edit the target component to perform modeling of the BIM platform.
In a possible embodiment, the family file corresponding to the target component is a family file in a three-dimensional modeling software REVIT, the REVIT has rich and complete family files, but the operation is complex, the family parameters and the constraint conditions are very strict, the user has great difficulty in manual operation, the target information is extracted from basic data in the REVIT, and a storage table is generated by the relationship between the target information and the target component. The three-dimensional schematic diagram of the target construction can be generated on other BIM platforms according to the storage table by using the elements of the BIM platforms, the components in the REVIT are converted into the formats which can be conveniently used on different BIM platforms, the richness of the components on the BIM platforms is improved, and the modeling efficiency of the BIM platforms is improved.
Optionally, the geometric data includes family middle volume data, sketch plane data corresponding to the family middle volume, and volume contour line data corresponding to the sketch plane data, and the type of the family middle volume data includes: lofting, stretching, fusing, and rotating; the constraint information comprises a marking element and a constraint element.
In the embodiment of the present application, the type of volume data in the family is a type of a component, and includes four major categories: lofting, stretching, fusing, and rotating. In lofting, a two-dimensional object is used as a section along a path to form a complex three-dimensional object, and different shapes can be given at different segments on the same path. We can use lofting to enable the construction of many complex models. The stretching body is a three-dimensional object formed by stretching a two-dimensional body object along a certain direction, and the stretching direction can not enable the two-dimensional bodies to be in the same plane. A fusion is a three-dimensional object obtained by fusing a plurality of three-dimensional bodies together. A rotating body is a three-dimensional object that is generated by rotating a two-dimensional body object by a certain angle along a certain rotation axis.
In the BIM platform, a two-dimensional body of a sketch plane needs to be transformed to generate a three-dimensional object, wherein related data of the two-dimensional body corresponds to the body contour line data, a sketch corresponds to the sketch plane data, and the three-dimensional object corresponds to a middle body of a family.
In one possible embodiment, the OfClass interface is called to obtain the REVIT family intermediate through the filteredexementcollector class, and the types of family intermediate include lofting (Sweep), stretching (Extrusion), blending (Blend), and rotating body (rotation). Sketch plane data in the mid-body of the family (SketchPlane) were then acquired by sketch. SketchPlane in the exception class, profileskatch. SketchPlane in the sweet class, bottomsketch. SketchPlane in the Blend class, and topskatch. SketchPlane.
In one possible embodiment, the volume contour data (CurveArrArrarray) in the Sketch plane data is obtained by Profile in the Sketch class.
Through the Filter ElementCollector class, the OfCategory interface is called to obtain the notation element (Dimension) and the restriction element (Reference) in the REVIT family.
In one possible embodiment, the family manager is obtained via the document class.
Then obtaining family parameter information (FamiliParameter) through a GetParameters () interface of the FamiliyManager; and obtains family type information (FamilyType) through the Types variable of the familyManager.
Optionally, the step of preprocessing the basic data to extract the target information of the target component specifically includes:
and acquiring a body index ID in the family of the target component, and acquiring a contour line in body contour line data corresponding to the sketch plane data and a contour line ID corresponding to the contour line.
In the embodiment of the application, a plurality of contour lines can be obtained from the body contour line data, and the body ID in the family and the corresponding contour line ID are recorded.
In one possible embodiment, all the Curve objects are traversed in the curveArray by traversing the curveArray in the Profile, noting all the Curve IDs, i.e., the contour line IDs.
Fig. 2 is a flowchart illustrating a BIM platform-based component generation method according to an exemplary embodiment, and as shown in fig. 2, step 101 in fig. 1 specifically includes the following steps.
Step 201, obtaining the type of the contour line, wherein the type of the contour line comprises an arc and a straight line;
in the embodiment of the present application, the line may be composed of one or more arcs and straight lines, so the type of the contour line includes only arcs and straight lines.
Step 202a, responding to the contour line being a circular arc, and acquiring a starting point, an end point, a circle center and a radius of the contour line;
step 202b, responding to the contour line being a straight line, and acquiring a starting point and an end point of the contour line;
when the basic data is further simplified, only the most essential information needs to be acquired. To generate a circular arc type contour line, the most basic information needed is the starting point, the end point, the circle center and the radius of the contour line; to generate a straight line type contour, the most basic information required is its starting and ending points.
Step 203, obtaining the coordinates of the starting point and the end point, and generating a point ID corresponding to the starting point and the end point.
The point IDs corresponding to the start point and the end point are recorded so as to correspond to the contour line ID.
In one possible embodiment, whether the cut is an Arc (Arc) or a Line (Line) is determined through a GetType () interface in the cut. If the Arc is detected, a starting point is obtained according to an interface GetEndPoint (0), a terminal point is obtained according to GetEndPoint (1), a circle Center is obtained according to an interface Center, and a Radius is obtained according to an interface Radius; if the line is the line, the starting point is obtained according to the interface GetEndPoint (0), the end point is obtained according to the interface GetEndPoint (1), and the coordinate XYZ of the starting point and the end point in the three-dimensional rectangular coordinate system is obtained. And records < contour line ID, point ID set > information and < point ID, XYZ > information in dictionary form.
Optionally, the step of preprocessing the basic data to extract the target information of the target component further includes:
and acquiring normal vectors and original points corresponding to all planes according to the sketch plane data, and generating a normal vector ID corresponding to the normal vectors, an original point ID corresponding to the original points and a plane ID corresponding to the planes.
In one possible embodiment, the Normal vector is obtained from the sketch Plane data (SketchPlane) by Normal of the Plane class, and the Origin is obtained by Origin class; recording < face ID, normal vector ID > information in dictionary form; recording < face ID, origin ID > information in dictionary form; recording < point ID, XYZ > information in dictionary form; the < vector ID, XYZ > information is recorded in dictionary form.
Fig. 3 is a flowchart illustrating a BIM platform based component generation method according to an exemplary embodiment, and as shown in fig. 3, step 101 in fig. 1 specifically includes the following steps.
Step 301, generating a constraint ID corresponding to the constraint information;
in the embodiment of the application, the constraint element in the constraint information is used for driving the target component to change under a certain rule, and the marking element is used for defining and controlling the size of the component or the size among components, and converting the size of the component or the size of the component to a two-dimensional graph or a three-dimensional model with a required size, namely, the body hanging size parameter can be linked with the size parameter.
For example, for a square column, the constraint element includes four parallel edges, and the labeled element is the dimension between two edges in the same plane: the size is 1-10cm, and the size is 2-20cm.
Step 302, obtaining a parameter name corresponding to a label element in the constraint information;
step 303, obtaining a constraint type corresponding to the constraint element.
In one possible embodiment, the parameter name bound to the label in the constraint information is extracted through family label.
The constraint type of the constraint element (Reference) is obtained through the ElementReferenceType in the Reference class, and < constraint ID, constraint type > information is recorded in dictionary form.
Fig. 4 is a flowchart illustrating a BIM platform-based component generation method according to an exemplary embodiment, and as shown in fig. 4, step 101 in fig. 1 specifically includes the following steps.
Step 401, obtaining a constraint object set corresponding to the constraint information according to the labeling element, and obtaining a type of a constraint object in the constraint object set according to the constraint element;
in the embodiment of the application, the labeling element and the constraint element in the constraint information are corresponding according to the association relationship, and the constraint information is associated with the constraint object, wherein the type of the constraint object is a plane or a contour line.
Step 402a, in response to the type of the constraint object being a plane, acquiring a normal vector and an origin of the constraint object, and generating a normal vector ID corresponding to the normal vector, an origin ID corresponding to the origin and a plane ID corresponding to the plane;
and 402b, responding to the type of the constraint object as a contour line, acquiring the coordinates of the starting point and the end point, and generating point IDs corresponding to the starting point and the end point.
In one possible embodiment, the set of constraint objects in the annotation information is extracted by References in the annotation element (Reference), and whether the annotation is a plane or a contour is determined according to the ID of each constraint object in the constraint information (Reference). If the plane is the plane, processing by adopting the plane analysis mode, and simultaneously recording < constraint ID, plane ID > information in a dictionary form; if it is a contour line, the above analysis line method is used to process, and at the same time, the < constraint ID, line ID > information is recorded in dictionary form.
The step of preprocessing the basic data to extract object information of an object member further comprises:
generating a family parameter ID corresponding to family parameter information, and acquiring a parameter name, a parameter storage mode, a parameter expression equation, whether a parameter is an instance parameter or not and a parameter group name in the family parameter information;
in a possible embodiment, the name of the parameter is obtained through definition of family parameter class, the storage mode of the storage type obtaining parameter, the Formula obtaining parameter expression equation, whether the Isinstant obtaining parameter is an instance parameter or not, and the name of the parameter family is obtained through definition of family parameter class. The < parameter ID, parameter name >, < parameter ID, parameter storage manner >, < parameter ID, parameter expression >, < parameter ID, if instance >, < parameter ID, parameter group > information is recorded in the form of a dictionary.
Generating a family ID corresponding to each family according to the family type information, and acquiring the family type contained in each family; and generating a family type ID corresponding to the family type information, and acquiring a family type name and a family parameter in the family type information.
In one possible embodiment, the family type Name is obtained via the Name of the FamilyType class; all parameters are traversed and all parameter values in the type are obtained through an AsString (family parameter) interface.
Recording < family type ID, family type name > information in a dictionary form; recording < family type ID, family parameter > information in dictionary form; the < family ID, family type ID set > information is recorded in dictionary form.
Optionally, the step of generating a storage table according to the corresponding relationship between the target information and the target member specifically includes:
generating a family name storage table according to the family type ID corresponding to the family ID, the family type ID, the corresponding family type name and the corresponding family parameter;
generating a point storage table according to the point ID and the coordinates of the corresponding points;
generating a contour line storage table according to the contour line ID and the corresponding point ID;
generating a plane storage table according to the plane ID, the corresponding normal vector ID and the origin ID;
generating a family midbody storage table according to the family midbody ID and the corresponding contour line ID;
generating a constraint storage table according to the parameter name, the constraint type, the contour line ID and the plane ID corresponding to the constraint ID;
and recording the storage table by a database file.
In the embodiment of the application, after the target information is extracted from the basic data, a corresponding storage table is generated according to the corresponding relation of each target information, and the related data of each component is stored in a database form.
In one possible embodiment, a family name _ symbol table, i.e., a family name storage table, is built from < family ID, set of family type IDs >, < family type ID, family type name >, < family type ID, family parameter >;
building a point table (point storage table) according to the < point ID, XYZ >;
establishing a curve table (contour line storage table) according to the < line ID, point ID set >;
establishing a worksource table (a plane storage table) according to the < surface ID, the normal point ID >, < surface ID and the origin ID >;
building a body table (body memory table) according to < body ID, line set ID >;
reference tables (constraint storage tables) are created from < constraint ID, parameter name >, < constraint ID, constraint type >, < constraint ID, line ID >, < constraint ID, plane ID >. The information in the table is the target information.
Optionally, the step of generating a three-dimensional visualization component corresponding to the target component on a target platform according to the storage table specifically includes:
and performing element combination on a target platform according to the target information corresponding to each target component in the storage table to generate the target component.
In one possible embodiment, the database file format for recording the storage table is yfd format.
And executing a load _ family command in the BIM platform, loading a yfd file containing a storage table, displaying the name of the target component in a component library of a BIM platform project browser, and selecting the component to be arranged in the BIM platform, so that the shape of the target component can be displayed. And selecting the arranged target component, checking the right attribute bar, checking a part of parameters of the target component, and clicking an edit type button to display the parameter information of the target component. And generating a three-dimensional visual target component by integrally displaying the geometric shape and parameter information of the target component in the BIM platform.
Fig. 5 is a block diagram illustrating a BIM platform-based component generation apparatus according to an exemplary embodiment. Referring to fig. 5, the apparatus 500 includes an extraction module 510, a table generation module 520, and a visualization module 530.
An extracting module 510, configured to obtain basic data in a family file corresponding to a target component, and preprocess the basic data to extract target information of the target component, where the basic data includes geometric data, constraint information, family parameter information, and family type information;
a table generating module 520, configured to generate a storage table according to the corresponding relationship between the target information and the target component;
a visualization module 530, configured to generate a three-dimensional visualization component corresponding to the target component on the target platform according to the storage table.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram illustrating an apparatus 600 according to an example embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an interface to input/output (I/O) 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operation at the device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile and non-volatile storage devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 606 provides power to the various components of device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing various aspects of state assessment for the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the apparatus 600, the sensor component 614 may also detect a change in position of the apparatus 600 or a component of the apparatus 600, the presence or absence of user contact with the apparatus 600, orientation or acceleration/deceleration of the apparatus 600, and a change in temperature of the apparatus 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the apparatus 600 to perform the method described above is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 7 is a block diagram illustrating an apparatus 700 for implementing a BIM platform based component generation method according to an exemplary embodiment. The apparatus 700 may be provided as a server. Referring to fig. 7, apparatus 700 includes a processing component 722 that further includes one or more processors and memory resources, represented by memory 732, for storing instructions, such as applications, that are executable by processing component 722. The application programs stored in memory 732 may include one or more modules that each correspond to a set of instructions. Further, the processing component 722 is configured to execute instructions to perform the above-described methods.
The apparatus 700 may also include a power component 726 configured to perform power management of the apparatus 700, a wired or wireless network interface 750 configured to connect the apparatus 700 to a network, and an input output (I/O) interface 758. The apparatus 700 may operate based on an operating system stored in memory 732, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (2)

1. A BIM platform-based component generation method is characterized by comprising the following steps:
acquiring basic data in a family file corresponding to a target component, and preprocessing the basic data to extract target information of the target component, wherein the basic data comprises geometric data, constraint information, family parameter information and family type information;
generating a storage database file according to the corresponding relation between the target information and the target component, wherein the format of the database file is yfd;
generating a three-dimensional visual component corresponding to the target component on a target platform according to the content of the storage database file, wherein the target platform acquires the relation between each target component and corresponding target information according to a storage table, and calls an engine to render according to the target information to generate the three-dimensional visual target component;
the geometric data comprises family middle body data, sketch plane data corresponding to the family middle body and body contour line data corresponding to the sketch plane data, and the type of the family middle body data comprises: lofting, stretching, fusing, and rotating; the constraint information comprises a marking element and a constraint element, wherein lofting is to form a three-dimensional object by taking a two-dimensional body object as a section along a certain path, different bodies can be given to different sections on the same path, a stretching body is a three-dimensional object formed by stretching the two-dimensional body object along a certain direction, the stretching direction cannot be in the same plane with the two-dimensional body, a fusion body is a three-dimensional object obtained by fusing a plurality of three-dimensional bodies together, and a rotating body is a three-dimensional object generated by rotating the two-dimensional body object along a certain rotating shaft at a certain angle;
the step of preprocessing the basic data to extract the target information of the target component specifically includes:
acquiring a body index ID in the family of the target component, and acquiring a contour line in body contour line data corresponding to the sketch plane data and a contour line ID corresponding to the contour line;
the step of preprocessing the basic data to extract target information of a target component further comprises:
obtaining the type of the contour line, wherein the type of the contour line comprises an arc and a straight line;
responding to the contour line as a circular arc, and acquiring a starting point, an end point, a circle Center and a Radius of the contour line, wherein the starting point of the contour line is acquired according to an interface GetEndPoint (0), the end point of the contour line is acquired according to a GetEndPoint (1), the circle Center of the contour line is acquired according to an interface Center, and the Radius of the contour line is acquired according to an interface Radius;
responding to the contour line as a straight line, obtaining a starting point of the contour line according to an interface GetEndPoint (0), and obtaining an end point of the contour line by GetEndPoint (1);
acquiring coordinates of the starting point and the end point, and generating point IDs corresponding to the starting point and the end point, wherein coordinates XYZ of the starting point and the end point in a three-dimensional rectangular coordinate system are acquired, and < contour line ID, point ID set > information and < point ID, XYZ > information are recorded in a dictionary form;
the step of preprocessing the basic data to extract object information of an object member further comprises:
acquiring normal vectors and original points corresponding to all planes according to the sketch plane data, and generating normal vector IDs corresponding to the normal vectors, original point IDs corresponding to the original points and plane IDs corresponding to the planes;
the step of preprocessing the basic data to extract object information of an object member further comprises:
generating a constraint ID corresponding to the constraint information;
acquiring a parameter name corresponding to a label element in the constraint information, wherein the parameter name bound to the label in the constraint information is extracted through a family Label.Definition.name in a Dimension class, and information of < constraint ID, parameter name > is recorded in a dictionary form;
acquiring a constraint type corresponding to a constraint element, wherein the constraint type of the constraint element is acquired through an ElementReferenceType in a Reference class, and < constraint ID, constraint type > information is recorded in a dictionary form;
the step of preprocessing the basic data to extract target information of a target component further comprises:
acquiring a constraint object set corresponding to the constraint information according to the marking element, and acquiring the type of a constraint object in the constraint object set according to the constraint element;
responding to the type of the constraint object as a plane, acquiring a normal vector and an origin of the constraint object, and generating a normal vector ID corresponding to the normal vector, an origin ID corresponding to the origin and a plane ID corresponding to the plane;
responding to the type of the constraint object as a contour line, acquiring coordinates of a starting point and an end point, and generating point IDs corresponding to the starting point and the end point;
the step of preprocessing the basic data to extract target information of a target component further comprises:
generating a family parameter ID corresponding to family parameter information, and acquiring a parameter name, a parameter storage mode, a parameter expression equation, whether a parameter is an instance parameter or not and a parameter group name in the family parameter information;
generating a family ID corresponding to each family according to the family type information, and acquiring the family type contained in each family; generating a family type ID corresponding to the family type information, and acquiring a family type name and a family parameter in the family type information;
the step of generating a storage table according to the correspondence between the target information and the target member specifically includes:
generating a family name storage table according to the family type ID corresponding to the family ID, the family type ID, the corresponding family type name and the corresponding family parameter;
generating a point storage table according to the point ID and the coordinates of the corresponding points;
generating a contour line storage table according to the contour line ID and the corresponding point ID;
generating a plane storage table according to the plane ID, the corresponding normal vector ID and the origin ID;
generating a family midbody storage table according to the family midbody ID and the corresponding contour line ID;
generating a constraint storage table according to the parameter name, the constraint type, the contour line ID and the plane ID corresponding to the constraint ID;
and recording the storage table in a database file form.
2. The method according to claim 1, wherein the step of generating a three-dimensional visualization component corresponding to the target component on a target platform according to the contents of the stored database file specifically comprises:
and performing element combination on a target platform according to target information corresponding to each target component in the content of the storage database to generate the target component.
CN202211349788.8A 2022-10-31 2022-10-31 BIM platform-based component generation method Active CN115408763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211349788.8A CN115408763B (en) 2022-10-31 2022-10-31 BIM platform-based component generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211349788.8A CN115408763B (en) 2022-10-31 2022-10-31 BIM platform-based component generation method

Publications (2)

Publication Number Publication Date
CN115408763A CN115408763A (en) 2022-11-29
CN115408763B true CN115408763B (en) 2023-04-07

Family

ID=84166982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211349788.8A Active CN115408763B (en) 2022-10-31 2022-10-31 BIM platform-based component generation method

Country Status (1)

Country Link
CN (1) CN115408763B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115935492B (en) * 2023-03-14 2023-07-21 北京盈建科软件股份有限公司 Shear wall edge member processing method and device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11468097B2 (en) * 2018-11-26 2022-10-11 IntellixAI, Inc. Virtual research platform
CN110765520A (en) * 2019-10-10 2020-02-07 贵州百胜工程建设咨询有限公司 Parameterized BIM modeling method
CN113902877B (en) * 2021-09-30 2024-05-17 中北大学 Method for mutual conductance based on revit-family primitive model
CN114443592A (en) * 2021-12-29 2022-05-06 万翼科技有限公司 Data storage method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115408763A (en) 2022-11-29

Similar Documents

Publication Publication Date Title
US20210383154A1 (en) Image processing method and apparatus, electronic device and storage medium
WO2020063319A1 (en) Dynamic emoticon-generating method, computer-readable storage medium and computer device
CN111612873B (en) GIF picture generation method and device and electronic equipment
CN104133956B (en) Handle the method and device of picture
US20230274655A1 (en) Displaying augmented reality content with tutorial content
CN113079316B (en) Image processing method, image processing device and electronic equipment
CN112672061B (en) Video shooting method and device, electronic equipment and medium
CN113596555B (en) Video playing method and device and electronic equipment
CN106775202A (en) A kind of method and device of information transfer
CN115408763B (en) BIM platform-based component generation method
CN104636164A (en) Generating method and device for starting page
WO2020019683A1 (en) Input method and apparatus, and electronic device
CN113238752A (en) Code generation method and device, electronic equipment and storage medium
CN110929616B (en) Human hand identification method and device, electronic equipment and storage medium
CN111046210A (en) Information recommendation method and device and electronic equipment
CN115729534A (en) Method for creating and displaying low-code page, device, equipment and medium
WO2022134390A1 (en) Labeling method and apparatus, electronic device, and storage medium
CN113902869A (en) Three-dimensional head grid generation method and device, electronic equipment and storage medium
WO2023178863A1 (en) Three-dimensional data display method and apparatus, electronic device and storage medium
CN114786062A (en) Information recommendation method and device and electronic equipment
CN114584704A (en) Shooting method and device and electronic equipment
CN114266305A (en) Object identification method and device, electronic equipment and storage medium
CN113268961A (en) Travel note generation method and device
CN112764632B (en) Image sharing method and device and electronic equipment
CN113360073A (en) Information input method and information input device

Legal Events

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