Polyline Length to File LISP

Polyline Length to File LISP

Anonymous
Not applicable
1,237 Views
4 Replies
Message 1 of 5

Polyline Length to File LISP

Anonymous
Not applicable

Hello everyone

 

I have a lisp from Lee Mac Programming for numbering polyline areas and extracting that data to a file. 

 

I seem to have trouble modifing it so that I can do the same but to get the length value and layer value of the polyine.

 

My idea is to get this as the end result:

Result.JPG

 

Just for information. I do know about the dataextraction but the problem is that I need them sorted in a spesific way  - By the way I select them and numbered so I can track back the information.

0 Likes
1,238 Views
4 Replies
Replies (4)
Message 2 of 5

devitg
Advisor
Advisor

Despite it can be make by lisp, DATAEXTRACTION has the way to sort data values as need.

 

Please upload both yours sample.dwg and related xls. and how do you want to sort it.

0 Likes
Message 3 of 5

Sea-Haven
Mentor
Mentor

Using lee's as a start

 

(setq h1 "Area Table"  ;; Heading
        t1 "Number"      ;; Number Title
        t2 "Area"        ;; Area Title

       t3 "Perimeter    " 

       t4 "Layer       "

 

Then obviously add to the table function.

 

The reason no code is I thought this would be better as a more global answer, what about t5 color ? So have a front end that allows choices rather than multiple versions.

 

screenshot164.png

 

The attached is a library file for the dcl.

Message 4 of 5

Anonymous
Not applicable

I made an example of the case I am looking for. 

I need something to tag my polylines with some sort of identifier (number or text) and extract my data values (Area, Perimeter and Layer)

 

I have attached the example. 

 

The Idea is if I have a problem with some of my data I can easily trace it back to the drawing. 

 

 

0 Likes
Message 5 of 5

dlanorh
Advisor
Advisor
If you use the entity handle you can do away with the numbering as the handle is unique and doesn't change unlike the entity name which changes every time the drawing is closed and re-opened.

You can find the entity name again using (handent saved_handle)

I am not one of the robots you're looking for

0 Likes