SlideShare a Scribd company logo
How to find area of earth works
between 2 lines in AutoCAD by using
Macro VBA
A : Find intersection point & makes
stripped area of Cut and Fill
1. Draw line as OGL in layer "OGL"

1
2. Draw line as Road template in layer “Road template"

2
3. Draw vertical line as Road center line in layer “CL"

3
4. Draw horizontal line as Datum line layer “Datum"

4
5. Draw text as Datum value in Layer “Datum-Txt"

5
6. Draw text as left & right of side slope in layer “Side slope"

6L

6R
7. Draw text as Station in layer “STA-Txt"

7
Completed Cross section
8. Load Macro, Menu Tools>Macro>Load Project>
Select “FindAreaBetween2Lines”
9. Run Macro, Menu Tools>Macro>Macro> (or Alt+F8)
Select “FindAreaBetween2Lines” then Run
10. Macro will find :a) the intersection at left and right side and draw the intersection line
b) the area of Cut and Fill between 2 lines and draw the polylines
B : Put areas to Quantity Table
11. Draw table as block reference in layer “Table"

11
12. Load Macro, Menu Tools>Macro>Load Project>
Select “FindAreatoTable”
13. Run Macro, Menu Tools>Macro>Macro> (or Alt+F8)
Select “FindAreatoTable” then Run
14. Macro will find :a) All cut area in this section and put in table as layer “aCut”
b) All Fill area in this section and put in table as layer “aFill”
C : Transfer data to Excel
15. Load Macro, Menu Tools>Macro>Load Project>
Select “FindAreatoExcel”

Note : Please open Microsoft Excel before run this macro
16. Run Macro, Menu Tools>Macro>Macro> (or Alt+F8)
Select “FindAreatoExcel” then Run
17. Select Sheet name to Transfer data to Excel
Default is “Sheet1” then Click Export to Excel
18. The data will transfer to Excel
You can do anything such as find the Volume of Earth works
19. You can do many Cross section in one drawing and run this
macro in one time…
Thanks for watching

More Related Content

PDF
18. scatterplot graphwindowtouchpad
PDF
Pivot table
DOCX
Alternative way of transferring
DOCX
การเชื่อมต่อตารางและพิกัดแผนที่
PPTX
GeoGebra data analysis
PPTX
Dashboard
PDF
15. prob simtwodicetouchpad
PPTX
Keyboard shortcuts in ms excel 5
18. scatterplot graphwindowtouchpad
Pivot table
Alternative way of transferring
การเชื่อมต่อตารางและพิกัดแผนที่
GeoGebra data analysis
Dashboard
15. prob simtwodicetouchpad
Keyboard shortcuts in ms excel 5

Recently uploaded (20)

PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Cell Types and Its function , kingdom of life
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
Presentation on HIE in infants and its manifestations
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Complications of Minimal Access Surgery at WLH
PPTX
master seminar digital applications in india
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Pharmacology of Heart Failure /Pharmacotherapy of CHF
2.FourierTransform-ShortQuestionswithAnswers.pdf
Computing-Curriculum for Schools in Ghana
Microbial disease of the cardiovascular and lymphatic systems
O7-L3 Supply Chain Operations - ICLT Program
Cell Types and Its function , kingdom of life
STATICS OF THE RIGID BODIES Hibbelers.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
Presentation on HIE in infants and its manifestations
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Final Presentation General Medicine 03-08-2024.pptx
Complications of Minimal Access Surgery at WLH
master seminar digital applications in india
Abdominal Access Techniques with Prof. Dr. R K Mishra
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
FourierSeries-QuestionsWithAnswers(Part-A).pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Ad
Ad

How to find area of earth works between to lines in autocad

  • 1. How to find area of earth works between 2 lines in AutoCAD by using Macro VBA
  • 2. A : Find intersection point & makes stripped area of Cut and Fill
  • 3. 1. Draw line as OGL in layer "OGL" 1
  • 4. 2. Draw line as Road template in layer “Road template" 2
  • 5. 3. Draw vertical line as Road center line in layer “CL" 3
  • 6. 4. Draw horizontal line as Datum line layer “Datum" 4
  • 7. 5. Draw text as Datum value in Layer “Datum-Txt" 5
  • 8. 6. Draw text as left & right of side slope in layer “Side slope" 6L 6R
  • 9. 7. Draw text as Station in layer “STA-Txt" 7
  • 11. 8. Load Macro, Menu Tools>Macro>Load Project> Select “FindAreaBetween2Lines”
  • 12. 9. Run Macro, Menu Tools>Macro>Macro> (or Alt+F8) Select “FindAreaBetween2Lines” then Run
  • 13. 10. Macro will find :a) the intersection at left and right side and draw the intersection line b) the area of Cut and Fill between 2 lines and draw the polylines
  • 14. B : Put areas to Quantity Table
  • 15. 11. Draw table as block reference in layer “Table" 11
  • 16. 12. Load Macro, Menu Tools>Macro>Load Project> Select “FindAreatoTable”
  • 17. 13. Run Macro, Menu Tools>Macro>Macro> (or Alt+F8) Select “FindAreatoTable” then Run
  • 18. 14. Macro will find :a) All cut area in this section and put in table as layer “aCut” b) All Fill area in this section and put in table as layer “aFill”
  • 19. C : Transfer data to Excel
  • 20. 15. Load Macro, Menu Tools>Macro>Load Project> Select “FindAreatoExcel” Note : Please open Microsoft Excel before run this macro
  • 21. 16. Run Macro, Menu Tools>Macro>Macro> (or Alt+F8) Select “FindAreatoExcel” then Run
  • 22. 17. Select Sheet name to Transfer data to Excel Default is “Sheet1” then Click Export to Excel
  • 23. 18. The data will transfer to Excel You can do anything such as find the Volume of Earth works
  • 24. 19. You can do many Cross section in one drawing and run this macro in one time…