Residential core tube area calculation method based on CAD external reference collaborative mode

文档序号:136208 发布日期:2021-10-22 浏览:15次 中文

阅读说明:本技术 基于cad外部参照协同模式的住宅核心筒面积计算方法 (Residential core tube area calculation method based on CAD external reference collaborative mode ) 是由 唐夏华 钟值伟 陈文献 石宁琛 丘夏 许海昌 于 2021-07-01 设计创作,主要内容包括:本发明公开了一种基于CAD外部参照协同模式的住宅核心筒面积计算方法,通过软件分析的方法,对外部参照图纸进行处理,分开计算核心筒各部分区域的边界,然后通过计算各区域部分边界的合集进而得到核心筒面积。本发明的计算方法配合基于外部参照协同设计模式,既可以发挥该模式的优势,又缓解该模式带来的一些问题,弥补了现有主流设计软件的不足。通过此方法可有效降低设计人员绘制面积线的复杂程度,提高绘制准确性,为后续自动生成的各类住宅面积指标表提供数据基础,对提高整体设计效率、设计质量具有重要意义。(The invention discloses a method for calculating the area of a residential core tube based on a CAD external reference collaborative mode. The calculation method provided by the invention is matched with the external reference-based collaborative design mode, so that the advantages of the mode can be brought into play, some problems caused by the mode are relieved, and the defects of the existing mainstream design software are overcome. By the method, the complexity of drawing the area lines by designers can be effectively reduced, the drawing accuracy is improved, a data base is provided for various subsequent automatically generated residence area index tables, and the method has important significance for improving the overall design efficiency and the design quality.)

1. A method for calculating the area of a residential core tube based on a CAD external reference collaborative mode is characterized in that an external reference drawing is processed through a software analysis method, the boundaries of all parts of the core tube are calculated separately, and then the area of the core tube is obtained through calculating the collection of all part boundaries of all the parts, and the method comprises the following steps:

s1: drawing on a Tianzheng software;

s2: connecting the regions which are spatially separated but need correlation calculation in area calculation in the core barrel part diagram by auxiliary lines;

s3: extracting the straight line walls of all part drawings in the core tube drawing file to a current drawing;

s4: according to the text content of each area of the core barrel, executing the step S5 one by one;

s5: taking an insertion point of the character object as a base point P, making a ray to a-y vector, and taking a wall which is intersected with the ray and is closest to the base point as a starting wall; taking a small X value of two end points of the initial wall axis as an end point, taking the other point as a starting point to form a wall vector V, and solving the cross product of the V and the Z axis to obtain a base vector; obtaining all walls adjacent to the adjacent wall of the current wall and the initial wall through range scanning at the end point, sequentially comparing the included angles of the wall vectors and the basis vectors, recording the adjacent wall with the minimum included angle, taking the adjacent wall as the current wall to be processed next, and circularly executing the step S6;

s6, taking a point with a short distance from the straight line in the intersection point of the two end points of the axis of the current wall and the previous adjacent wall as a starting point and the other end point to form a wall vector V, and solving the cross product of the V and the Z axis to obtain a base vector; scanning a range at a terminal point to obtain all adjacent walls of the current wall; sequentially obtaining the included angles between the vectors of the adjacent walls and the base vector of the current wall, recording the adjacent wall with the minimum included angle, and taking the adjacent wall as the current wall to be processed next; repeating the step S6 until the recorded wall is found in the adjacent walls, and ending the loop;

s7: according to the sequence of the wall scanned and recorded in each area of the core barrel, automatically generating closed multi-section lines in sequence along the axial end points of the wall, and enabling each area in the core barrel to generate an area line;

s8: calculating the left lower angular point and the right upper angular point of a minimum bounding set rectangle of the multi-segment lines of each area in the core cylinder, drawing the multi-segment lines of the rectangle, and amplifying the multi-segment lines;

s9: setting the multiple sections of lines of the bounding set as outer boundaries through a Boundary command of CAD, and setting area lines of each region of each core cylinder as inner boundaries; generating a combined contour multi-segment line based on area lines of all regions of the core barrel through Boundary, and properly offsetting partial line segments of a contour line according to requirements to meet the standard requirements, wherein the contour line is the area line of the core barrel;

s10: and reading the area attribute of the contour multi-segment line to obtain the area value of the core tube of the house.

