Skip to content

Use python and vba to compute setting-out of horizontal alignment and vertical alignment to crosscheck shop drawing.

License

Notifications You must be signed in to change notification settings

suben-mk/Setting-Out-Alignment-for-Tunnel-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Setting-Out Alignment

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

Alignment Type and Scheme

Curve Elements - Copy Layout1 (2)

Sample Setting-Out Drawing

Hor-SO

Ver-SO

Workflow

Python

Python libraries : Numpy, Pandas

  1. เตรียมข้อมูล Point of Intersection (PI) ตาม Format Import Setting-Out Alignment Data

  2. ตั้งไฟล์ Path และจุดเริ่มต้น (Beginning Point) ของ Alignmet

    Horizontal_Alignment_Rev04.py

    # 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]

    Vertical_Alignment_Rev04.py

    # Path files
    Import_data_path = "Import Setting-Out Alignment Data.xlsx"
    Export_data_path = "Export Ver-Alignment.xlsx"
  3. รันไฟล์ Python

VBA

  1. เปิดไฟล์ VBA - Setting Out Alignment Program Rev.09.xlsm
  2. เตรียมข้อมูล Point of Intersection (PI) ที่ HIP DATA Sheet และ VIP DATA Seet

hor

ver

  1. รันโค้ดโดยการ คลิ๊กปุ่มสีน้ำเงิน Compute! Horizontal Alignment ที่ HIP DATA Sheet และ คลิ๊กปุ่มสีน้ำเงิน Compute! Vertical Alignment ที่ VIP DATA Sheet

Output

Python

Export Hor-Alignment.xlsx
Export Ver-Alignment.xlsx

VBA

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

About

Use python and vba to compute setting-out of horizontal alignment and vertical alignment to crosscheck shop drawing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published