[go: up one dir, main page]

CN109992865B - A Method of Processing Elevation in AutoCAD Engineering Drawings - Google Patents

A Method of Processing Elevation in AutoCAD Engineering Drawings Download PDF

Info

Publication number
CN109992865B
CN109992865B CN201910224152.2A CN201910224152A CN109992865B CN 109992865 B CN109992865 B CN 109992865B CN 201910224152 A CN201910224152 A CN 201910224152A CN 109992865 B CN109992865 B CN 109992865B
Authority
CN
China
Prior art keywords
elevation
elevations
value
text
data storage
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.)
Expired - Fee Related
Application number
CN201910224152.2A
Other languages
Chinese (zh)
Other versions
CN109992865A (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.)
Chengdu Vocational and Technical College of Industry
Original Assignee
Chengdu Vocational and Technical College of Industry
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Vocational and Technical College of Industry filed Critical Chengdu Vocational and Technical College of Industry
Priority to CN201910224152.2A priority Critical patent/CN109992865B/en
Publication of CN109992865A publication Critical patent/CN109992865A/en
Application granted granted Critical
Publication of CN109992865B publication Critical patent/CN109992865B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Landscapes

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

Abstract

本发明涉及计算机辅助设计技术领域,公开了一种在AutoCAD工程图纸中处理标高的方法。通过本发明创造,提供了一种在AutoCAD工程图纸中可自动批量处理标高的新方法,即在立面图中创建标高时,可仍旧按平时的绘图习惯绘制标高线、标高符号和标高文字,并只需要标高线和标高文字满足特定的格式,对字体、标高符号没有任何限制,且不依赖于任何事先创建的属性块,由此不但可以自动地在AutoCAD工程图纸中批量处理标高,降低人为工作量,规避人工出错,避免复制乱码问题,极大提高绘制标高的效率与准确性,便于实际推广和应用。

Figure 201910224152

The invention relates to the technical field of computer-aided design, and discloses a method for processing elevations in AutoCAD engineering drawings. Through the creation of the present invention, a new method for automatically batch processing elevations in AutoCAD engineering drawings is provided, that is, when creating elevations in elevations, elevation lines, elevation symbols and elevation texts can still be drawn according to the usual drawing habits, It only needs the elevation line and elevation text to meet a specific format, without any restrictions on fonts and elevation symbols, and does not depend on any pre-created attribute blocks, so it can not only automatically process elevations in AutoCAD engineering drawings in batches, reducing man-made Reduce the workload, avoid manual errors, avoid copying garbled characters, greatly improve the efficiency and accuracy of drawing elevations, and facilitate practical promotion and application.

Figure 201910224152

Description

一种在AutoCAD工程图纸中处理标高的方法A Method of Processing Elevation in AutoCAD Engineering Drawings

技术领域technical field

本发明属于计算机辅助制图技术领域,具体涉及一种在AutoCAD工程图纸中处理标高的方法。The invention belongs to the technical field of computer aided drawing, and in particular relates to a method for processing elevation in AutoCAD engineering drawings.

背景技术Background technique

在现有工程制图过程中,常采用AutoCAD(Autodesk Computer Aided Design,其是由欧特克公司首次于1982年开发的自动计算机辅助设计软件,常用于二维绘图、详细绘制、设计文档和基本三维设计,现已经成为国际上广为流行的绘图工具)绘制工程图纸,并需要在图纸的立面视图中标注标高。In the existing engineering drawing process, AutoCAD (Autodesk Computer Aided Design, which is an automatic computer-aided design software first developed by Autodesk in 1982, is often used for two-dimensional drawing, detailed drawing, design documents and basic three-dimensional design, which has become a widely popular drawing tool in the world) to draw engineering drawings, and it is necessary to mark the elevation in the elevation view of the drawings.

目前标注标高的办法有两种:(1)全人工操作,即一个个地计算各标高的数值并在图纸上绘制标高,当需要修改标高时,同样人工计算标高的数值并且修改;由此可以看出,这样的操作方式比较烦琐,标高数量较少的时候尚可接受,当标高比较多的时候,在图纸不断绘制与修改的过程中,人工标注的标高容易出错,而且也不便于校核。(2)编制插件予以计算和处理,但目前的方法均无一例外地采用了属性块的形式;由于特定的一个插件只支持特定的属性块,当使用某个插件时,意味着仅能选择该插件所支持的标高样式,导致使用受到限制;另外,当复制了别人的图纸进行修改时,很可能出现字形不匹配而导致标高数值显示为乱码的问题,而且若想批量处理,还只能在查询得原图纸所采用的标高处理插件后,复制到工程师当前的电脑中才能完成。At present, there are two ways to mark the elevation: (1) full manual operation, that is, to calculate the value of each elevation one by one and draw the elevation on the drawing. When the elevation needs to be modified, the numerical value of the elevation is also manually calculated and modified; It can be seen that such an operation method is cumbersome, and it is acceptable when the number of elevations is small. When there are many elevations, in the process of continuous drawing and modification of drawings, the elevations marked manually are prone to errors, and it is not easy to check . (2) Compile plug-ins for calculation and processing, but the current methods all adopt the form of attribute blocks without exception; since a specific plug-in only supports a specific attribute block, when using a certain plug-in, it means that only The elevation style supported by this plug-in leads to limited use; in addition, when copying other people's drawings for modification, there may be a problem that the font does not match and the elevation value is displayed as garbled characters, and if you want to batch process, you can only After querying the elevation processing plug-in used in the original drawing, it can be completed by copying it to the engineer's current computer.

发明内容Contents of the invention

为了解决现有标注标高办法中所存在的人工标注繁琐及易出错和插件标注受限及易乱码等问题,本发明目的在于提供一种在AutoCAD工程图纸中可自动批量处理标高的新方法。In order to solve the problems of cumbersome and error-prone manual marking and limited plug-in marking and garbled characters existing in the existing methods of marking elevations, the purpose of this invention is to provide a new method for automatically batch processing elevations in AutoCAD engineering drawings.

本发明所采用的技术方案为:The technical scheme adopted in the present invention is:

一种在AutoCAD工程图纸中处理标高的方法,包括如下步骤:A method for processing elevation in AutoCAD engineering drawings, comprising the following steps:

S101.在AutoCAD工程图纸中创建若干标高,并将各个标高的标高线和标高文字设置为第一特定数据储存格式;S101. Create several levels in the AutoCAD engineering drawing, and set the level line and level text of each level as the first specific data storage format;

S102.针对标高值可输入确定且需要作为基准标高使用的标高,将其标高文字的数值修改为实际的已确定标高值,并将该标高文字和/或与该标高文字对应的标高线设置为第二特定数据储存格式;S102. For the elevation value, you can input the elevation that is determined and needs to be used as the reference elevation, modify the value of the elevation text to the actual determined elevation value, and set the elevation text and/or the elevation line corresponding to the elevation text to a second specific data storage format;