2. The method according to claim 1, wherein the minimum bounding set rectangle is a rectangle that can contain all area polylines and has the smallest area.

3. The method according to claim 1, wherein the Boundary command is a Boundary command that pops up a Boundary dialog box after being input on a command bar of the CAD, and a space is used to create a face area or a polyline after clicking a closed graphic.

4. The method according to claim 1, wherein the area of the housing core tube is calculated based on a CAD external reference cooperation model, and the area line combination contour polyline is a polygonal contour line formed by combining area polylines.

Technical Field

The invention relates to the technical field of constructional engineering, in particular to a method for calculating the area of a residential core cylinder based on a CAD external reference collaborative mode.

Background

The External Reference (XREF) refers to that a user views any other drawing in his/her current drawing file by means of External Reference under the CAD environment, for example, when a designer a draws a drawing a, a drawing b (or other format, such as pdf or picture) drawn by other designers is introduced in the drawing a by means of External Reference as a base drawing Reference, where the drawing b is an External file referred to by the drawing a, that is, an External Reference.

In the design of a residential project, in order to effectively reduce the missing and mistake caused by inconsistent base map reference contents in the upstream and downstream professions in the design process, a collaborative mode based on external reference is often adopted, and the downstream professions reference drawings of the upstream professions through an external reference mode, so that the base maps of the downstream professions and the upstream professions are ensured to be synchronous.

In the building design, the area of a core barrel of a house needs to be calculated so as to fill various economic and technical index tables. It is conventional practice for an engineer to manually draw a closed polyline of a core barrel region to obtain the area of the core barrel. Due to the reasons of frequent drawing modification, complex functions of a core tube area and the like, the manual drawing process is complicated and easy to make mistakes, the area calculation function of the existing mainstream professional software cannot identify a wall object in an external reference, and the area calculation of the core tube part is not supported, so that the problem needs to be solved urgently.

Disclosure of Invention

In order to solve the defects of the prior art, the application discloses a method for calculating the area of a residential core tube based on a CAD external reference collaborative mode.

The specific scheme is as follows:

a method for calculating the area of a residential core tube based on a CAD external reference collaborative mode is characterized in that an external reference drawing is processed through a software analysis method, the boundaries of all parts of the core tube are calculated in a separated mode, and then the area of the core tube is obtained through calculating the union set of all the part boundaries, and the method comprises the following steps:

s1: drawing on a Tianzheng software;

s2: connecting the regions which are spatially separated but need correlation calculation in area calculation in the core barrel part diagram by auxiliary lines;

s3: extracting the straight line walls of all part drawings in the core tube drawing file to a current drawing;

s4: according to the text content of each area of the core barrel, executing the step S5 one by one;

s5: taking an insertion point of the character object as a base point P, making a ray to a-y vector, and taking a wall which is intersected with the ray and is closest to the base point as a starting wall; taking a small X value of two end points of the initial wall axis as an end point, taking the other point as a starting point to form a wall vector V, and solving the cross product of the V and the Z axis to obtain a base vector; obtaining all walls adjacent to the adjacent wall of the current wall and the initial wall through range scanning at the end point, sequentially comparing the included angles of the wall vectors and the basis vectors, recording the adjacent wall with the minimum included angle, taking the adjacent wall as the current wall to be processed next, and circularly executing the step S6;

s6, taking a point with a short distance from the straight line in the intersection point of the two end points of the axis of the current wall and the previous adjacent wall as a starting point and the other end point to form a wall vector V, and solving the cross product of the V and the Z axis to obtain a base vector; scanning a range at a terminal point to obtain all adjacent walls of the current wall; sequentially obtaining the included angles between the vectors of the adjacent walls and the base vector of the current wall, recording the adjacent wall with the minimum included angle, and taking the adjacent wall as the current wall to be processed next; repeating the step S6 until the recorded wall is found in the adjacent walls, and ending the loop;

s7: according to the sequence of the wall scanned and recorded in each area of the core barrel, automatically generating closed multi-section lines in sequence along the axial end points of the wall, and enabling each area in the core barrel to generate an area line;

s8: calculating the left lower angular point and the right upper angular point of a minimum bounding set rectangle of the multi-segment lines of each area in the core cylinder, drawing the multi-segment lines of the rectangle, and amplifying the multi-segment lines;

