Export rectangle polyline sizes

Export rectangle polyline sizes

carl.coghill
Advocate Advocate
3,002 Views
6 Replies
Message 1 of 7

Export rectangle polyline sizes

carl.coghill
Advocate
Advocate

I need to get the size and quantity of the rectangle polylines contained on the "Decking" layer within the attached drawing. Ideally as an excel export.

 

I have tried DATAEXTRACT, the best that I can get from this is the total length of the polylines. The length and width of the rectangle both vary, therefore I cannot calculate size from the polyline length.

 

Also, the information I require is contained within TXT although over multiple entities. An alternative solution would be to export this information to excel.

 

Can anyone help?

 

 

AutoCAD 2016

Windows 7 Professional 64bit

Carl Coghill
Senior Designer
AutoCAD 2018
Windows 7 Professional 64bit
LinkedIn
0 Likes
Accepted solutions (1)
3,003 Views
6 Replies
Replies (6)
Message 2 of 7

carl.coghill
Advocate
Advocate

I have also tried the DATAEXTRACTION command on the TXT objects. I then get the tabled TXT as a list - not really useful.

Carl Coghill
Senior Designer
AutoCAD 2018
Windows 7 Professional 64bit
LinkedIn
0 Likes
Message 3 of 7

Slawomir_
Advisor
Advisor

You should be able to select 'Area' property during step 4 of 8 Data Extraction. See attached image. Polylines doesn't need to be closed.

0 Likes
Message 4 of 7

carl.coghill
Advocate
Advocate

Leon,

 

It is the lenght and width that I am looking for, not area.

 

Thanks

Carl Coghill
Senior Designer
AutoCAD 2018
Windows 7 Professional 64bit
LinkedIn
0 Likes
Message 5 of 7

Patchy
Mentor
Mentor

I don't know if this will help any.

 

 

Message 6 of 7

carl.coghill
Advocate
Advocate

Patchy,

 

I have had a quick look, it appears to be what I am after.

 

How did you get the information?

Carl Coghill
Senior Designer
AutoCAD 2018
Windows 7 Professional 64bit
LinkedIn
0 Likes
Message 7 of 7

Patchy
Mentor
Mentor
Accepted solution

I use the autolisp to label the rectangles then Dataextraction to get the Text only in excel format.

 

Here is the link for the autolisp:

http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/length-and-width-of-rectangle-as-text...

 

Capture.JPG