S103.获取格式为所述第一特定数据储存格式或所述第二特定数据储存格式的所有标高线的Y坐标,并对所有标高线的Y坐标进行由小到大/由大到小的排序,同时获取格式为所述第一特定数据储存格式或所述第二特定数据储存格式的所有标高文字的Y坐标,并按照标高文字的Y坐标对所有标高文字进行由小到大/由大到小的排序,然后将排序后的标高线的Y坐标与排序后的标高文字一一对应地配对为数组,最后遍历所述数组,将标高线的Y坐标或标高文字来源为所述第二特定数据储存格式的数组项标记为基准标高;S103. Obtain the Y coordinates of all elevation lines whose format is the first specific data storage format or the second specific data storage format, and sort the Y coordinates of all elevation lines from small to large/large to small , and at the same time obtain the Y coordinates of all elevation texts whose format is the first specific data storage format or the second specific data storage format, and proceed from small to large/large to large according to the Y coordinates of the elevation text Small sorting, and then pair the Y coordinates of the sorted elevation lines with the sorted elevation text into an array, and finally traverse the array, and set the Y coordinates of the elevation lines or the source of the elevation text as the second specific The array item in the data storage format is marked as the base level;

S104.设置标高值小数点后需要保留有效数字的个数,以及设置比例系数;S104. Set the number of valid digits after the decimal point of the elevation value, and set the proportional coefficient;

S105.根据所述基准标高和所述比例系数计算各个非基准标高的标高值,然后按照标高值小数点后需要保留有效数字的个数对计算得到的标高值进行有效取值,最后将各个经有效取值的标高值更新到对应的标高文字中。S105. Calculate the elevation value of each non-reference elevation according to the reference elevation and the proportional coefficient, and then perform an effective value calculation on the calculated elevation value according to the number of significant digits that need to be retained after the decimal point of the elevation value, and finally calculate each effective value The elevation value of the value is updated to the corresponding elevation text.

优化的,在所述步骤S101中,所述第一特定数据储存格式为具有第一特定颜色和特定名称的图层。进一步优化的,在所述步骤S102中,所述第二特定数据储存格式为第二特定颜色,其中,所述第二特定颜色与所述第一特定颜色为不同的两种颜色。Optimally, in the step S101, the first specific data storage format is a layer with a first specific color and a specific name. Further optimized, in the step S102, the second specific data storage format is a second specific color, wherein the second specific color is two different colors from the first specific color.

优化的,在所述步骤S103中,若某个标高线的起点Y坐标与终点Y坐标不同,则予以提示并退出。Optimally, in the step S103, if the Y coordinate of the starting point of a certain elevation line is different from the Y coordinate of the ending point, a prompt is given and the method exits.

优化的,在所述步骤S104中,按照如下方式设置标高值小数点后需要保留有效数字的个数:Optimally, in the step S104, the number of significant digits that need to be retained after the decimal point of the elevation value is set as follows:

读取基准标高的小数点后有效数字的个数;The number of valid digits after the decimal point for reading the reference elevation;

或者,当存在两个及以上的基准标高且各基准标高的标高值在小数点后有效数字的个数不相同时,读取所有基准标高中与标高线的最大/最小Y坐标对应的标高文字的小数位数。Or, when there are two or more datum elevations and the elevation values of each datum elevation have different numbers of significant digits after the decimal point, read the text of the elevation text corresponding to the maximum/minimum Y coordinate of the elevation line in all datum elevations number of decimal places.

优化的,在所述步骤S104中,按照如下方式设置比例系数:Optimally, in the step S104, the proportional coefficient is set as follows:

当有两个基准标高时,按照如下公式直接算得比例系数:比例系数=两基准标高的标高值的差值/两基准标高的标高线的Y坐标差值;When there are two reference elevations, the proportional coefficient can be directly calculated according to the following formula: proportional coefficient = the difference between the elevation values of the two reference elevations/the Y coordinate difference of the elevation lines of the two reference elevations;

或者,当只有一个基准标高而不能直接求得比例系数时,先读取预先标注尺寸的比例因子DIMLFAC,然后按照如下公式算得比例系数:比例系数=DIMLFAC*标注尺寸的单位/标高的单位。Or, when there is only one datum level and the scale factor cannot be obtained directly, first read the scale factor DIMLFAC marked in advance, and then calculate the scale factor according to the following formula: scale factor = DIMLFAC* dimension unit/elevation unit.

优化的,在所述步骤S104中,当有三个及以上的基准标高时,先按照如下公式算得各对相邻两基准标高之间的比例系数:比例系数=两基准标高的标高值的差值/两基准标高的标高线的Y坐标差值,然后比较所有算得的比例系数是否一致,若不一致则予以提示并退出。Optimally, in said step S104, when there are three or more reference elevations, first calculate the proportional coefficient between each pair of adjacent two reference elevations according to the following formula: proportional coefficient=the difference between the elevation values of the two reference elevations / The Y coordinate difference of the elevation lines of the two reference elevations, and then compare whether all the calculated proportional coefficients are consistent, and if they are inconsistent, give a prompt and exit.

优化的,在所述步骤S105中,包括有如下步骤:Optimally, in the step S105, the following steps are included:

S501.在所述数组中任意选定一个基准标高,获取该基准标高中标高线的Y坐标及相应标高文字中的标高值;S501. Select a reference level arbitrarily in the array, and obtain the Y coordinate of the elevation line in the reference level and the elevation value in the corresponding elevation text;

S502.遍历所述数组中的每一个数组项,并判断是否已标记为基准标高,若是,则选择下一个数组项,继续判断是否已标记为基准标高,若否,则执行后续步骤S503~S504;S502. Traversing through each array item in the array, and judging whether it has been marked as a reference elevation, if yes, then select the next array item, and continue to judge whether it has been marked as a reference elevation, if not, then perform subsequent steps S503-S504 ;

S503.按照如下方式计算当前所选数组项中标高文字的标高值:使该数组项中标高线的Y坐标减去所选基准标高中标高线的Y坐标,然后乘以在所述步骤S104中所设置的比例系数,最后与所选基准标高中标高文字所对应的标高值相加;S503. Calculate the elevation value of the elevation text in the currently selected array item as follows: the Y coordinate of the elevation line in the array item is subtracted from the Y coordinate of the elevation line in the selected datum elevation, and then multiplied by the value in step S104 The set scale factor is finally added to the elevation value corresponding to the elevation text in the selected datum elevation;

S504.按照在所述步骤S104中所设置的标高值小数点后需要保留有效数字的个数对计算得到的标高值进行有效取值,然后将对应数组项中标高文字的标高值修改为经取有效值后的数据。S504. According to the number of valid digits that need to be retained after the decimal point of the elevation value set in the step S104, the calculated elevation value is effectively taken, and then the elevation value of the elevation text in the corresponding array item is modified to be effective data after the value.

本发明的有益效果为:The beneficial effects of the present invention are:

(1)本发明创造提供了一种在AutoCAD工程图纸中可自动批量处理标高的新方法,即在立面图中创建标高时,可仍旧按平时的绘图习惯绘制标高线、标高符号和标高文字,并只需要标高线和标高文字满足特定的格式,对字体、标高符号没有任何限制,且不依赖于任何事先创建的属性块,由此不但可以自动地在AutoCAD工程图纸中批量处理标高,降低人为工作量,规避人工出错,避免复制乱码等问题,极大提高绘制标高的效率与准确性,便于实际推广和应用。(1) The invention provides a new method for automatic batch processing of elevations in AutoCAD engineering drawings, that is, when creating elevations in elevations, elevation lines, elevation symbols and elevation texts can still be drawn according to the usual drawing habits , and only require the elevation line and elevation text to meet a specific format, without any restrictions on fonts and elevation symbols, and do not depend on any pre-created attribute blocks, so that not only can automatically process elevations in AutoCAD engineering drawings in batches, reducing Human workload, avoiding manual errors, avoiding problems such as copying garbled characters, greatly improving the efficiency and accuracy of drawing elevations, and facilitating practical promotion and application.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明提供的在AutoCAD工程图纸中处理标高的方法流程图。Fig. 1 is a flow chart of the method for processing elevation in AutoCAD engineering drawings provided by the present invention.

图2是本发明提供的包含有标高线、标高符号和标高文字的第一种标高示例图。Fig. 2 is an example diagram of the first type of elevation including elevation lines, elevation symbols and elevation text provided by the present invention.

图3是本发明提供的包含有标高线、标高符号和标高文字的第二种标高示例图。Fig. 3 is an example diagram of the second type of elevation including elevation lines, elevation symbols and elevation text provided by the present invention.

图4是本发明提供的在AutoCAD工程图纸中创建了一个标高后的楼梯立面图。Fig. 4 is the stair elevation after creating a level in the AutoCAD engineering drawing provided by the present invention.

图5是本发明提供的在各标高位置处放置了若干标高后的楼梯立面图。Fig. 5 is an elevation view of the staircase provided by the present invention after several elevations are placed at each elevation position.

图6是本发明提供的选定标高值15.700M和22.500M作为基准标高的楼梯立面图。Fig. 6 is an elevation view of stairs with the selected elevation values 15.700M and 22.500M as reference elevations provided by the present invention.

图7是本发明提供的对所有非基准标高进行标高值计算和更新后的楼梯立面图。Fig. 7 is an elevation view of stairs after calculation and updating of elevation values for all non-reference elevations provided by the present invention.

具体实施方式Detailed ways

下面结合附图及具体实施例对本发明作进一步阐述。在此需要说明的是,对于这些实施例方式的说明用于帮助理解本发明,但并不构成对本发明的限定。本文公开的特定结构和功能细节仅用于描述本发明的示例实施例。然而,可用很多备选的形式来体现本发明,并且不应当理解为本发明限制在本文阐述的实施例中。The present invention will be further elaborated below in conjunction with the accompanying drawings and specific embodiments. It should be noted here that the descriptions of these embodiments are used to help understand the present invention, but are not intended to limit the present invention. Specific structural and functional details disclosed herein are for purposes of describing example embodiments of the invention only. However, the invention may be embodied in many alternative forms and should not be construed as limited to the embodiments set forth herein.

应当理解,尽管本文可以使用术语第一、第二等等来描述各种单元,这些单元不应当受到这些术语的限制。这些术语仅用于区分一个单元和另一个单元。例如可以将第一单元称作第二单元,并且类似地可以将第二单元称作第一单元,同时不脱离本发明的示例实施例的范围。It will be understood that, although the terms first, second etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one unit from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of example embodiments of the present invention.

应当理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,单独存在B,同时存在A和B三种情况,本文中术语“/和”是描述另一种关联对象关系,表示可以存在两种关系,例如,A/和B,可以表示:单独存在A,单独存在A和B两种情况,另外,本文中字符“/”,一般表示前后关联对象是一种“或”关系。It should be understood that the term "and/or" in this article is only an association relationship describing associated objects, indicating that there may be three relationships, for example, A and/or B may mean: A exists alone, B exists alone, and at the same time There are three situations of A and B. The term "/and" in this article describes another associated object relationship, which means that there can be two relationships, for example, A/ and B, which can mean: A exists alone, and A and B exist alone In both cases, in addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.

应当理解,当将单元称作与另一个单元“连接”、“相连”或“耦合”时,它可以与另一个单元直相连接或耦合,或中间单元可以存在。相対地,当将单元称作与另一个单元“直接相连”或“直接耦合”时,不存在中间单元。应当以类似方式来解释用于描述单元之间的关系的其他单词(例如,“在……之间”对“直接在……之间”,“相邻”对“直接相邻”等等)。It will be understood that when an element is referred to as being "connected," "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. In contrast, when an element is referred to as being "directly connected" or "directly coupled" to another element, there are no intervening elements present. Other words used to describe the relationship between elements should be interpreted in a similar fashion (e.g., "between" versus "directly between," "adjacent" versus "directly adjacent," etc.) .

本文使用的术语仅用于描述特定实施例,并不意在限制本发明的示例实施例。如本文所使用的,单数形式“一”、“一个”以及“该”意在包括复数形式,除非上下文明确指示相反意思。还应当理解术语“包括”、“包括了”、“包含”和/或“包含了”在本文中使用时,指定所声明的特征、整数、步骤、操作、单元和/或组件的存在性,并且不排除一个或多个其他特征、数量、步骤、操作、单元、组件和/或他们的组合存在性或增加。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include plural forms unless the context clearly dictates otherwise. It should also be understood that the terms "comprises", "comprises", "comprises" and/or "comprises" when used herein designate the existence of stated features, integers, steps, operations, elements and/or components, And it does not exclude the existence or addition of one or more other features, numbers, steps, operations, units, components and/or their combinations.

还应当注意到在一些备选实施例中,所出现的功能/动作可能与附图出现的顺序不同。例如,取决于所涉及的功能/动作,实际上可以实质上并发地执行,或者有时可以以相反的顺序来执行连续示出的两个图。It should also be noted that in some alternative implementations, the functions/acts may occur out of the order noted in the figures. For example, two figures shown in succession may, in fact, be executed substantially concurrently or may sometimes be executed in the reverse order, depending upon the functions/acts involved.

在下面的描述中提供了特定的细节,以便于对示例实施例的完全理解。然而,本领域普通技术人员应当理解可以在没有这些特定细节的情况下实现示例实施例。例如可以在框图中示出系统,以避免用不必要的细节来使得示例不清楚。在其他实例中,可以不以不必要的细节来示出众所周知的过程、结构和技术,以避免使得示例实施例不清楚。In the following description specific details are provided to facilitate a thorough understanding of example embodiments. However, it would be understood by those of ordinary skill in the art that example embodiments may be practiced without these specific details. For example, systems may be shown in block diagrams in order not to obscure the examples in unnecessary detail. In other instances, well-known procedures, structures and techniques may not be shown in unnecessary detail in order not to obscure the example embodiments.

实施例一Embodiment one

本实施例的目的是在某楼梯间的立面图中标注各层楼梯的标高。该楼梯间的立面图在AutoCAD模型空间的X-Y平面中绘制,沿楼梯的高度方向为Y方向,已知第一层、第二层和第三层框架梁的标高分别为15.7M、22.5M和28.5M。该立面图的绘图比例为1:100,即图纸中的1mm为实际的100mm,标高取3位有效数字。The purpose of this embodiment is to mark the elevation of each floor of the stairs in the elevation of a stairwell. The elevation of the stairwell is drawn in the X-Y plane of the AutoCAD model space, and the height direction along the stairs is the Y direction. It is known that the elevations of the frame beams on the first, second and third floors are 15.7M and 22.5M respectively and 28.5M. The drawing scale of the elevation is 1:100, that is, the 1mm in the drawing is the actual 100mm, and the elevation takes 3 valid figures.

如图1~7所示,本实施例提供的所述在AutoCAD工程图纸中处理标高的方法包括有如下步骤S101~S105。As shown in FIGS. 1 to 7 , the method for processing elevations in AutoCAD engineering drawings provided in this embodiment includes the following steps S101 to S105 .

S101.在AutoCAD工程图纸中创建若干标高,并将各个标高的标高线和标高文字设置为第一特定数据储存格式AA。S101. Create several elevations in the AutoCAD engineering drawing, and set the elevation line and elevation text of each elevation to the first specific data storage format AA.

如图2~3所示,所有的标高均由标高线、标高符号和标高文字组成,并在任何一个标高中,必须有且只有一个标高线和有且只有一个标高文字,其余归属于标高符号,同时标高线必须为水平线,即起点和终点的Y坐标必须相同。As shown in Figures 2 to 3, all elevations are composed of elevation lines, elevation symbols and elevation text, and in any elevation, there must be one and only one elevation line and one and only one elevation text, and the rest belong to elevation symbols , and the elevation line must be a horizontal line, that is, the Y coordinates of the starting point and the ending point must be the same.

在本实施例的步骤S101中,所述第一特定数据储存格式AA为具有第一特定颜色和特定名称的图层,即将标高线和标高文字放置到该特定的图层上,同时为了便于人工识别,还将该图层的颜色设为特定的颜色(即第一特定颜色):可使用AutoCAD的图层隔离命令Layiso检查是否有且仅有标高线和标高文字位于该特定的图层上,否则进行修改。在本实施例中,具体在AutoCAD中可按照如下方式具体设置所述第一特定数据储存格式AA:特定名称为“强力标高”的图层,该图层的第一特定颜色为代表符号为21号的颜色。在创建标高时,必须而且只须将标高线和标高文字放置于“强力标高”图层上,标高符号应放置到其它图层上。In step S101 of this embodiment, the first specific data storage format AA is a layer with a first specific color and a specific name, that is, the elevation line and elevation text are placed on the specific layer, and at the same time, for the convenience of manual Identify, and set the color of the layer to a specific color (ie the first specific color): you can use AutoCAD's layer isolation command Layiso to check whether there is and only the elevation line and elevation text are located on the specific layer, Otherwise modify it. In this embodiment, specifically, in AutoCAD, the first specific data storage format AA can be specifically set in the following manner: a layer with a specific name named "Powerful Elevation", and the first specific color of this layer is a representative symbol of 21 number color. When creating elevations, you must and only place elevation lines and elevation text on the "strong elevation" layer, and elevation symbols should be placed on other layers.

如图4所示,在楼梯立面图中创建第一个标高后,将标高线和标高文字放置“强力标高”图层上,该标高文字的内容(即标高值)可随意取一个数值,具体的标高值将在后续的步骤中自动计算并填写。然后如图5所示,将该标高复制到其它需要标高的地方。As shown in Figure 4, after creating the first level in the staircase elevation, place the level line and level text on the "strong level" layer, and the content of the level text (that is, the level value) can take a value at will, The specific elevation value will be automatically calculated and filled in the subsequent steps. Then, as shown in Figure 5, copy the elevation to other places that require elevation.

此外,若是处理已有图纸中的标高,必须而且只须将标高线及标高文字修改到“强力标高”图层上。进一步优化的,为实现快速修改,可创建一个配套插件,实现在当前图纸中自动创建特定颜色为21号颜色的“强力标高”图层,并将所选择的标高线和标高文字修改到“强力标高”图层上。In addition, if dealing with the elevation in the existing drawing, it is necessary and only necessary to modify the elevation line and elevation text to the "strong elevation" layer. Further optimization, in order to achieve quick modification, a supporting plug-in can be created to automatically create a "strong elevation" layer with a specific color of No. 21 in the current drawing, and modify the selected elevation line and elevation text to "strong Elevation" layer.

S102.针对标高值可输入确定且需要作为基准标高使用的标高,将其标高文字的数值修改为实际的已确定标高值,并将该标高文字和/或与该标高文字对应的标高线设置为第二特定数据储存格式。S102. For the elevation value, you can input the elevation that is determined and needs to be used as the reference elevation, modify the value of the elevation text to the actual determined elevation value, and set the elevation text and/or the elevation line corresponding to the elevation text to A second specific data storage format.

本实施例中的非基准标高,是指需要采用本发明予以计算其标高值的标高,而基准标高是指标高值已经确定了的标高,基准标高的个数显然是不少于一个。为了方便人工通过眼睛所见进行图纸检查,也为了便于人工操作,本实施例中所述第二特定数据储存格式为:针对已在S101中设置为第一特定数据存储格式的标高文字和/或标高线,修改其颜色为第二特定颜色,即第二特定数据存储格式与第一特定数据存储格式的区别仅仅在于颜色不同。在实际操作时,是将已设置为第一特定格式的标高的标高文字和/或标高线的颜色修改为第二特定颜色(仅修改颜色),修改后的第二特定颜色可举例为:5号蓝色。The non-reference elevation in this embodiment refers to the elevation whose elevation value needs to be calculated by using the present invention, and the reference elevation is the elevation whose index height value has been determined, and the number of reference elevations is obviously not less than one. In order to facilitate manual inspection of drawings through eyesight, and also to facilitate manual operation, the second specific data storage format described in this embodiment is: for the elevation text and/or that have been set as the first specific data storage format in S101 Change the color of the elevation line to the second specific color, that is, the difference between the second specific data storage format and the first specific data storage format is only the color. In actual operation, the color of the elevation text and/or elevation line that has been set as the first specific format is modified to the second specific color (only the color is modified). The modified second specific color can be exemplified as: 5 number blue.

本实施例中,已知三个楼层的标高分别为15.7M、22.5M和28.5M,其余楼梯板的标高需要计算求得,故可以只选择一个、任选两个或者将全部三个已知的标高作为基准标高。在设定为基准标高时,可以将相应的标高线修改为5号蓝色,也可以将相应的标高文字设为5号蓝色,也可以将标高线和对应的标高文字都设为5号蓝色。本实施例中,举例选择将第一层15.7M和第二层22.5M的对应标高设定为基准标高,具体操作是将对应15.7M和22.5M的标高线的颜色修改为5号蓝色(如图6所示)。因本实施例要求取小数点后3位有效数字,故将第一层和第二层标高的标高文字分别修改为15.700和22.500,使得在后续步骤S104中,可以读取这两个基准标高的标高值在小数点后有效数字的个数,作为所有计算得出的标高值的小数点后有效数字的个数。In this embodiment, the elevations of the three floors are known to be 15.7M, 22.5M, and 28.5M respectively, and the elevations of the rest of the stairs need to be calculated, so you can choose only one, choose two or all three known elevation as the base elevation. When setting as the reference level, you can change the corresponding level line to No. 5 blue, or set the corresponding level text to No. 5 blue, or set both the level line and the corresponding level text to No. 5 blue. In this embodiment, for example, the corresponding elevations of the first floor 15.7M and the second floor 22.5M are selected as the reference elevation, and the specific operation is to modify the color of the elevation lines corresponding to 15.7M and 22.5M to No. 5 blue ( As shown in Figure 6). Since this embodiment requires 3 significant figures after the decimal point, the elevation characters of the first floor and second floor elevations are respectively modified to 15.700 and 22.500, so that in the subsequent step S104, the elevations of these two reference elevations can be read The number of significant digits after the decimal point of the value, as the number of significant digits after the decimal point for all calculated elevation values.