s9: setting the multiple sections of lines of the bounding set as outer boundaries through a Boundary command of CAD, and setting area lines of each region of each core cylinder as inner boundaries; generating a combined contour multi-segment line based on area lines of all regions of the core barrel through Boundary, and properly offsetting partial line segments of a contour line according to requirements to meet the standard requirements, wherein the contour line is the area line of the core barrel;

s10: and reading the area attribute of the contour multi-segment line to obtain the area value of the core tube of the house.

It should be further noted that the minimum bounding set rectangle refers to a rectangle capable of containing all area polylines and having the minimum area.

It should be further noted that the Boundary command pops up a Boundary dialog box after being input on the command bar of the CAD, and a space can create a face field or a polyline after clicking a closed graph.

It should be further noted that the multi-segment line of the combined contour of the area lines of each region refers to a polygonal contour line formed by combining the multi-segment lines of the area lines of each region.

"parts drawing": a part of the drawing, stored in an external reference document, resembles the concept of a part in a machine.

"to form a figure": the finished drawing composed of a plurality of part drawings is formed by combining all the part drawings.

"vector": with magnitude and direction quantities.

"basis vector": perpendicular to the wall line, the direction always points to the vector inside the room.

The calculation method provided by the invention is matched with the external reference-based collaborative design mode, so that the advantages of the mode can be brought into play, some problems caused by the mode are relieved, and the defects of the existing mainstream design software are overcome. By the method, the complexity of drawing the area lines by designers can be effectively reduced, the drawing accuracy is improved, a data base is provided for various subsequent automatically generated residence area index tables, and the method has important significance for improving the overall design efficiency and the design quality.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It should be apparent that the drawings in the following description are merely exemplary, and that other embodiments can be derived from the drawings provided by those of ordinary skill in the art without inventive effort.

FIG. 1 is a process flow diagram of the present invention;

FIG. 2 is a general view of a core barrel region of an embodiment of the present invention;

FIG. 3 is a schematic view of the beginning of the treatment of the pre-chamber area of the stairway according to an embodiment of the invention;

FIG. 4 is a schematic view of the next adjacent wall scanned according to the embodiment of the present invention;

FIG. 5 is a schematic view of wall A scanning the area of the stairwell according to an embodiment of the invention;

FIG. 6 is a schematic view of wall B scanning the area of the stairwell according to an embodiment of the invention;

FIG. 7 is a schematic diagram of the completion of scanning according to an embodiment of the present invention;

FIG. 8 is a schematic view of a schematic drawing of area lines of stair front chambers according to an embodiment of the invention;

FIG. 9 is a schematic diagram of a core barrel area line generated according to an embodiment of the present invention.

Detailed Description

The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

As shown in fig. 1, a method for calculating an area of a residential core tube based on a CAD external reference collaborative model, which processes an external reference drawing by a software analysis method, separately calculates boundaries of each part of the core tube, and then obtains the area of the core tube by calculating a union of the boundaries of each part of the region, includes the following steps:

s1: drawing on a Tianzheng software;

s2: connecting the regions which are spatially separated but need correlation calculation in area calculation in the core barrel part diagram by auxiliary lines;

s3: extracting the straight line walls of all part drawings in the core tube drawing file to a current drawing;

s4: according to the text content of each area of the core barrel, executing the step S5 one by one;

s5: taking an insertion point of the character object as a base point P, making a ray to a-y vector, and taking a wall which is intersected with the ray and is closest to the base point as a starting wall; taking a small X value of two end points of the initial wall axis as an end point, taking the other point as a starting point to form a wall vector V, and solving the cross product of the V and the Z axis to obtain a base vector; obtaining all walls adjacent to the adjacent wall of the current wall and the initial wall through range scanning at the end point, sequentially comparing the included angles of the wall vectors and the basis vectors, recording the adjacent wall with the minimum included angle, taking the adjacent wall as the current wall to be processed next, and circularly executing the step S6;

s6, taking a point with a short distance from the straight line in the intersection point of the two end points of the axis of the current wall and the previous adjacent wall as a starting point and the other end point to form a wall vector V, and solving the cross product of the V and the Z axis to obtain a base vector; scanning a range at a terminal point to obtain all adjacent walls of the current wall; sequentially obtaining the included angles between the vectors of the adjacent walls and the base vector of the current wall, recording the adjacent wall with the minimum included angle, and taking the adjacent wall as the current wall to be processed next; repeating the step S6 until the recorded wall is found in the adjacent walls, and ending the loop;

