线性分布下岩土工程勘察钻孔编号算法的设计与实现

2021-12-24 12:47:26张阔
电脑知识与技术 2021年29期
关键词:二次开发

张阔

摘要:岩土工程勘察报告的平面图绘制工作是工程地质勘察过程中的主要任务之一,而传统的自动编号程序存在针对线性分布的钻孔无法使编号顺序与路径走向一致的问题。将钻孔和有向路径分别抽象为平面空间中的点和有向线段集合,定义了三种距离参数用于定量描述平面空间中的点与线段的相对位置关系,并提出了一种坐标点编号算法,能使沿有向路径分布的坐标点的编号顺序与路径方向一致。最后以某输水管线工程为例,使用基于AutoCAD二次开发的自编程序介绍该算法的实际应用,结果表明该算法能显著提高岩土工程勘察报告平面图绘制的工作效率。

关键词:岩土工程勘察;排序算法;自动编号;数字制图;二次开发

中图分类号:TB115  文献标识码:A

文章编号:1009-3044(2021)29-0020-04

A New Algorithm for Borehole Numbering of Geotechnical Investigation under Path Distribution

ZHANG Kuo

(Sichuan Chuanjian Geotechnical Survey Design Institute, Chengdu 610000, China)

Abstract: the geotechnical investigation plan drawing is one of the main tasks in the process of engineering geological investigation. The traditional automatic numbering program realizes the automatic numbering of boreholes by comparing the XY coordinate values, but for the boreholes distributed along a certain directional path, the numbering sequence cannot be consistent with the path direction. In this paper, borehole and directed path are abstracted as a set of points and directed line segments in plane space respectively, three distance parameters are defined to quantitatively describe the relative position relationship between points and line segments in plane space, and a coordinate point numbering algorithm is proposed, which can make the numbering sequence of coordinate points distributed along directed path consistent with the path direction. Finally, taking a water transmission pipeline project as an example, the practical application of the algorithm is introduced by using the self-made program based on the secondary development of AutoCAD. The results show that the algorithm can significantly improve the efficiency of drawing the geotechnical investigation plan.

Key words: Geotechnical investigation; Sorting algorithm; Automatic numbering; Digital mapping; Secondary development

1引言

随着扫描和数字化成图系统的发展,计算机制图在当前工程地质内业整理工作中广泛应用,而且全电脑成图已成为当前要发展趋势[1-2]。其中对点状单元自动编号的工程需求比较普遍,目前岩土工程中的计算机自动编号技术在工程桩号的编制中应用较多,但大多直接按照桩芯坐标XY值排序[3-4],在岩土工程勘察的平面图绘制工作中,虽然自动编号技术未见有文献报道应用,但就工程界的实际应用中,大多数技术员利用自编程序对勘察钻孔编号时仍是采用此原理,近年来已有文献[5]提到对线状建筑物自动生成桩号的研究,但要求点状单元必须在线段上。……

登录APP查看全文

猜你喜欢
二次开发
浅谈基于Revit平台的二次开发
甘肃科技(2020年20期)2020-04-13 00:30:02
西门子Operate高级编程的旋转坐标系二次开发
浅谈Mastercam后处理器的二次开发
模具制造(2019年3期)2019-06-06 02:11:02
基于C#的AutoCAD建筑构件库二次开发
江西建材(2018年2期)2018-04-14 08:01:14
西门子Easy Screen对倒棱机床界面二次开发
基于全站仪二次开发的覆冰厚度测量与实现
电测与仪表(2016年9期)2016-04-12 00:29:52
Micaps3.2 版本二次开发入门浅析
西藏科技(2015年12期)2015-09-26 12:13:51
基于VB的ANSYS二次开发在变压器抗短路性能分析中的应用
基于CATIA的橡皮囊成形毛料展开的二次开发
机械工程师(2015年9期)2015-02-26 08:38:10
ANSYS Workbench二次开发在汽车稳定杆CAE分析中的应用
汽车零部件(2014年5期)2014-11-11 12:24:32