本实施例中,因所述第一特定数据储存格式AA是指颜色为21号且名称为“强力标高”的图层,所述第二特定数据储存格式BB是指将已设为第一特定数据存储格式AA的标高文字或标高线修改为5号蓝色,故可利用AutoCAD自带的命令LAYISO图层隔离、LAYON图层开、LAYOFF图层关闭以及人工来检查是否有且只有标高线和标高文字位于“强力标高”图层上,以及检查图层的颜色、基准标高的标高线颜色、基准标高的标高文字颜色是否符合要求。In this embodiment, because the first specific data storage format AA refers to the layer whose color is No. 21 and the name is "Strong Elevation", the second specific data storage format BB refers to the layer that has been set as the first specific The elevation text or elevation line in the data storage format AA is changed to No. 5 blue, so you can use AutoCAD’s built-in commands LAYISO layer isolation, LAYON layer on, LAYOFF layer off, and manually check whether there is and only the elevation line and The level text is on the "strong level" layer, and check whether the color of the layer, the color of the level line of the base level, and the color of the level text of the base level meet the requirements.

S103.获取格式为所述第一特定数据储存格式AA或所述第二特定数据储存格式BB的所有标高线的Y坐标,并对所有标高线的Y坐标进行由小到大/由大到小的排序,同时获取格式为所述第一特定数据储存格式AA或所述第二特定数据储存格式BB的所有标高文字的Y坐标,并按照标高文字的Y坐标对所有标高文字进行由小到大/由大到小的排序,然后将排序后的标高线的Y坐标与排序后的标高文字一一对应地配对为数组NN,最后遍历所述数组NN,将标高线的Y坐标或标高文字来源为所述第二特定数据储存格式BB的数组项标记为基准标高。S103. Obtain the Y coordinates of all the elevation lines whose format is the first specific data storage format AA or the second specific data storage format BB, and perform the Y coordinates of all elevation lines from small to large/large to small At the same time, obtain the Y coordinates of all the elevation texts whose format is the first specific data storage format AA or the second specific data storage format BB, and perform all elevation texts from small to large according to the Y coordinates of the elevation texts /Sort from large to small, then pair the Y coordinates of the sorted elevation lines and the sorted elevation texts into an array NN one by one, and finally traverse the array NN, and put the Y coordinates of the elevation lines or the source of the elevation text The array entry for said second specific data storage format BB is labeled Base Level.

本实施例中,如图6所示,举例共有十三个标高,且以其中两个为基准标高(即对应15.7M和22.5M的标高)。在AutoCAD中框选需要处理标高的范围后,求得所有位于“强力标高”图层上且颜色为Bylayer或5号蓝色的线段(即标高线)和字符(即标高文字),然后找出每个线段的Y坐标,并将该Y坐标进行排序,优化的,若某个标高线的起点Y坐标与终点Y坐标不同,则予以提示并退出。同时找出每个字符的Y坐标,然后将字符按字符的Y坐标同样进行排序(其排序方式与线段的Y坐标排序方式一致,同为由小到大或由大到小的顺序),然后将排序后的线段的Y坐标与排序后的字符一一对应地配对为所述数组NN。In this embodiment, as shown in FIG. 6 , there are thirteen elevations in total, and two of them are taken as reference elevations (that is, the elevations corresponding to 15.7M and 22.5M). After selecting the range that needs to be processed in AutoCAD, find all the line segments (that is, elevation lines) and characters (that is, elevation text) that are located on the "strong elevation" layer and whose color is Bylayer or No. 5 blue, and then find out The Y coordinate of each line segment, and sort the Y coordinates. For optimization, if the starting Y coordinate of a certain elevation line is different from the ending Y coordinate, it will prompt and exit. Find the Y coordinate of each character at the same time, and then sort the characters according to the Y coordinate of the character (the sorting method is the same as the Y coordinate sorting method of the line segment, the same is the order from small to large or from large to small), and then The Y coordinates of the sorted line segments and the sorted characters are matched one by one to form the array NN.

因本实施例中的所述第二特定数据储存格式BB是指位于“强力标高”的图层且颜色为5号蓝色,故遍历所述数组NN,将线段的Y坐标或字符来源为该第二特定数据储存格式BB的数组项标记为基准标高。当基准标高的个数为零,即所述数组NN中没有标记为基准标高的数组项,应提示人工设置基准标高。Because the second specific data storage format BB in this embodiment refers to the layer located at the "strong elevation" and the color is No. 5 blue, so the array NN is traversed, and the Y coordinate or character source of the line segment is the The array items of the second specific data storage format BB are labeled as base level. When the number of the reference elevation is zero, that is, there is no array item marked as the reference elevation in the array NN, a prompt should be prompted to manually set the reference elevation.

S104.设置标高值小数点后需要保留有效数字的个数,以及设置比例系数。S104. Set the number of valid digits after the decimal point of the elevation value, and set the proportional coefficient.

在所述步骤S104中,设置标高值小数点后有效数字的个数的具体方式,可以是通过键盘输入,也可以是读取基准标高的小数点后有效数字的个数,本实施例选择读取基准标高的标高值在小数点后有效数字的个数。而当存在两个及以上的基准标高且各基准标高的标高值在小数点后有效数字的个数不相同时,可以提示该错误信息并退出,也可以人工选择其中一个基准标高并取得其小数位数,还可以读取所有基准标高中与标高线的最大/最小Y坐标对应的标高文字的小数位数。为了快速使用,减少人机输入的麻烦,本实施例中,当存在两个以上的基准标高时,默认是直接读取所有基准标高中与标高线的最小Y坐标对应的标高文字的小数位数。In said step S104, the specific way of setting the number of significant digits after the decimal point of the elevation value can be through keyboard input, or it can be to read the number of significant digits after the decimal point of the reference elevation, and the present embodiment selects the reading standard The number of valid digits after the decimal point for the elevation value of the elevation. And when there are two or more datum elevations and the number of significant digits after the decimal point is different for the elevation values of each datum elevation, you can prompt this error message and exit, or you can manually select one of the datum elevations and obtain its decimal places It can also read the decimal places of the elevation text corresponding to the maximum/minimum Y coordinate of the elevation line in all datum elevations. In order to use it quickly and reduce the trouble of man-machine input, in this embodiment, when there are more than two reference elevations, the default is to directly read the decimal places of the elevation text corresponding to the minimum Y coordinate of the elevation line in all reference elevations .