s7: according to the sequence of the wall scanned and recorded in each area of the core barrel, automatically generating closed multi-section lines in sequence along the axial end points of the wall, and enabling each area in the core barrel to generate an area line;

s8: calculating the left lower angular point and the right upper angular point of a minimum bounding set rectangle of the multi-segment lines of each area in the core cylinder, drawing the multi-segment lines of the rectangle, and amplifying the multi-segment lines;

s9: setting the multiple sections of lines of the bounding set as outer boundaries through a Boundary command of CAD, and setting area lines of each region of each core cylinder as inner boundaries; generating a combined contour multi-segment line based on area lines of all regions of the core barrel through Boundary, wherein the contour line is the area line of the core barrel;

s10: and reading the area attribute of the contour multi-segment line to obtain the area value of the core tube of the house.

The minimum bounding set rectangle is a rectangle that can contain all area polylines and has the smallest area.

The Boundary command is a bounding dialog box which pops up after the Boundary command is input on a command bar of the CAD, and a space can be used for creating a face field or a polyline after a closed graph is clicked.

The multi-segment line of the combined contour of the area lines of each region refers to a polygonal contour line formed by combining the multi-segment lines of the area lines of each region.

Application example:

A) extracting the external reference wall to the current drawing, the core barrel area is shown in FIG. 2

B) And processing the 'stair front room' area, acquiring and recording a starting wall according to the character identification position, then acquiring an adjacent wall along the clockwise direction to start scanning, and taking the adjacent wall with the minimum included angle with the current wall base vector as the next wall to be processed. As shown in fig. 3, X2 is a base vector, X1 is a start wall vector, X3 to X4 are neighboring wall vectors, and an included angle between X3 and X2 is 0 degrees, which is smaller than an included angle between X2 and X4, which is 90 degrees, then the X3 wall is recorded, and the wall where X3 is located is determined as the next wall. W1 is a recorded area wall;

C) and further, taking the adjacent wall with the smallest included angle with the current base vector in the adjacent walls in the clockwise direction of the current wall as the next wall to be processed. As shown in FIG. 4, X5 is the current wall vector, X6 is the base vector, X7-X9 are the neighboring wall vectors, and the included angle between X6 and X9 is the smallest in X7-X9, then the X9 wall is recorded, and the wall where X9 is located is determined as the next wall. W1-W2 are recorded area walls;

D) further, the walls in the "stairwell" area are scanned and recorded one by one, as shown in fig. 5, X10 is the current wall vector, X11 is the base vector, X12 to X13 are the adjacent wall vectors, and the angle between X11 and X12 is the smallest in X12 to X13, then X12 wall is recorded, and the wall where X12 is located is determined as the next wall. W1-W3 are recorded area walls; as shown in fig. 6, X14 is a current wall vector, X15 is a base vector, X16 and X17 are adjacent wall vectors, an included angle between X15 and X16 is smaller than an included angle between X15 and X17, an X16 wall is recorded, a wall where X16 is located is determined as a next wall, and W1-W5 are recorded area walls;

E) further, if an already recorded wall object is found in the adjoining wall, the scanning is complete. As shown in fig. 7, X18 is the current wall vector, X19 is the base vector, X20 is the neighboring wall vector, since there is only one neighboring wall, the wall where X20 is located is determined as the next wall, and W1-W10 are the recorded area walls;

F) furthermore, drawing a plurality of lines along the wall axis in the recorded sequence of the wall, i.e. obtaining the area line of the "stairwell" area, as indicated by symbol L in fig. 8;

G) further, all the area identifiers are scanned, area lines are drawn one by one, an outer Boundary line is made, and then an area line of the core tube area can be generated by calling a Boundary command of the CAD, as shown in fig. 9, an area 1 is an enlarged outer Boundary multi-segment line generated according to the minimum bounding set rectangle, and an area 2 is a core tube area multi-segment line (a dotted line portion) generated by the Boundary command.

Although the invention has been described in detail above with reference to a general description and specific examples, it will be apparent to one skilled in the art that modifications or improvements may be made thereto based on the invention. Accordingly, such modifications and improvements are intended to be within the scope of the invention as claimed.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种应用于单一软件的电力工程设计方法、装置及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类