Setting-Out Alignment คือตำแหน่งจุดทางเรขาคณิตของแนวอุโมงค์ (Geometry Points of Alignment) ตามตัวอย่างรูป Alignment Type and Scheme วิศวกรสำรวจอุโมงค์จะต้องคำนวณตรวบสอบแบบแนวอุโมงค์ (Tunnel Alignment Drawing) ก่อนที่จะนำไปใช้ในงานสำรวจ
ผู้เขียนได้เขียนโค้ดการคำนวณตำแหน่งจุดทางเรขาคณิตของแนวอุโมงค์ทางราบ (Geometry Points of Horizontal Alignment) ผลลัพธ์ที่ได้ระยะ Chainage และพิกัด 2 มิติ (2D-Coordinate) ของ PC, PT, TS, SC, CS, ST และตำแหน่งจุดทางเรขาคณิตของแนวอุโมงค์ทางดิ่ง (Geometry Points of Vertical Alignment) ผลลัพธ์ที่ได้ระยะ Chainage และค่าระดับ (Elevation) ของ PVC, PVT
ผู้เขียนได้ขียนโค้ดสำหรับการคำนวณ Setting-Out Alignment ไว้ 2 ภาษา คือภาษา Python และภาษา VBA Excel
Python libraries : Numpy, Pandas
-
เตรียมข้อมูล Point of Intersection (PI) ตาม Format Import Setting-Out Alignment Data
-
ตั้งไฟล์ Path และจุดเริ่มต้น (Beginning Point) ของ Alignmet
# Path files Import_data_path = "Import Setting-Out Alignment Data.xlsx" Export_data_path = "Export Hor-Alignment.xlsx" # Input beginning point as list[Chainage, Easting, Northing] BEGIN_POINT = [7202.834, 662670.304, 1521355.848]
# Path files Import_data_path = "Import Setting-Out Alignment Data.xlsx" Export_data_path = "Export Ver-Alignment.xlsx"
-
รันไฟล์ Python
- เปิดไฟล์ VBA - Setting Out Alignment Program Rev.09.xlsm
- เตรียมข้อมูล Point of Intersection (PI) ที่ HIP DATA Sheet และ VIP DATA Seet
- รันโค้ดโดยการ คลิ๊กปุ่มสีน้ำเงิน Compute! Horizontal Alignment ที่ HIP DATA Sheet และ คลิ๊กปุ่มสีน้ำเงิน Compute! Vertical Alignment ที่ VIP DATA Sheet
Export Hor-Alignment.xlsx
Export Ver-Alignment.xlsx
VBA - Setting Out Alignment Program Rev.09.xlsm
- Horizontal Alignment ที่ HOR-SETTING OUT sheet และ HOR-ARRAY sheet
- Vertical Alignment ที่ VER-SETTING OUT sheet และ VER-ARRAY sheet