在AutoCAD中绘制工程图纸时,比例系数=两个基准标高的标高值差值/两个基准标高的标高线的Y坐标差值。因此可按照如下方式中的其中一种设置所述比例系数:(1)当有两个基准标高时,按照如下公式直接算得比例系数:比例系数=两基准标高的标高值的差值/两基准标高的标高线的Y坐标差值;(2)当只有一个基准标高而不能直接求得比例系数时,先读取预先标注尺寸的比例因子DIMLFAC(现有AutoCAD中的常用术语或设置参数),然后按照如下公式算得比例系数:比例系数=DIMLFAC*标注尺寸的单位/标高的单位。对于第二种,举例的,当标注尺寸的单位为mm、标高的单位为m时,比例系数=DIMLFAC/1000;而当标注尺寸的单位与标高的单位相同时,比例系数=DIMLFAC。另外优化的,当有三个及以上的基准标高时,先按照如下公式算得各对相邻两基准标高之间的比例系数:比例系数=两基准标高的标高值的差值/两基准标高的标高线的Y坐标差值,然后比较所有算得的比例系数是否一致,若不一致则予以提示并退出。When drawing engineering drawings in AutoCAD, the scale factor = the difference between the elevation values of the two reference elevations/the Y coordinate difference of the elevation lines of the two reference elevations. Therefore the proportional coefficient can be set according to one of the following modes: (1) when there are two benchmark elevations, the proportional coefficient can be directly calculated according to the following formula: proportional coefficient=the difference value/two benchmarks of the altitude values of the two benchmark elevations The Y coordinate difference of the elevation line of the elevation; (2) when there is only one datum elevation and can not directly obtain the scale factor, first read the scale factor DIMLFAC (commonly used term or setting parameter in the existing AutoCAD) of dimensioning in advance, Then calculate the scale factor according to the following formula: scale factor = DIMLFAC * dimension unit / elevation unit. For the second type, for example, when the unit of the dimension is mm and the unit of the elevation is m, the scale factor=DIMLFAC/1000; and when the unit of the dimension is the same as the unit of the elevation, the scale factor=DIMLFAC. In addition to optimization, when there are three or more reference elevations, first calculate the proportional coefficient between each pair of adjacent two reference elevations according to the following formula: proportional coefficient = the difference between the elevation values of the two reference elevations / the elevation of the two reference elevations The Y coordinate difference of the line, and then compare whether all the calculated proportional coefficients are consistent, and if they are inconsistent, give a prompt and exit.

为了快速使用,减少人机输入的麻烦,本实施例中,当仅有一个基准标高时,工程师可在图纸中至少标注一个尺寸且在框选需要处理的标高时,将该尺寸标注一并选择在内,以自动求得比例系数。另外,为减少人工输入的工作量以及出错的概率,工程师应尽量避免设定3个及以上的基准标高。In order to use it quickly and reduce the trouble of man-machine input, in this embodiment, when there is only one reference level, the engineer can mark at least one dimension in the drawing and select the dimension together when selecting the level that needs to be processed In order to automatically obtain the proportional coefficient. In addition, in order to reduce the workload of manual input and the probability of errors, engineers should try to avoid setting 3 or more benchmark elevations.

S105.根据所述基准标高和所述比例系数计算各个非基准标高的标高值,然后按照标高值小数点后需要保留有效数字的个数对计算得到的标高值进行有效取值,最后将各个经有效取值的标高值更新到对应的标高文字中。S105. Calculate the elevation value of each non-reference elevation according to the reference elevation and the proportional coefficient, and then perform an effective value calculation on the calculated elevation value according to the number of significant digits that need to be retained after the decimal point of the elevation value, and finally calculate each effective value The elevation value of the value is updated to the corresponding elevation text.

在所述步骤S105中,优化的,包括有如下步骤:S501.在所述数组中任意选定一个基准标高,获取该基准标高中标高线的Y坐标及相应标高文字中的标高值;S502.遍历所述数组中的每一个数组项,并判断是否已标记为基准标高,若是,则选择下一个数组项,继续判断是否已标记为基准标高,若否,则执行后续步骤S503~S504;S503.按照如下方式计算当前所选数组项中标高文字的标高值:使该数组项中标高线的Y坐标减去所选基准标高中标高线的Y坐标,然后乘以在所述步骤S104中所设置的比例系数,最后与所选基准标高中标高文字所对应的标高值相加;S504.按照在所述步骤S104中所设置的标高值小数点后需要保留有效数字的个数对计算得到的标高值进行有效取值,然后将对应数组项中标高文字的标高值修改为经取有效值后的数据。In the step S105, optimization includes the following steps: S501. Select a reference level arbitrarily in the array, and obtain the Y coordinate of the level line in the reference level and the level value in the corresponding level text; S502. Traversing through each array item in the array, and judging whether it has been marked as a reference elevation, if yes, then select the next array item, and continue to judge whether it has been marked as a reference elevation, if not, then perform subsequent steps S503-S504; S503 . Calculate the elevation value of the elevation text in the currently selected array item as follows: the Y coordinate of the elevation line in the array item is subtracted from the Y coordinate of the elevation line in the selected datum elevation, and then multiplied by the value obtained in step S104. The set proportional coefficient is finally added to the elevation value corresponding to the elevation text in the selected datum elevation; S504. According to the elevation value set in the step S104, the number of significant digits to be retained after the decimal point is calculated for the elevation The value is valid, and then the elevation value of the elevation text in the corresponding array item is modified to the data after the effective value is obtained.

本实施例中,由于有两个基准标高,分别对应15.700和22.500,因此只需要任意选择一个基准标高用于计算标高字符的标高值即可。此外,考虑到基准标高的值是事先确定的,可以不需要进行计算,故可设定步骤S502所述的判断条件,对于已标记为基准标高的数组项予以跳过。最后运行前述步骤S105,可最终计算得到如图7所示的所有标高,实现本发明目的。In this embodiment, since there are two reference elevations corresponding to 15.700 and 22.500 respectively, it is only necessary to arbitrarily select one reference elevation for calculating the elevation value of the elevation character. In addition, considering that the value of the reference elevation is determined in advance and may not need to be calculated, the judgment condition described in step S502 can be set to skip the array items marked as the reference elevation. Finally, by running the aforementioned step S105, all elevations as shown in FIG. 7 can be finally calculated to achieve the purpose of the present invention.

综上,采用本实施例所提供的在AutoCAD工程图纸中处理标高的方法,具有如下技术效果:In summary, adopting the method for processing elevations in AutoCAD engineering drawings provided by this embodiment has the following technical effects:

(1)本实施例提供了一种在AutoCAD工程图纸中可自动批量处理标高的新方法,即在立面图中创建标高时,可仍旧按平时的绘图习惯绘制标高线、标高符号和标高文字,并只需要标高线和标高文字满足特定的格式,对字体、标高符号没有任何限制,且不依赖于任何事先创建的属性块,由此不但可以自动地在AutoCAD工程图纸中批量处理标高,降低人为工作量,规避人工出错,避免复制乱码等问题,极大提高绘制标高的效率与准确性,便于实际推广和应用。(1) This embodiment provides a new method for automatic batch processing of elevations in AutoCAD engineering drawings, that is, when creating elevations in elevations, elevation lines, elevation symbols, and elevation texts can still be drawn according to the usual drawing habits , and only require the elevation line and elevation text to meet a specific format, without any restrictions on fonts and elevation symbols, and do not depend on any pre-created attribute blocks, so that not only can automatically process elevations in AutoCAD engineering drawings in batches, reducing Human workload, avoiding manual errors, avoiding problems such as copying garbled characters, greatly improving the efficiency and accuracy of drawing elevations, and facilitating practical promotion and application.

以上所描述的多个实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The multiple embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may Located in one place, or can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device execute the methods described in various embodiments or some parts of the embodiments.

以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换。而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be described in the foregoing embodiments Modifications to the technical solutions recorded, or equivalent replacements for some of the technical features. However, these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

