Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 3
Anonymous
8107 Views, 2 Replies

TLEN.LSP

Is it possible to extract the total length or area of a number of different
lines, polylines, arcs, etc. on each layer.

Something like a distance-command - just that it measures the total length
or area
of a collection of lines or shapes?
for example to know the total lineal meters of wood base on a house, or the
total floor´s area. I all ready use the TLEN.LSP, but I want to select a
group of layers and have the total length or area of each layer, and if its
posible to make a copy paste to excel or better, have a link so when I
change the lines of a drawing the excel sheet change automaticly
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Simple answer, Yes.

It's a matter of how you put it together and how you want it to function.
Either you can start from scratch or start looking at some of the customer
files and websites that have free routines and somewhere along the line I
imagine you could paste together a routine to suite your needs.

"Antonio Salazar" wrote in message
news:38D5B50EFFB78B646570A6C81608C0DD@in.WebX.maYIadrTaRb...
> Is it possible to extract the total length or area of a number of
different
> lines, polylines, arcs, etc. on each layer.
>
> Something like a distance-command - just that it measures the total length
> or area
> of a collection of lines or shapes?
> for example to know the total lineal meters of wood base on a house, or
the
> total floor´s area. I all ready use the TLEN.LSP, but I want to select a
> group of layers and have the total length or area of each layer, and if
its
> posible to make a copy paste to excel or better, have a link so when I
> change the lines of a drawing the excel sheet change automaticly
>
>
Message 3 of 3
Anonymous
in reply to: Anonymous

It's all in how you filter your selection set.
(ssget "x" '((0 . "POLYLINE,LWPOLYLINE")(8 . "MYLAYER,YOURLAYER")))
for example, will find all Polylines and LWPolylines on layers MYLAYER and
YOURLAYER).

Or, you could prompt the user for the layer name(s) and use the construct
(setq LayName (getstring "\nLayer Name: ")
ss (ssget "x" (list '(0 . "POLYLINE,LWPOLYLINE")(cons 8 LayName)))
)
___

"Antonio Salazar" wrote in message
news:38D5B50EFFB78B646570A6C81608C0DD@in.WebX.maYIadrTaRb...
> Is it possible to extract the total length or area of a number of
different
> lines, polylines, arcs, etc. on each layer.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost