CN113468626A - Drawing generation method and device, electronic equipment and storage medium - Google Patents

Drawing generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113468626A
CN113468626A CN202111017774.1A CN202111017774A CN113468626A CN 113468626 A CN113468626 A CN 113468626A CN 202111017774 A CN202111017774 A CN 202111017774A CN 113468626 A CN113468626 A CN 113468626A
Authority
CN
China
Prior art keywords
data
area
target area
region
model data
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.)
Granted
Application number
CN202111017774.1A
Other languages
Chinese (zh)
Other versions
CN113468626B (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.)
Shenzhen Xumi Yuntu Space Technology Co Ltd
Original Assignee
Shenzhen Xumi Yuntu Space Technology 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 Shenzhen Xumi Yuntu Space Technology Co Ltd filed Critical Shenzhen Xumi Yuntu Space Technology Co Ltd
Priority to CN202111017774.1A priority Critical patent/CN113468626B/en
Publication of CN113468626A publication Critical patent/CN113468626A/en
Application granted granted Critical
Publication of CN113468626B publication Critical patent/CN113468626B/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/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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

Landscapes

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

Abstract

The disclosure relates to the technical field of architectural design, and provides a drawing generation method, a drawing generation device, electronic equipment and a storage medium. The method comprises the following steps: receiving a drawing generation instruction, wherein the drawing generation instruction is used for indicating the drawing of a target area and comprises a target area identification of the target area; determining whether the adjusted model data has the region identifier which is the same as the target region identifier, wherein the adjusted model data comprises a resource data set and a member data set, the resource data set comprises the region identifier and outline data of a region corresponding to the region identifier, and the member data set comprises type data of a member; and under the condition that the adjusted model data is determined to have the same area identification as the target area identification, calling the corresponding application program interface by using the first plug-in unit based on the type data of the component, and generating the drawing of the target area based on the outline data of the area. The drawing standardization and generalization can be realized, and therefore the drawing efficiency is improved.

Description