最后应说明的是,本发明不局限于上述可选的实施方式,任何人在本发明的启示下都可得出其他各种形式的产品。上述具体实施方式不应理解成对本发明的保护范围的限制,本发明的保护范围应当以权利要求书中界定的为准,并且说明书可以用于解释权利要求书。Finally, it should be noted that the present invention is not limited to the above optional embodiments, and anyone can obtain other various forms of products under the enlightenment of the present invention. The above specific implementation methods should not be construed as limiting the protection scope of the present invention. The protection scope of the present invention should be defined in the claims, and the description can be used to interpret the claims.

Claims (7)

1.一种在AutoCAD工程图纸中处理标高的方法,其特征在于,包括如下步骤:1. A method for processing elevation in AutoCAD engineering drawing, is characterized in that, comprises the steps: S101.在AutoCAD工程图纸中创建若干标高,并将各个标高的标高线和标高文字设置为第一特定数据储存格式;S101. Create several levels in the AutoCAD engineering drawing, and set the level line and level text of each level as the first specific data storage format; S102.针对标高值可输入确定且需要作为基准标高使用的标高,将其标高文字的数值修改为实际的已确定标高值,并将该标高文字和/或与该标高文字对应的标高线设置为第二特定数据储存格式;S102. For the elevation value, you can input the elevation that is determined and needs to be used as the reference elevation, modify the value of the elevation text to the actual determined elevation value, and set the elevation text and/or the elevation line corresponding to the elevation text to a second specific data storage format; S103.获取格式为所述第一特定数据储存格式或所述第二特定数据储存格式的所有标高线的Y坐标,并对所有标高线的Y坐标进行由小到大/由大到小的排序,同时获取格式为所述第一特定数据储存格式或所述第二特定数据储存格式的所有标高文字的Y坐标,并按照标高文字的Y坐标对所有标高文字进行由小到大/由大到小的排序,然后将排序后的标高线的Y坐标与排序后的标高文字一一对应地配对为数组,最后遍历所述数组,将标高线的Y坐标或标高文字来源为所述第二特定数据储存格式的数组项标记为基准标高,以及在所述数组中没有标记为基准标高的数组项时,提示人工设置基准标高,其中,标高文字的排序方式与标高线的Y坐标排序方式一致,同为由小到大或由大到小的顺序;S103. Obtain the Y coordinates of all elevation lines whose format is the first specific data storage format or the second specific data storage format, and sort the Y coordinates of all elevation lines from small to large/large to small , and at the same time obtain the Y coordinates of all elevation texts whose format is the first specific data storage format or the second specific data storage format, and proceed from small to large/large to large according to the Y coordinates of the elevation text Small sorting, and then pair the Y coordinates of the sorted elevation lines with the sorted elevation text into an array, and finally traverse the array, and set the Y coordinates of the elevation lines or the source of the elevation text as the second specific The array item in the data storage format is marked as the base level, and when there is no array item marked as the base level in the array, it prompts to manually set the base level, wherein the sorting method of the level text is consistent with the Y coordinate sorting mode of the level line, The same order from small to large or from large to small; S104.设置标高值小数点后需要保留有效数字的个数,以及设置比例系数,其中,按照如下方式设置比例系数:当有两个基准标高时,按照如下公式直接算得比例系数:比例系数=两基准标高的标高值的差值/两基准标高的标高线的Y坐标差值;或者,当只有一个基准标高而不能直接求得比例系数时,先读取预先标注尺寸的比例因子DIMLFAC,然后按照如下公式算得比例系数:比例系数=DIMLFAC*标注尺寸的单位/标高的单位;S104. The number of significant figures needs to be reserved after the decimal point of the setting elevation value, and the proportional coefficient is set, wherein, the proportional coefficient is set in the following manner: when there are two benchmark elevations, the proportional coefficient is directly calculated according to the following formula: proportional coefficient=two benchmarks The difference of the elevation value of the elevation/the Y coordinate difference of the elevation line of the two reference elevations; or, when there is only one reference elevation and the proportional coefficient cannot be obtained directly, first read the pre-marked scale factor DIMLFAC, and then proceed as follows The proportional coefficient is calculated by the formula: proportional coefficient = DIMLFAC * dimension unit/elevation unit; S105.根据所述基准标高和所述比例系数计算各个非基准标高的标高值,然后按照标高值小数点后需要保留有效数字的个数对计算得到的标高值进行有效取值,最后将各个经有效取值的标高值更新到对应的标高文字中。S105. Calculate the elevation value of each non-reference elevation according to the reference elevation and the proportional coefficient, and then perform an effective value calculation on the calculated elevation value according to the number of significant digits that need to be retained after the decimal point of the elevation value, and finally calculate each effective value The elevation value of the value is updated to the corresponding elevation text. 2.如权利要求1所述的一种在AutoCAD工程图纸中处理标高的方法,其特征在于:在所述步骤S101中,所述第一特定数据储存格式为具有第一特定颜色和特定名称的图层。2. A method for processing elevations in AutoCAD engineering drawings as claimed in claim 1, characterized in that: in said step S101, said first specific data storage format is a file with a first specific color and a specific name layers. 3.如权利要求2所述的一种在AutoCAD工程图纸中处理标高的方法,其特征在于:在所述步骤S102中,所述第二特定数据储存格式为第二特定颜色,其中,所述第二特定颜色与所述第一特定颜色为不同的两种颜色。3. A method for processing elevations in AutoCAD engineering drawings as claimed in claim 2, characterized in that: in said step S102, said second specific data storage format is a second specific color, wherein said The second specific color is two different colors from the first specific color. 4.如权利要求1所述的一种在AutoCAD工程图纸中处理标高的方法,其特征在于:在所述步骤S103中,若某个标高线的起点Y坐标与终点Y坐标不同,则予以提示并退出。4. A method for processing elevation in AutoCAD engineering drawings as claimed in claim 1, characterized in that: in said step S103, if the Y coordinate of the starting point of a certain elevation line is different from the Y coordinate of the end point, a prompt is given and exit. 5.如权利要求1所述的一种在AutoCAD工程图纸中处理标高的方法,其特征在于,在所述步骤S104中,按照如下方式设置标高值小数点后需要保留有效数字的个数:5. a kind of method for processing elevation in AutoCAD engineering drawing as claimed in claim 1, is characterized in that, in described step S104, needs to keep the number of significant digits after the elevation value decimal point is set as follows: 读取基准标高的小数点后有效数字的个数;The number of valid digits after the decimal point for reading the reference elevation; 或者,当存在两个及以上的基准标高且各基准标高的标高值在小数点后有效数字的个数不相同时,读取所有基准标高中与标高线的最大/最小Y坐标对应的标高文字的小数位数。Or, when there are two or more datum elevations and the elevation values of each datum elevation have different numbers of significant digits after the decimal point, read the text of the elevation text corresponding to the maximum/minimum Y coordinate of the elevation line in all datum elevations number of decimal places. 6.如权利要求1所述的一种在AutoCAD工程图纸中处理标高的方法,其特征在于,在所述步骤S104中,当有三个及以上的基准标高时,先按照如下公式算得各对相邻两基准标高之间的比例系数:比例系数=两基准标高的标高值的差值/两基准标高的标高线的Y坐标差值,然后比较所有算得的比例系数是否一致,若不一致则予以提示并退出。6. A kind of method for processing elevation in AutoCAD engineering drawings as claimed in claim 1, is characterized in that, in described step S104, when there are three and above reference elevations, first calculate each relative relative elevation according to the following formula Proportional coefficient between two adjacent benchmark elevations: proportional coefficient = difference between the elevation values of the two benchmark elevations/Y coordinate difference of the elevation lines of the two benchmark elevations, then compare whether all the calculated proportional coefficients are consistent, and prompt if they are inconsistent and exit. 7.如权利要求1所述一种在AutoCAD工程图纸中处理标高的方法,其特征在于,在所述步骤S105中,包括有如下步骤:7. A kind of method for processing elevation in AutoCAD engineering drawing as claimed in claim 1, is characterized in that, in described step S105, comprises the following steps: S501.在所述数组中任意选定一个基准标高,获取该基准标高中标高线的Y坐标及相应标高文字中的标高值;S501. Select a reference level arbitrarily in the array, and obtain the Y coordinate of the elevation line in the reference level and the elevation value in the corresponding elevation text; S502.遍历所述数组中的每一个数组项,并判断是否已标记为基准标高,若是,则选择下一个数组项,继续判断是否已标记为基准标高,若否,则执行后续步骤S503~S504;S502. Traversing through each array item in the array, and judging whether it has been marked as a reference elevation, if yes, then select the next array item, and continue to judge whether it has been marked as a reference elevation, if not, then perform subsequent steps S503-S504 ; S503.按照如下方式计算当前所选数组项中标高文字的标高值:使该数组项中标高线的Y坐标减去所选基准标高中标高线的Y坐标,然后乘以在所述步骤S104中所设置的比例系数,最后与所选基准标高中标高文字所对应的标高值相加;S503. Calculate the elevation value of the elevation text in the currently selected array item as follows: the Y coordinate of the elevation line in the array item is subtracted from the Y coordinate of the elevation line in the selected datum elevation, and then multiplied by the value in step S104 The set scale factor is finally added to the elevation value corresponding to the elevation text in the selected datum elevation; S504.按照在所述步骤S104中所设置的标高值小数点后需要保留有效数字的个数对计算得到的标高值进行有效取值,然后将对应数组项中标高文字的标高值修改为经取有效值后的数据。S504. According to the number of valid digits that need to be retained after the decimal point of the elevation value set in the step S104, the calculated elevation value is effectively taken, and then the elevation value of the elevation text in the corresponding array item is modified to be effective data after the value.
CN201910224152.2A 2019-03-22 2019-03-22 A Method of Processing Elevation in AutoCAD Engineering Drawings Expired - Fee Related CN109992865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910224152.2A CN109992865B (en) 2019-03-22 2019-03-22 A Method of Processing Elevation in AutoCAD Engineering Drawings

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910224152.2A CN109992865B (en) 2019-03-22 2019-03-22 A Method of Processing Elevation in AutoCAD Engineering Drawings

