Jump to content

Recommended Posts

Posted

I am looking for a lisp routine to list the length of a line or a polyline to ascii.

 

thanks in advance

Posted

Should be something around here to meet yours needs. Listing line lengths has been a favorite request. Have you tried a search yet?

 

Just a suggestion. In the future it might helpful if your thread title was a bit more descriptive of the problem you wish help with. Thanks mate.

Posted

Well Lt Dan,

 

When listing a line the text window lists all the properties of the line and I only want the length of the line. there are many lines that need their extraction of their lengh. Hence the request of length to ascii.

Posted

I hope this will work for u

 

 
(setq obj (car(entsel)))
(setq vlobj (vlax-ename->vla-object obj))
(setq ln (vlax-get-property vlobj 'length))

Posted

(defun AT:Length (ent)
 ;; Return length of curve
 ;; Alan J. Thompson, 08.06.09
 (vlax-curve-getDistAtParam ent (vlax-curve-getEndParam ent))
)

 

 

Returns the length of any curve.

Posted

Well not quite I am looking to list a number of lines in Autocad and list them by their lengths to an ascii file.

Posted

The Lisp program LST will put -among other information- the length of the lines found in the drawing in a text file.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...