Drawing generation method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of architectural design technologies, and in particular, to a drawing generation method and apparatus, an electronic device, and a computer-readable storage medium.
Background
Building Information Modeling (BIM) is a novel computer application technology in the engineering construction industry, and by designing and using various relevant Information data of an architectural engineering project as a model basis, sharing and transmitting are performed in the whole life cycle process of stages of planning, designing, constructing, operating and managing the architectural project, so that engineering technicians can correctly understand and efficiently deal with various architectural Information, a foundation for cooperative work is provided for design teams, construction units and all construction main bodies including the construction operation units, and important functions in the aspects of improving production efficiency, saving cost and shortening construction period are achieved.
In the prior art, in order to meet personalized requirements of different users, a building plan drawing is usually subjected to customized design. However, in practical application, because the areas where users are located are different and the drawing habits of engineering technicians are different, the standards of the building plane drawings are not uniform; further, the modification of the building plan drawing needs to be performed manually by engineering technicians, resulting in low drawing efficiency, high labor and time costs and high error susceptibility. In addition, since the service personnel do not have the drawing making capability, the construction plane drawing cannot be directly modified in the sales process, but engineering technicians are required to modify the construction plane drawing for many times, so that the drawing making process and the engineering cooperation period are long.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a drawing generation method, an apparatus, an electronic device, and a computer-readable storage medium, so as to solve the problems in the prior art that standards of building plan drawings are not uniform, drawing efficiency is low, a lot of labor and time costs are consumed, errors are prone to occurring, and a drawing production process and an engineering cooperation period are long.
In a first aspect of the embodiments of the present disclosure, a drawing generation method is provided, including: receiving a drawing generation instruction, wherein the drawing generation instruction is used for indicating the drawing of a target area and comprises a target area identification of the target area; determining whether an area identifier which is the same as the target area identifier exists in the adjusted model data or not, wherein the adjusted model data comprises a resource data set and a member data set, the resource data set comprises the area identifier and outline data of an area corresponding to the area identifier, and the member data set comprises type data of a member; and under the condition that the adjusted model data is determined to have the same area identification as the target area identification, calling the corresponding application program interface by using the first plug-in unit based on the type data of the component, and generating the drawing of the target area based on the outline data of the area.
In a second aspect of the embodiments of the present disclosure, a drawing generation apparatus is provided, including: the receiving module is configured to receive a drawing generation instruction, wherein the drawing generation instruction is used for indicating that a drawing of a target area is generated and comprises a target area identification of the target area; the determining module is configured to determine whether an area identifier which is the same as the target area identifier exists in the adjusted model data, wherein the adjusted model data comprises a resource data set and a member data set, the resource data set comprises the area identifier and outline data of an area corresponding to the area identifier, and the member data set comprises type data of a member; and the generating module is configured to call a corresponding application program interface by using the first plug-in unit based on the type data of the component and generate a drawing of the target area based on the outline data of the area when the adjusted model data is determined to have the area identification identical to the target area identification.
In a third aspect of the embodiments of the present disclosure, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
In a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, which stores a computer program, which when executed by a processor, implements the steps of the above-mentioned method.
Compared with the prior art, the embodiment of the disclosure has the following beneficial effects: receiving a drawing generation instruction, wherein the drawing generation instruction is used for indicating the drawing for generating the target area and comprises a target area identification of the target area; determining whether an area identifier which is the same as the target area identifier exists in the adjusted model data or not, wherein the adjusted model data comprises a resource data set and a member data set, the resource data set comprises the area identifier and outline data of an area corresponding to the area identifier, and the member data set comprises type data of a member; under the condition that the region identification identical to the target region identification exists in the adjusted model data, based on the type data of the component, the corresponding application program interface is called by using the first plug-in, and the drawing of the target region is generated based on the contour data of the region, so that the standardization and the generalization of the drawing can be realized, the drawing efficiency is improved, a large amount of manpower and time cost are saved, the error rate is reduced, and the drawing manufacturing process and the engineering cooperation period are shortened.
Drawings
To more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without inventive efforts.
Fig. 1 is a schematic flow chart diagram of a drawing generation method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart diagram of another drawing generation method provided in the embodiment of the present disclosure;
fig. 3(a) is a plan view of a mall generated based on a Revit model provided by an embodiment of the present disclosure;
fig. 3(b) is a plan view of a target region generated based on a Revit model provided by an embodiment of the present disclosure;
FIG. 3(c) is a schematic diagram of a contract graph generated based on a Revit model provided by an embodiment of the present disclosure;
fig. 3(d) is a schematic diagram of a watermarking contract figure generated based on a Revit model provided by an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a drawing generation apparatus provided in the embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the disclosed embodiments. However, it will be apparent to one skilled in the art that the present disclosure may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present disclosure with unnecessary detail.
Further, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale.
Unless the context clearly requires otherwise, throughout the description and the claims, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
In the description of the present disclosure, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present disclosure, "a plurality" means two or more unless otherwise specified.
In the field of building construction, a building plane drawing is a drawing formed by a horizontal projection method and corresponding legends according to the building conditions of a newly-built building or the functional layout of the wall, the door and window, the stair, the ground, the interior and the like of the building. The building plan drawing is used as an important component in building design and construction drawing, reflects the situations of plane shape, size, internal layout, specific positions and occupied areas of the ground, doors and windows and the like of a building, is an important basis for construction and construction site arrangement of a newly built building, and is also a basis for designing and planning professional engineering plan views of water supply and drainage, strong and weak electricity, heating and ventilation equipment and the like and drawing a comprehensive pipeline drawing. The construction plan can be divided into a construction plan, a structural construction plan and an equipment construction plan. Floor plans for building construction typically include a floor plan, a standard floor plan, a roof plan, and a roof plan.
During the construction of a building, each process may involve the modification of a drawing, which usually needs an engineering technician to manually perform on professional drawing software (e.g., AutoCAD, SketchUp, 3D Studio Max), and thus, a lot of labor and time costs are consumed; furthermore, because the drawing is drawn manually, the drawing speed of the drawing is slow, and the quality of the drawing is difficult to ensure. In addition, in the subsequent sales process, when the user puts forward personalized requirements, since business personnel do not have drawing making capability, drawing can not be directly modified according to the requirements of different users, but engineering technical personnel are required to be helped to modify the construction plane drawing for many times, so that the drawing making process and the engineering cooperation period are long, and the later maintenance cost is high; furthermore, because the modification of the drawing is completed on line based on the paper drawing, the problems of loss, confusion, damage and the like of the modified drawing are easy to occur.
Therefore, the current drawing modification method mainly depends on manual operation of engineering technicians, and although some products capable of directly deriving the CAD drawing through a graphic engine exist in the market, the products cannot meet the requirements of business personnel. Therefore, a scheme that CAD drawings can be edited and generated on line based on a graphic engine to improve drawing efficiency, reduce professional drawing thresholds of business personnel, and improve sales levels of the business personnel is needed.
Fig. 1 is a schematic flowchart of a drawing generation method according to an embodiment of the present disclosure. The drawing generation method of fig. 1 may be executed by a server or a terminal device. As shown in fig. 1, the drawing generation method includes:
s101, receiving a drawing generation instruction, wherein the drawing generation instruction is used for indicating the generation of a drawing of a target area and comprises a target area identifier of the target area;
s102, determining whether the adjusted model data has the same area identification as the target area identification, wherein the adjusted model data comprises a resource data set and a member data set, the resource data set comprises the area identification and outline data of an area corresponding to the area identification, and the member data set comprises type data of a member;
and S103, when the adjusted model data is determined to have the same area identification as the target area identification, calling the corresponding application program interface by using the first plug-in unit based on the type data of the component, and generating the drawing of the target area based on the outline data of the area.
Specifically, taking a server as an example, after receiving a drawing generation instruction for instructing generation of a drawing of a target area, the server determines whether an area identifier identical to the target area identifier exists in adjusted model data based on the target area identifier of the target area carried in the drawing generation instruction, where the adjusted model data includes a resource data set and a component data set, the resource data set includes outline data of an area corresponding to the area identifier and the area identifier, and the component data set includes type data of a component; further, in a case where it is determined that the region identification identical to the target region identification exists in the adjusted model data, the server calls a corresponding application program interface based on the type data of the component and using the first plug-in to generate a drawing of the target region based on the contour data of the region.
Here, the server may be a server that provides various services, for example, a backend server that receives a request transmitted by a terminal device with which a communication connection is established, and the backend server may perform processing such as receiving and analyzing the request transmitted by the terminal device and generate a processing result. The server may be one server, or a server cluster composed of a plurality of servers, or may also be one cloud computing service center, which is not limited in this disclosure. Further, the server may be hardware or software. When the server is hardware, it may be various electronic devices that provide various services to the terminal device. When the server is software, it may be implemented as multiple software or software modules for providing various services for the terminal device, or may be implemented as a single software or software module for providing various services for the terminal device, which is not limited in this disclosure. It should be noted that the specific type, number, and combination of the servers may be adjusted according to the actual requirements of the application scenario, and the embodiment of the present disclosure does not limit this.
The terminal device may be hardware or software. When the terminal device is hardware, it may be various electronic devices having a display screen and supporting communication with the server, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like; when the terminal device is software, it may be installed in the electronic device as described above. The terminal device may be implemented as a plurality of software or software modules, or may be implemented as a single software or software module, which is not limited in the embodiments of the present disclosure.
The drawing is a technical document which uses figures and characters with marked sizes to explain the structure, shape, size and other requirements of engineering buildings, machines, equipment and the like, namely, the drawing is a pictorial representation marked with details required by construction such as size, direction, technical parameters and the like and engineering real objects which an owner wishes to construct. The drawing may be a drawing of a job included in the contract, or may be a drawing of addition and modification issued by the owner (or a representative thereof) according to the contract. The drawing may be a construction drawing, including but not limited to a construction section, a construction plan, a general construction plan, a construction project, and the like. Preferably, in the embodiment of the present disclosure, the drawing is a building plan view, which is used to represent the plan form, size, room arrangement, building population, hall and stair arrangement of the building, and indicates the positions, thicknesses, and materials used of the walls and columns, and the types and positions of the doors and windows.
The target area may be one or more areas directly selected by the user in the building plan, or may be an area obtained by the user through frame selection in the building plan by using a mouse or the like as needed (the area may be a part or all of an area in the building plan, or may be multiple areas in the building plan), which is not limited in this embodiment of the disclosure. Specific types of target areas may include, but are not limited to, shops, escalator areas, and public areas (e.g., toilets, stairwells, fire aisles, etc.). Further, specific types of shops may include, but are not limited to, catering type shops, entertainment type shops, apparel type shops, shopping type shops, service type shops, child type shops, and blank shops. It is to be understood that a Type (Type) may be configured for the target area described above. For example, the type of store may be "CBD _ SHOP", the type of escalator area may be "CBD _ FLOOR", the type of PUBLIC area may be "CBD _ PUBLIC", the type of empty store may be "CBD _ SHOP _ FREE", and so on.
The target area identifier refers to a unique Identifier (ID) configured for the target area so as to find the target area quickly and accurately. The target area identification may be the geographic location of the target area (e.g., a seat-1F-008, C2F03, etc.) or the name of the target area (e.g., nike exclusive shop, seafloor fishing, etc.), which is not limited by the embodiments of the present disclosure. Preferably, in the embodiment of the present disclosure, the target area is identified as the geographical location where the target area is located. For example, the unique identifier of a catering shop can be 'seat B-6F-018', the unique identifier of an entertainment shop can be 'seat B-8F-005', the unique identifier of a clothing shop can be 'seat B-3F-010', the unique identifier of a children shop can be 'seat B-5F-022', and the unique identifier of an empty shop can be 'seat B-2F-007'.
The model is a formal expression mode obtained by abstracting a certain actual problem or objective object and rule, and generally comprises three parts, namely an object, a variable and a relation. The models may include, but are not limited to, mathematical models, program models, logical models, structural models, method models, analytical models, management models, data models, system models, and the like. In the embodiment of the present disclosure, the model may be a Building Information Model (BIM), which is an engineering data model based on three-dimensional digital technology and integrating various related information of the construction engineering project, and the real information of the building is simulated through digital information simulation. The model data refers to model data created by various building information modeling techniques.
The model data may include Revit model data, which is file data used by Revit software, or CAD model data, which is file data used by AutoCAD software. Here, Revit is a piece of three-dimensional BIM design software (main file format is rvt, rfa, or rte, etc.) that can be used to convert building standards into data storage. It should be noted that the model data is not limited to Revit model data or CAD model data as described above, but may include file data of other engineering drawing-type software (e.g., CATIA, Pro/engine, SolidWorks, etc.).
The adjusted model data refers to model data that is adjusted or improved from pre-configured model data so that a lightweight engine, which will be described later, can recognize and load. Further, the adjusted model data may include a resource data set and a component data set. Here, the resource data set refers to a set of data of an editable area (e.g., an available area of a shop) in the building plan, and includes, but is not limited to, an area identifier, an area name, an area, an area type, and outline data of an area corresponding to the area identifier; further, the contour data may include, but is not limited to, point data, edge data, and region data. A component data set refers to a set of data for a non-editable area (e.g., a wall, a structural column, a floor, a door, a window, a stair, etc.) in a building plan, including, but not limited to, component identification, property data, and geometric data for a component. Here, the member means each element constituting an area (building), and for example, the building may be a window structure of a shop, and the member may be a window frame, a glass, or the like of the window. The component identifier is used to distinguish different components. The attribute data may include the size, area, material, etc. of the component. The geometry data may include, but is not limited to, coordinates of the part and part types, which may include, but are not limited to, points (points), lines (LineString), faces (Polygon), multi-points (multipoints), multi-lines (MultiLineString), multi-faces (MultiPolygon), and geometry collections (geometriceycallection).
Plug-in (Plug-in) is a program written in an application program interface conforming to a certain specification, and can only run under a system platform specified by the program (possibly supporting multiple platforms simultaneously), and can not run independently from a specified platform. The first plug-in can be a CAD plug-in, which is a plug-in for secondary development based on AutoCAD and is used for reversely converting a CAD graph edited in a webpage into a graph in an AutoCAD format. Here, the secondary development means that customized modification is performed on existing software to extend functions, that is, to achieve desired functions; secondary development does not typically change the kernel of the original system.
An Application Programming Interface (API), also called API, is a convention for linking different components of a software system. The API is actually a function set, and from the perspective of a user, the API appears as a series of API functions which can be used by the user to develop network application programs; from the network perspective, the API provides a set of methods for the user, the user can use the set of methods to send service requests, information and data to the application layer, and the layers in the network respond in sequence to finally complete the network data transmission. In the disclosed embodiment, the CAD plug-in traverses the resource data set and invokes the corresponding API to draw the outline of the target region based on the type data of the component. For example, when the type data of the component is "Point", the CAD plug-in calls an API for drawing a Point; when the type data of the component is "Polygon", the CAD plug-in calls the API of the drawing surface.
According to the technical scheme provided by the embodiment of the disclosure, a drawing generation instruction is received, wherein the drawing generation instruction is used for indicating the generation of the drawing of a target area and comprises a target area identifier of the target area; determining whether an area identifier which is the same as the target area identifier exists in the adjusted model data or not, wherein the adjusted model data comprises a resource data set and a member data set, the resource data set comprises the area identifier and outline data of an area corresponding to the area identifier, and the member data set comprises type data of a member; under the condition that the region identification identical to the target region identification exists in the adjusted model data, based on the type data of the component, the corresponding application program interface is called by using the first plug-in, and the drawing of the target region is generated based on the contour data of the region, so that the standardization and the generalization of the drawing can be realized, the drawing efficiency is improved, a large amount of manpower and time cost are saved, the error rate is reduced, and the drawing manufacturing process and the engineering cooperation period are shortened.
In some embodiments, the drawing generation method further includes: receiving a drawing downloading instruction, wherein the drawing downloading instruction is used for indicating the drawing of a downloading target area; and deriving a drawing at least comprising the target area as a contract drawing based on the drawing downloading instruction, wherein the format of the contract drawing comprises any one of DWG format, PDF format, PNG format and JPG format.
Specifically, after receiving a drawing download instruction for instructing downloading of a drawing of a target area, the server derives the drawing at least including the target area based on the drawing download instruction, and takes the derived drawing as a contract drawing.
The contract drawing is also called as 'one user one picture', which is a plan view for explaining the basic layout of the house or the shop within the property range in the commercial room or shop buying and selling contract, and is a drawing basis for the condition of handing over the house within the agreed property range of the buyer and seller as an accessory of the selling contract, and is a file with legal effect committed to the client. The contract drawing may only include the drawing of the target area, may also include the target area and the building plan, or may also include the target area, the building plan and remarks or explanations, which are not limited by the embodiment of the disclosure. Further, the format of the contract figures may include any one of a DWG format, a PDF format, a PNG format, and a JPG format.
It should be noted that, if the contract figure to be exported is in a DWG format, the drawing can be directly saved in the DWG format; if the contract drawings needing to be exported are in other formats, the drawings need to be saved into the DWG format, and then virtual printing is called to save the files into other formats or directly print the drawings.
According to the technical scheme provided by the embodiment of the disclosure, drawings in different formats in any area can be generated by one key, so that personalized requirements of different users are met, and user experience is improved.
In some embodiments, the drawing generation instruction further includes project information and custom information, and the drawing generation method further includes: displaying a drawing of a target area in a first area of a contract drawing; displaying a building plan corresponding to the adjusted model data in a second area of the contract drawing; acquiring project information, and displaying the project information in a third area of the contract drawing; and acquiring the custom information, and displaying the custom information in a fourth area of the contract drawing.
Specifically, the drawing generation instruction may further include project information and custom information. Here, the project information refers to various information related to project implementation, such as reports, data, plans, schedules, technical documents, meetings, and the like; the custom information refers to special information corresponding to different items, namely, personalized information which needs to be additionally entered. In the embodiment of the present disclosure, the project information may be name information of a building to which the target area belongs, for example, beijing changchun. The custom information may be notes or descriptions about the project or contract figures, for example, description: the figure is only an illustration, and the house specific information is subject to the lease contract and the actual delivery status.
The contract figures may include one, two, or more regions. When the contract drawing includes a region, a drawing of the target region (i.e., a plan view of the target region) may be displayed in the region; when the contract drawing includes two areas (i.e., a first area and a second area), a drawing of a target area may be displayed in the first area, and a building plan (i.e., a plan of all shops on the floor where the target area is located) may be displayed in the second area; when the contract figure includes four regions (i.e., a first region, a second region, a third region, and a fourth region), a plan view of the target region may be displayed in the first region, a plan view of all shops on the floor where the target region is located may be displayed in the second region, project information may be displayed in the third region, and custom information may be displayed in the fourth region.
Further, in order to avoid the contract drawings from being stolen and tampered, watermarks can be added to the contract drawings and relevant watermark attributes can be set; the contract figure may also be encrypted, which is not limited by the embodiments of the present disclosure. Here, the watermark may include at least one of a text watermark and a picture watermark, and the watermark attribute may include at least one of a font, a text size, a watermark size, and an angle. The encryption algorithm may include, but is not limited to, MD5, DES, 3DES, IDEA, RSA, DSA, AES, RC2, RC4, and the like.
According to the technical scheme provided by the embodiment of the disclosure, the contract drawings can be prevented from being embezzled and tampered by adding the watermark to the contract drawings or encrypting the contract drawings, so that the safety, confidentiality and tamper resistance of the contract drawings are improved.
In some embodiments, the drawing generation method further includes: obtaining pre-configured model data, and converting the pre-configured model data into data which can be identified by a lightweight engine by using a second plug-in unit based on different data types; storing data which can be identified by a lightweight engine into GeoJSON format data, wherein the GeoJSON format data comprises attribute data and geometric data, and the attribute data comprises a plurality of region identifications of a plurality of regions; separating attribute data and geometric data of the GeoJSON format data by using a lightweight engine to obtain adjusted model data, wherein a resource data set in the adjusted model data comprises a plurality of region identifications of a plurality of regions; and displaying the building plan corresponding to the adjusted model data by using a webpage so as to carry out online editing operation on the building plan.
Specifically, after acquiring preconfigured model data, the server converts the preconfigured model data into data recognizable by a lightweight engine by using a second plug-in based on different data types, and stores the data as GeoJSON format data including attribute data and geometric data, wherein the attribute data includes a plurality of region identifiers of a plurality of regions; further, the server separates attribute data and geometric data of the GeoJSON format data by using a lightweight engine to obtain adjusted model data, wherein a resource data set in the adjusted model data comprises a plurality of region identifications of a plurality of regions; and displaying the building plan corresponding to the adjusted model data by using a webpage so as to carry out online editing operation on the building plan.
Here, the preconfigured model may be a BIM (native) model, i.e. a forward design model of BIM, e.g. a Revit model. The second plug-in may be a Revit plug-in or a CAD plug-in. For different data types, a different second plug-in may be utilized to effect the conversion from the preconfigured model data to the data recognizable by the lightweight engine. For example, when the preconfigured model data is Revit model data, the Revit model data can be converted into data recognizable by the lightweight engine based on the family type in Revit by using a Revit plug-in; when the pre-configured model data is CAD model data, the CAD model data can be converted into data recognizable by the lightweight engine using a CAD plug-in. It should be noted that the Revit plug-in and the CAD plug-in are both secondary development plug-ins.
And the lightweight engine is used for carrying out lightweight conversion on the BIM model, and loading and using the lightweight model. The light weight conversion is to convert the BIM into primitive data and model structured data through a light weight engine, wherein the primitive data is stored in the form of an original file; the model structured data is saved in a corresponding relational database in the form of data records so as to facilitate the retrieval and utilization of the data at a later time. The lightweight model is loaded and used by displaying the lightweight BIM in a webpage by using a WebGL technology, and comprises a BIM control function, a model member attribute customization function, a labeling and displaying function based on the BIM model and the like.
WebGL (Web Graphics library) is a three-dimensional (3 Dimensions, 3D) drawing protocol, the drawing technical standard allows JavaScript and OpenGL ES 2.0 to be combined together, and by adding one JavaScript binding of OpenGL ES 2.0, WebGL can provide hardware 3D accelerated rendering for HTML5Canvas, so that a Web developer can not only more smoothly show 3D scenes and models in a browser by means of a system display card, but also can create complex navigation and data visualization. Therefore, the WebGL technical standard avoids the trouble of developing a webpage-dedicated rendering plug-in, can be used for creating a website page with a complex 3D structure, and can even be used for designing a 3D webpage game and the like.
GeoJSON is a format for coding various geographic data structures, and is a geospatial information data exchange format based on Javascript object representation. The GeoJSON object may represent a geometry, a feature, or a set of features. GeoJSON supports the component types described above: point, line, face, multipoint, multiline, multifaceted and geometric collections. In an embodiment of the present disclosure, the GeoJSON format data may include attribute data and geometry data. Further, the lightweight engine is used for separating attribute data and geometric data of the GeoJSON format data to obtain adjusted model data.
A Web Page, also called a Web Page (Web Page), is a basic element constituting a website, and is a platform for carrying various website applications. The web page is to be read by a web browser. In the embodiment of the disclosure, the adjusted model data is loaded by using a web browser to display the building plan corresponding to the adjusted model data by using a page, so as to facilitate online editing operation on the building plan. Here, the editing operation may include one or more of an edit node operation, a tile splitting operation, a tile deleting operation, a pan rotating operation, a chamfering operation, a straight line arc turning operation.
According to the technical scheme provided by the embodiment of the disclosure, through improvement on Revit or AutoCAD, the preset model data can be converted into the adjusted model data by using the lightweight engine, so that the building plan corresponding to the adjusted model data can be loaded and displayed on the webpage, and lightweight display is realized.
In some embodiments, determining whether the region identifier identical to the target region identifier exists in the adjusted model data comprises: the target area identifier is compared with each of the plurality of area identifiers to determine whether the area identifier identical to the target area identifier exists in the plurality of area identifiers.
Specifically, the server traverses the plurality of area identifiers one by one to determine whether an area identifier identical to the target area identifier exists in the plurality of area identifiers; further, in the case that it is determined that there is an area identification identical to the target area identification among the plurality of area identifications, the server performs color filling and/or slashing processing on the target area in the building plan.
According to the technical scheme provided by the embodiment of the disclosure, the position of the target area in the building plan can be highlighted by carrying out color filling and/or oblique line processing on the target area in the building plan, so that the visual requirement of a user is met, and the user experience is improved.
In some embodiments, generating a drawing of the target area based on the contour data of the area includes: generating a contour line of the region based on the coordinates and the identification of the point in the contour data of the region and the start position and the end position of the edge, and generating a drawing of the target region based on the contour line of the region.
In particular, the contour data may include, but is not limited to, coordinates and identification of points, identification of edges, type, thickness, alignment, start and end positions, identification of regions and points, and the like. The server may generate a contour line by an algorithm of extracting the contour based on the coordinates of the points and/or the start position and the end position of the edge, and generate a drawing of the target area based on the contour line. Here, the algorithm for extracting the contour may include, but is not limited to, a contour extraction algorithm, a boundary tracking algorithm, a region growing algorithm, and a region splitting and merging algorithm.
In some embodiments, in the case where it is determined that the region identification identical to the target region identification does not exist in the adjusted model data, the server issues an error warning or generates a blank drawing.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
Fig. 2 is a schematic flow chart diagram of another drawing generation method provided in the embodiment of the present disclosure. The drawing generation method of fig. 2 may be executed by a server or a terminal device. As shown in fig. 2, the drawing generation method includes:
s201, obtaining preset Revit model data or CAD model data, and converting the Revit model data or the CAD model data into data which can be identified by a lightweight engine by using a Revit plug-in or an AutoCAD plug-in;
s202, storing data which can be identified by the lightweight engine into GeoJSON format data, wherein the GeoJSON format data comprises attribute data and geometric data, and the attribute data comprises a plurality of region identifications of a plurality of regions;
s203, separating attribute data and geometric data of the GeoJSON format data by using a lightweight engine to obtain adjusted model data, wherein a resource data set included in the adjusted model data comprises a plurality of region identifications of a plurality of regions;
s204, displaying the building plan corresponding to the adjusted model data by using a webpage so as to carry out online editing operation on the building plan;
s205, receiving a drawing generation instruction, and traversing a plurality of area identifications included in the resource data set one by one based on a target area identification of a target area carried in the drawing generation instruction;
s206, determining whether the area identifier which is the same as the target area identifier exists in the plurality of area identifiers or not based on the traversal result, and if so, executing S207; otherwise, executing S210;
s207, calling a corresponding application program interface by using an AutoCAD plug-in based on the type data of the components in the component data set included in the adjusted model data;
s208, generating a contour line of the region based on the coordinates and the identification of the midpoint in the contour data of the region corresponding to the region identification included in the resource data set and the starting position and the ending position of the edge, and generating a drawing of the target region based on the contour line of the region;
s209, receiving a drawing downloading instruction, and deriving a drawing at least comprising a target area as a contract drawing based on the drawing downloading instruction;
and S210, giving out an error warning or generating a blank drawing.
According to the technical scheme provided by the embodiment of the disclosure, Revit model data or CAD model data which is configured in advance is obtained, and the Revit model data or the CAD model data is converted into data which can be identified by a lightweight engine by utilizing a Revit plug-in or an AutoCAD plug-in; storing data which can be identified by a lightweight engine into GeoJSON format data, wherein the GeoJSON format data comprises attribute data and geometric data, and the attribute data comprises a plurality of region identifications of a plurality of regions; separating attribute data and geometric data of the GeoJSON format data by using a lightweight engine to obtain adjusted model data, wherein the adjusted model data comprises a resource data set, and the resource data set comprises a plurality of region identifications of a plurality of regions; displaying the building plan corresponding to the adjusted model data by using a webpage so as to carry out online editing operation on the building plan; receiving a drawing generation instruction, and traversing a plurality of area identifications included in the resource data set one by one based on a target area identification of a target area carried in the drawing generation instruction; based on the traversal result, under the condition that the region identification identical to the target region identification exists in the plurality of region identifications, calling a corresponding application program interface by using an AutoCAD plug-in based on the type data of the components in the component data set included in the adjusted model data; generating a contour line of the region based on the coordinates and the identification of the midpoint in the contour data of the region corresponding to the region identification included in the resource data set and the start position and the end position of the edge, and generating a drawing of the target region based on the contour line of the region; receiving a drawing downloading instruction, and deriving a drawing at least comprising a target area as a contract drawing based on the drawing downloading instruction; under the condition that the area identification identical to the target area identification does not exist in the plurality of area identifications, an error warning is sent or a blank drawing is generated, and the standardization and the generalization of the drawing can be realized, so that the drawing efficiency is improved, a large amount of manpower and time cost are saved, the error rate is reduced, the drawing manufacturing process and the engineering cooperation period are shortened, and the user experience is further improved.
The above drawing generation method is described in detail below by taking a market plan of a albino sky street shopping center in beijing as an example.
Firstly, creating Revit model data based on a preconfigured Revit model, and converting the Revit model data into data which can be identified by a lightweight engine by using a plug-in developed secondarily by Revit based on a family type in Revit; further, storing the converted data as GeoJSON format data, wherein the code of the GeoJSON format data is as follows:
{
"properties": {
"id" B-1F-014 ",
"name": monopoly store ",
"type": "CBD_MONOPOLY_SHOP",
"area": 82.54900158394956,
"revitId": 123456
},
"geometry": {
"coordinates": [
[0, 1],
[1, 1],
[1, 0],
[0, 0]
]
}
}。
as can be seen from the above code, the GeoJSON format data includes two parts of content, attribute data (properties) including an identification of a region (B-1F-014), a name (exclusive SHOP), a type (CBD _ monoply _ SHOP), an area (82.54900158394956), and a Revit identification (123456), and geometric data (geometry) including coordinates of points of the region ([ 0, 1], [1, 0], and [0, 0 ]).
It should be noted that, only data of one region is shown here as an example, and in practical applications, data of multiple regions may be included in the GeoJSON format data.
Next, the attribute data and the geometric data are separated from each other by using a lightweight engine, so as to obtain adjusted model data (levels), wherein the code of the adjusted model data is as follows:
{
"levels": [
{
"height": 0,
"name": "1F",
"areas": [
{
"id" B-1F-014 ",
"area": 82.54900158394956,
"shop": "D8D",
"name": monopoly store ",
"type": "CBD_MONOPOLY_SHOP",
"vertices": [
{
"arc": false,
"x": 0,
"y": 1,
"id": "9d3328db-687a-472f-9419-f610c09cec93"
},
{
"arc": false,
"x": 1,
"y": 1,
"id": "5723dfdb-e616-4669-a427-0b76a0d8c740"
},
{
"arc": false,
"x": 1,
"y": 0,
"id": "7079613f-f724-4589-97cb-7b4de73756b6"
},
{
"arc": false,
"x": 0,
"y": 0,
"id": "c19b73d5-db54-409b-85f5-10658449b7c4"
}
],
"edges": [
{
"stop": "5723dfdb-e616-4669-a427-0b76a0d8c740",
"thickness": 200,
"start": "9d3328db-687a-472f-9419-f610c09cec93",
"id": "81f4144b-6400-4e6f-8a25-d4bf53eb8b7e",
"type": 0,
"align": 0
},
{
"stop": "7079613f-f724-4589-97cb-7b4de73756b6",
"thickness": 200,
"start": "5723dfdb-e616-4669-a427-0b76a0d8c740",
"id": "7f3d0632-63bf-45c4-879e-8c5f1fcac8ec",
"type": 3,
"align": 0
},
{
"stop": "c19b73d5-db54-409b-85f5-10658449b7c4",
"thickness": 200,
"start": "7079613f-f724-4589-97cb-7b4de73756b6",
"id": "da4ebe8b-9913-4b66-b8a9-bb0b4246effa",
"type": 3,
"align": 0
},
{
"stop": "9d3328db-687a-472f-9419-f610c09cec93",
"thickness": 200,
"start": "c19b73d5-db54-409b-85f5-10658449b7c4",
"id": "47ec4a5c-0c7a-4a7e-a15e-d8769046dace",
"type": 3,
"align": 0
}
],
"region": {
"id": "0fa6b17e-d632-4345-8bf9-a39b3e1983bf",
"points": [
"9d3328db-687a-472f-9419-f610c09cec93",
"5723dfdb-e616-4669-a427-0b76a0d8c740",
"7079613f-f724-4589-97cb-7b4de73756b6",
"c19b73d5-db54-409b-85f5-10658449b7c4"
]
},
"oneID": ""
}
],
"entities": [
{
"properties": {
"area": 36.657025090908355,
"name": stair/ramp ",
"type": "CBD_STAIRS",
"oneID": ""
},
"geometry": {
"coordinates": [
[
[0, 2],
[2, 0],
[4, 0],
[4, 2]
]
],
"type": "Polygon"
},
"id": "4619ef46-53e0-42b9-91f7-6ed95b8b98f8"
}
]
}
],
project, Beijing Changchun (a Chinese character 'Tianjie',
"areaList": [
"B shop-1F-014"
],
"ExtraStr": [
"shop number: shop B-1F-014 ",
"Explanation: the figure is only an illustration, and the house specific information is based on the lease contract and the actual delivery status "
]
}。
As can be seen from the above codes, the adjusted model data mainly includes two parts of contents of resource data sets (areas) and component data sets (entities). The resource data set includes an identification of the region (B lot-1F-014), an area (82.54900158394956), a brand (D8D), a name (exclusive store), a type (CBD _ MONOPOLY _ SHOP), vertices (vertices), edges (edges), and a region (region). The component data set comprises attribute data (properties) comprising an area (36.657025090908355), a name (STAIRS/ramps) and a type (CBD _ STAIRS) of the component and geometry data (geometry) comprising coordinates ([ 0, 2], [2, 0], [4, 0] and [4, 2 ]) and a type (Polygon) of the component.
It should be noted that, only data of one component is shown here as an example, and in practical applications, data of a plurality of components may be included in the adjusted model data.
Next, the adjusted model data is loaded by using a browser, so as to display a shopping mall plan corresponding to the adjusted model data on a page, as shown in fig. 3 (a). When a user selects any target area (such as a gray area in fig. 3 (a)) in a market plan to generate a contract drawing, the server encapsulates the adjusted model data (levels), project information (project), target area list (areelist) to be exported and custom information into new JSON-format data, and sends the new JSON-format data to the plug-in for AutoCAD secondary development, wherein specific codes of the new JSON-format data are as follows:
{
"levels": [
{
……
}
],
project, Beijing Changchun (a Chinese character 'Tianjie',
"areaList": [
"B shop-1F-014"
],
"ExtraStr": [
"shop number: shop B-1F-014 ",
"Explanation: the figure is only an illustration, and the house specific information is based on the lease contract and the actual delivery status "
]
}。
From the codes, the new JSON format data comprises project information (Beijing Adriana albizzia sky street), a target area list to be exported (shop number: shop-1F-014 and description: the figure is only schematic, and the house specific information is subject to the leasing contract and the actual delivery status).
Note that, since the code of the adjusted model data (levels) is not changed in the new JSON format data, specific data thereof is omitted.
Further, when new JSON format data is received, the plug-in of the AutoCAD secondary development carries out serialization operation on the new JSON format data, and the identifiers of all the regions in the resource data set are traversed one by one on the basis of a target region list (library-1F-014) to be exported, so that whether the identifiers identical to the target region list to be exported exist in the resource data set or not is determined. In the case where it is determined that the same identification as the target region list to be derived exists in the resource data set, the vertex coordinates of each vertex are found based on the identification of the point (points) in the region (region) (e.g., 9d3328db-687a-472f-9419-f610c09cec93, etc.), and the built-in API of the drawing surface in AutoCAD is called based on the type (Polygon) in the component data set (entities) to draw the outline of the target region, i.e., the plan view of the target region, as shown in fig. 3 (b).
Finally, a drawing including the target area is generated as a contract drawing, which is in the DWG format, as shown in fig. 3 (c). In FIG. 3(c), the view in the first area 301 is a plan view of the target area, the view in the second area 302 is a plan view of the mall, and the plan view of the target area is also an enlarged view of the gray area in the plan view of the mall; the content in the third area 303 is item information, and the content in the fourth area 304 is custom information.
It should be noted that, in order to avoid the theft and tampering of the contract figure, a watermark may be added to the contract figure and a related watermark attribute may be set, as shown in fig. 3 (d); the contract figures may also be encrypted.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 4 is a schematic structural diagram of a drawing generation apparatus according to an embodiment of the present disclosure. As shown in fig. 4, the drawing generation apparatus includes:
a receiving module 401 configured to receive a drawing generation instruction, where the drawing generation instruction is used to instruct to generate a drawing of a target area and includes a target area identifier of the target area;
a determining module 402 configured to determine whether an area identifier identical to the target area identifier exists in the adjusted model data, wherein the adjusted model data includes a resource data set and a member data set, the resource data set includes contour data of an area corresponding to the area identifier and the area identifier, and the member data set includes type data of a member;
and a generating module 403 configured to, in a case where it is determined that the region identifier identical to the target region identifier exists in the adjusted model data, call a corresponding application program interface using the first plug-in based on the type data of the component, and generate a drawing of the target region based on the contour data of the region.
According to the technical scheme provided by the embodiment of the disclosure, a drawing generation instruction is received, wherein the drawing generation instruction is used for indicating the generation of the drawing of a target area and comprises a target area identifier of the target area; determining whether an area identifier which is the same as the target area identifier exists in the adjusted model data or not, wherein the adjusted model data comprises a resource data set and a member data set, the resource data set comprises the area identifier and outline data of an area corresponding to the area identifier, and the member data set comprises type data of a member; under the condition that the region identification identical to the target region identification exists in the adjusted model data, based on the type data of the component, the corresponding application program interface is called by using the first plug-in, and the drawing of the target region is generated based on the contour data of the region, so that the standardization and the generalization of the drawing can be realized, the drawing efficiency is improved, a large amount of manpower and time cost are saved, the error rate is reduced, and the drawing manufacturing process and the engineering cooperation period are shortened.
In some embodiments, the drawing generation apparatus of fig. 4 further includes: a derivation module 404, wherein the reception module 401 receives a drawing download instruction, and the drawing download instruction is used for indicating to download a drawing of the target area; the derivation module 404 is configured to derive a drawing including at least the target area as a contract drawing based on the drawing download instruction, wherein a format of the contract drawing includes any one of a DWG format, a PDF format, a PNG format, and a JPG format.
In some embodiments, the drawing generation instruction further includes project information and custom information, and the drawing generation apparatus in fig. 4 further includes: a first display module 405 configured to display the drawing of the target area in the first area of the contract drawing, display the building plan corresponding to the adjusted model data in the second area of the contract drawing, acquire project information and display the project information in the third area of the contract drawing, and acquire custom information and display the custom information in the fourth area of the contract drawing.
In some embodiments, the drawing generation apparatus of fig. 4 further includes: an obtaining module 406 configured to obtain preconfigured model data and convert the preconfigured model data into data recognizable by the lightweight engine using a second plug-in based on different data types; a storage module 407 configured to store data recognizable by the lightweight engine as GeoJSON-format data, wherein the GeoJSON-format data includes attribute data and geometric data, and the attribute data includes a plurality of region identifiers of a plurality of regions; the splitting module 408 is configured to separate attribute data and geometric data of the GeoJSON format data by using a lightweight engine to obtain adjusted model data, where a resource data set in the adjusted model data includes a plurality of region identifiers of a plurality of regions; the second display module 409 displays the building plan corresponding to the adjusted model data using a web page, so as to perform an online editing operation on the building plan.
In some embodiments, the editing operations include one or more of editing node operations, tile splitting operations, tile deletion operations, pan rotation operations, chamfering operations, straight arc rotation operations.
In some embodiments, the determination module 402 of fig. 4 compares the target area identification with each of the plurality of area identifications to determine whether the same area identification as the target area identification exists in the plurality of area identifications.
In some embodiments, the drawing generation apparatus of fig. 4 further includes: and a filling module 410 configured to perform color filling and/or oblique line processing on the target area in the building plan if it is determined that the area identifier identical to the target area identifier exists in the plurality of area identifiers.
In some embodiments, the generation module 403 of fig. 4 generates an outline of the region based on the coordinates and the identification of the point and the start and end positions of the edge in the outline data of the region, and generates the drawing of the target region based on the outline of the region.
In some embodiments, the model data comprises Revit model data or CAD model data, the first plug-in is a CAD plug-in, and the second plug-in is a Revit plug-in or a CAD plug-in.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
Fig. 5 is a schematic diagram of an electronic device 5 provided in an embodiment of the present disclosure. As shown in fig. 5, the electronic apparatus 5 of this embodiment includes: a processor 501, a memory 502 and a computer program 503 stored in the memory 502 and operable on the processor 501. The steps in the various method embodiments described above are implemented when the processor 501 executes the computer program 503. Alternatively, the processor 501 implements the functions of the respective modules/units in the above-described respective apparatus embodiments when executing the computer program 503.
Illustratively, the computer program 503 may be partitioned into one or more modules/units, which are stored in the memory 502 and executed by the processor 501 to accomplish the present disclosure. One or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 503 in the electronic device 5.
The electronic device 5 may be a desktop computer, a notebook, a palm computer, a cloud server, or other electronic devices. The electronic device 5 may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that fig. 5 is merely an example of the electronic device 5, and does not constitute a limitation of the electronic device 5, and may include more or less components than those shown, or combine certain components, or be different components, e.g., the electronic device may also include input-output devices, network access devices, buses, etc.
The Processor 501 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 502 may be an internal storage unit of the electronic device 5, for example, a hard disk or a memory of the electronic device 5. The memory 502 may also be an external storage device of the electronic device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device 5. Further, the memory 502 may also include both internal storage units and external storage devices of the electronic device 5. The memory 502 is used for storing computer programs and other programs and data required by the electronic device. The memory 502 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other ways. For example, the above-described apparatus/electronic device embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, and multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present disclosure may implement all or part of the flow of the method in the above embodiments, and may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the above methods and embodiments. The computer program may comprise computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain suitable additions or additions that may be required in accordance with legislative and patent practices within the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals or telecommunications signals in accordance with legislative and patent practices.
The above examples are only intended to illustrate the technical solutions of the present disclosure, not to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present disclosure, and are intended to be included within the scope of the present disclosure.

Claims (12)

1. A drawing generation method is characterized by comprising the following steps:
receiving a drawing generation instruction, wherein the drawing generation instruction is used for indicating that a drawing of a target area is generated and comprises a target area identification of the target area;
determining whether an area identifier which is the same as the target area identifier exists in the adjusted model data, wherein the adjusted model data comprises a resource data set and a member data set, the resource data set comprises the area identifier and outline data of an area corresponding to the area identifier, and the member data set comprises type data of a member;
and under the condition that the region identification identical to the target region identification exists in the adjusted model data, calling a corresponding application program interface by using a first plug-in unit based on the type data of the component, and generating a drawing of the target region based on the contour data of the region.
2. The method of claim 1, further comprising:
receiving a drawing downloading instruction, wherein the drawing downloading instruction is used for instructing to download the drawing of the target area;
and deriving a drawing at least comprising the target area as a contract drawing based on the drawing downloading instruction, wherein the format of the contract drawing comprises any one of DWG format, PDF format, PNG format and JPG format.
3. The method of claim 2, wherein the drawing generation instructions further include project information and custom information, the method further comprising:
displaying the drawing of the target area in a first area of the contract drawing;
displaying a building plan corresponding to the adjusted model data in a second area of the contract drawing;
acquiring the project information and displaying the project information in a third area of the contract drawing;
and acquiring the custom information, and displaying the custom information in a fourth area of the contract drawing.
4. The method of claim 1, further comprising:
obtaining pre-configured model data, and converting the pre-configured model data into data which can be identified by a lightweight engine by using a second plug-in unit based on different data types;
storing data recognizable by the lightweight engine as GeoJSON format data, wherein the GeoJSON format data comprises attribute data and geometric data, and the attribute data comprises a plurality of region identifications of a plurality of regions;
separating the attribute data and the geometric data of the GeoJSON format data by using the lightweight engine to obtain the adjusted model data, wherein the resource data set in the adjusted model data comprises a plurality of region identifications of the plurality of regions;
and displaying the building plan corresponding to the adjusted model data by using a webpage so as to carry out online editing operation on the building plan.
5. The method of claim 4, wherein the editing operations comprise one or more of editing node operations, tile splitting operations, tile deletion operations, pan rotation operations, chamfering operations, straight arc rotation operations.
6. The method of claim 4, wherein the determining whether the region identifier identical to the target region identifier exists in the adjusted model data comprises:
and comparing the target area identifier with each of the plurality of area identifiers respectively to determine whether the area identifier which is the same as the target area identifier exists in the plurality of area identifiers.
7. The method of claim 6, further comprising:
and under the condition that the area identification which is the same as the target area identification exists in the plurality of area identifications, carrying out color filling and/or oblique line processing on the target area in the building plan.
8. The method of claim 1, wherein the generating the drawing of the target area based on the contour data of the area comprises:
and generating a contour line of the region based on the coordinates and the identification of the midpoint in the contour data of the region and the starting position and the ending position of the edge, and generating a drawing of the target region based on the contour line of the region.
9. The method according to any one of claims 1 to 8, wherein the model data comprises Revit model data or CAD model data, the first plug-in is a CAD plug-in, and the second plug-in is a Revit plug-in or a CAD plug-in.
10. A drawing generation apparatus, comprising:
the receiving module is configured to receive a drawing generation instruction, wherein the drawing generation instruction is used for indicating that a drawing of a target area is generated and comprises a target area identification of the target area;
a determining module configured to determine whether an area identifier identical to the target area identifier exists in the adjusted model data, wherein the adjusted model data includes a resource data set and a member data set, the resource data set includes contour data of an area corresponding to the area identifier and the area identifier, and the member data set includes type data of a member;
and the generating module is configured to call a corresponding application program interface by using a first plug-in unit based on the type data of the component and generate a drawing of the target area based on the outline data of the area when the area identifier which is the same as the target area identifier exists in the adjusted model data.
11. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 9 when executing the computer program.
12. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 9.
CN202111017774.1A 2021-09-01 2021-09-01 Drawing generation method and device, electronic equipment and storage medium Active CN113468626B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111017774.1A CN113468626B (en) 2021-09-01 2021-09-01 Drawing generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111017774.1A CN113468626B (en) 2021-09-01 2021-09-01 Drawing generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113468626A true CN113468626A (en) 2021-10-01
CN113468626B CN113468626B (en) 2021-12-14

Family

ID=77866982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111017774.1A Active CN113468626B (en) 2021-09-01 2021-09-01 Drawing generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113468626B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113610512A (en) * 2021-10-09 2021-11-05 深圳须弥云图空间科技有限公司 Electronic signature generation method, device, equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018010455A (en) * 2016-07-13 2018-01-18 東芝プラントシステム株式会社 Three-dimensional cad data creation system and creation method
US20190156569A1 (en) * 2017-11-17 2019-05-23 Thales Canada, Inc. Point cloud rail asset data extraction
CN110399631A (en) * 2019-05-31 2019-11-01 天津大学 The design method and system of ground leaching mine well site drawing platform
CN110929310A (en) * 2019-11-25 2020-03-27 杭州群核信息技术有限公司 Cloud drawing intelligent generation and editing method
CN111143923A (en) * 2019-12-17 2020-05-12 万翼科技有限公司 Model processing method and related device
US20200265121A1 (en) * 2019-02-15 2020-08-20 Procore Technologies, Inc. Generating Technical Drawings From Building Information Models
CN112528353A (en) * 2020-12-18 2021-03-19 深圳须弥云图空间科技有限公司 Method and device for reconstructing three-dimensional scene based on CAD drawing
CN112579945A (en) * 2020-12-30 2021-03-30 深圳须弥云图空间科技有限公司 Model data display method and device, equipment and computer readable storage medium
CN112818457A (en) * 2021-02-26 2021-05-18 万翼科技有限公司 BIM (building information modeling) model intelligent generation method and system based on CAD (computer-aided design) drawing
CN113094770A (en) * 2021-03-12 2021-07-09 广州珠江外资建筑设计院有限公司 Drawing generation method and device, computer equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018010455A (en) * 2016-07-13 2018-01-18 東芝プラントシステム株式会社 Three-dimensional cad data creation system and creation method
US20190156569A1 (en) * 2017-11-17 2019-05-23 Thales Canada, Inc. Point cloud rail asset data extraction
US20200265121A1 (en) * 2019-02-15 2020-08-20 Procore Technologies, Inc. Generating Technical Drawings From Building Information Models
CN110399631A (en) * 2019-05-31 2019-11-01 天津大学 The design method and system of ground leaching mine well site drawing platform
CN110929310A (en) * 2019-11-25 2020-03-27 杭州群核信息技术有限公司 Cloud drawing intelligent generation and editing method
CN111143923A (en) * 2019-12-17 2020-05-12 万翼科技有限公司 Model processing method and related device
CN112528353A (en) * 2020-12-18 2021-03-19 深圳须弥云图空间科技有限公司 Method and device for reconstructing three-dimensional scene based on CAD drawing
CN112579945A (en) * 2020-12-30 2021-03-30 深圳须弥云图空间科技有限公司 Model data display method and device, equipment and computer readable storage medium
CN112818457A (en) * 2021-02-26 2021-05-18 万翼科技有限公司 BIM (building information modeling) model intelligent generation method and system based on CAD (computer-aided design) drawing
CN113094770A (en) * 2021-03-12 2021-07-09 广州珠江外资建筑设计院有限公司 Drawing generation method and device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TERRENO SARATU 等: "BIM Implementation in Facilities Management: An Analysis of Implementation Processes", 《CONSTRUCTION RESEARCH CONGRESS 2018: CONSTRUCTION INFORMATION TECHNOLOGY》 *
李昊 等: "基于BIM技术的绿色建筑施工成本管理研究", 《企业科技与发展》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113610512A (en) * 2021-10-09 2021-11-05 深圳须弥云图空间科技有限公司 Electronic signature generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113468626B (en) 2021-12-14

Similar Documents

Publication Publication Date Title
Shojaei et al. Visualization requirements for 3D cadastral systems
US11402820B2 (en) Method and system for building framing and manufacturing system
Zhang et al. Development and implementation of an industry foundation classes‐based graphic information model for virtual construction
Logothetis et al. BIM Open Source Software (OSS) for the documentation of cultural heritage
US11941328B2 (en) Audit of computer-aided design documents
CN111161390A (en) Rendering method and device based on BIM (building information modeling) model and WebGL (Web graphics library)
Shojani 3D Cadastral Visualisation: Understanding Users' Requirements
US11182905B2 (en) Algorithmic approach to finding correspondence between graphical elements
WO2022147202A1 (en) System and method to process and display information related to real estate by developing and presenting a photogrammetric reality mesh
CN114969586A (en) BIM (building information modeling) graphic engine loading method and device based on WEB side
CN113468626B (en) Drawing generation method and device, electronic equipment and storage medium
WO2023159595A1 (en) Method and device for constructing and configuring three-dimensional space scene model, and computer program product
Coelho et al. Expeditious Modelling of Virtual Urban Environments with Geospatial L‐systems
CN114329669A (en) Online collaborative editing method and device, electronic equipment and storage medium
She et al. 3D building model simplification method considering both model mesh and building structure
CN109063223B (en) BIM model light weight method and device and BIM model processing method and system
CN113591197B (en) Online editing method and device, electronic equipment and storage medium
CN109559085B (en) Approval method based on BIM lightweight model and terminal equipment
Qiu et al. Role-based 3D visualisation for asynchronous PLM collaboration
CN115857930A (en) Prototype rapid design method and system based on real-scene model
CN113610512A (en) Electronic signature generation method, device, equipment and storage medium
Petrova-Antonova et al. Towards a semantic 3D model of Sofia City
Cembranos et al. Supporting the automatic extraction of HBIM elements from point clouds
CN111369665A (en) Production state monitoring system and monitoring method based on three-dimensional modeling technology
CN113778905B (en) UI design acceptance 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
GR01 Patent grant
GR01 Patent grant