Publications (2)

Publication Number Publication Date
CN109992865A CN109992865A (en) 2019-07-09
CN109992865B true CN109992865B (en) 2023-07-04

Family

ID=67130944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910224152.2A Expired - Fee Related CN109992865B (en) 2019-03-22 2019-03-22 A Method of Processing Elevation in AutoCAD Engineering Drawings

Country Status (1)

Country Link
CN (1) CN109992865B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507436B (en) * 2020-12-07 2021-09-28 杭州聚玻科技有限公司 Method for automatically measuring and calculating size of curtain wall glass
CN113111428B (en) * 2021-05-17 2022-11-29 贵州省交通规划勘察设计研究院股份有限公司 Method for marking elevation by optimizing elevation of retaining wall elevation graph
CN113674368B (en) * 2021-08-25 2023-12-15 中国电建集团河北省电力勘测设计研究院有限公司 Contour automatic coloring method based on AutoCAD

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968539A (en) * 2012-12-03 2013-03-13 北京金自天正智能控制股份有限公司 Method for massively and quickly generating format drawing
CN103162694A (en) * 2011-12-13 2013-06-19 爱信艾达株式会社 Data maintenance system, driving assistance system, altitude reliability determining program, and method
CN103678736A (en) * 2012-09-06 2014-03-26 上海市政工程设计研究总院(集团)有限公司 Automatic elevation value updating method in computer aided design
CN109033598A (en) * 2018-07-18 2018-12-18 于海涛 A method of the batch setting absolute altitude based on Revit
CN109359351A (en) * 2018-09-27 2019-02-19 济南市市政工程设计研究院(集团)有限责任公司 A kind of pipeline three-dimensional modeling method and pipe design method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103162694A (en) * 2011-12-13 2013-06-19 爱信艾达株式会社 Data maintenance system, driving assistance system, altitude reliability determining program, and method
CN103678736A (en) * 2012-09-06 2014-03-26 上海市政工程设计研究总院(集团)有限公司 Automatic elevation value updating method in computer aided design
CN102968539A (en) * 2012-12-03 2013-03-13 北京金自天正智能控制股份有限公司 Method for massively and quickly generating format drawing
CN109033598A (en) * 2018-07-18 2018-12-18 于海涛 A method of the batch setting absolute altitude based on Revit
CN109359351A (en) * 2018-09-27 2019-02-19 济南市市政工程设计研究院(集团)有限责任公司 A kind of pipeline three-dimensional modeling method and pipe design method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
在AUTO CAD环境下建筑标高的自动标注;雷光明;《西安建筑科技大学学报(自然科学版)》;20040108;第31卷(第2期);全文 *

Also Published As

Publication number Publication date
CN109992865A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN109992865B (en) A Method of Processing Elevation in AutoCAD Engineering Drawings
JP6645681B2 (en) 3D data management device
CN106294572B (en) A Rapid Generation Method of Elevation Map Based on AutoCAD Data Source and ArcGIS Tools
CN118012967A (en) Bridge geographic information data processing method and device
CN115510530B (en) A Method for Automatically Constructing Revit 3D Models from CAD Plan Drawings
CN102136218A (en) Automatic collocation method for map lettering during map making through computer
CN114283441B (en) Two-dimensional drawing recognition modeling method and device suitable for railway passenger stations
WO2024108580A1 (en) Multi-dimensional parameterized city information model construction method and system, and computer device
CN115510520A (en) Beam reinforcement view editing method, device and equipment and storage medium
CN115222873A (en) A batch association method of 3D property body graphs based on annotation and spatial semantics
CN106951633A (en) Industrial design service platform
CN107240150B (en) Three-dimensional pipeline digital drawing method
CN101650754A (en) System and method for marking dimension of dynamically previewable graphics
CN104281727A (en) Method for designing tire die on basis of Excel and CAD (computer aided design) platform
CN114444185B (en) In-situ marking recognition method, device and electronic equipment
CN110309553B (en) Drawing rapid drawing system and method based on standardized bridge universal gallery
TWI514180B (en) System and method for processing information of measurement numbers
CN115690379A (en) Digital design checking system and method based on structured rules
CN115146327A (en) CAD file auxiliary processing method and system for air-conditioning industry
JP6377743B2 (en) Method and apparatus for building an intermediate character library
CN116776436A (en) Building plan-oriented area data analysis method and device
CN101231633A (en) A typesetting method and device including nested frame objects
CN112307725B (en) Method for adding table information on two-dimensional drawing interface
CN101211382A (en) Method for automatically correcting circuit diagram frame
CN101414315A (en) System and method for reproducing mold design increment

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20230704