Polygon Area Export to Excel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am new to writing programs for AutoCAD and would like to create a lisp that exports areas of polygons with their name and quantities into an excel document.
Essentially, I am trying to calculate the area within the white outline and export it to excel. For the area data to be of use, I will need the first line(Part ID) and the last line(Quantity) of the yellow text to be exported with each of the areas. For example, the picture attached has an ID of P2 and a quantity of 3.
This program would be used on dwg files that contain a hundred polygons on average which are very similar to the one shown above, but often their shapes are irregular.
Note that the white outline is on the layer named "Cut" and the yellow single line text is on the layer "TEXT".
I attached the dwg for reference.
Can this be done with a lisp? If so, how should I go about this?
Thank you,
Tim