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

Preview:

Citation preview

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 lineb) 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 ExcelDefault is “Sheet1” then Click Export to Excel

18. The data will transfer to ExcelYou 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

Recommended