25
How to find area of earth works between 2 lines in AutoCAD by using Macro VBA

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

Embed Size (px)

Citation preview

Page 1: How to find area of earth works between to lines in autocad

How to find area of earth works between 2 lines in AutoCAD by

using Macro VBA

Page 2: How to find area of earth works between to lines in autocad

A : Find intersection point & makes stripped area of Cut and Fill

Page 3: How to find area of earth works between to lines in autocad

1. Draw line as OGL in layer "OGL"

1

Page 4: How to find area of earth works between to lines in autocad

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

2

Page 5: How to find area of earth works between to lines in autocad

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

3

Page 6: How to find area of earth works between to lines in autocad

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

4

Page 7: How to find area of earth works between to lines in autocad

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

5

Page 8: How to find area of earth works between to lines in autocad

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

6L 6R

Page 9: How to find area of earth works between to lines in autocad

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

7

Page 10: How to find area of earth works between to lines in autocad

Completed Cross section

Page 11: How to find area of earth works between to lines in autocad

8. Load Macro, Menu Tools>Macro>Load Project>Select “FindAreaBetween2Lines”

Page 12: How to find area of earth works between to lines in autocad

9. Run Macro, Menu Tools>Macro>Macro> (or Alt+F8)Select “FindAreaBetween2Lines” then Run

Page 13: How to find area of earth works between to lines in autocad

10. Macro will find :-a) the intersection at left and right side and draw the intersection lineb) the area of Cut and Fill between 2 lines and draw the polylines

Page 14: How to find area of earth works between to lines in autocad

B : Put areas to Quantity Table

Page 15: How to find area of earth works between to lines in autocad

11. Draw table as block reference in layer “Table"

11

Page 16: How to find area of earth works between to lines in autocad

12. Load Macro, Menu Tools>Macro>Load Project>Select “FindAreatoTable”

Page 17: How to find area of earth works between to lines in autocad

13. Run Macro, Menu Tools>Macro>Macro> (or Alt+F8)Select “FindAreatoTable” then Run

Page 18: How to find area of earth works between to lines in autocad

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”

Page 19: How to find area of earth works between to lines in autocad

C : Transfer data to Excel

Page 20: How to find area of earth works between to lines in autocad

15. Load Macro, Menu Tools>Macro>Load Project>Select “FindAreatoExcel”

Note : Please open Microsoft Excel before run this macro

Page 21: How to find area of earth works between to lines in autocad

16. Run Macro, Menu Tools>Macro>Macro> (or Alt+F8)Select “FindAreatoExcel” then Run

Page 22: How to find area of earth works between to lines in autocad

17. Select Sheet name to Transfer data to ExcelDefault is “Sheet1” then Click Export to Excel

Page 23: How to find area of earth works between to lines in autocad

18. The data will transfer to ExcelYou can do anything such as find the Volume of Earth works

Page 24: How to find area of earth works between to lines in autocad

19. You can do many Cross section in one drawing and run this macro in one time…

Page 25: How to find area of earth works between to lines in autocad

Thanks for watching