Jump to content

Recommended Posts

Posted

Hi All,

Is there any lisp code to identify the smallest line and label its length from the selected lines.

if you have come across any such code please let me know

Thanks in advance.

Posted
5 hours ago, symoin said:

Hi All,

Is there any lisp code to identify the smallest line and label its length from the selected lines.

if you have come across any such code please let me know

Thanks in advance.

 

Are you refering to just "LINE" lines or does this include arcs, circles, ellipses, lwpolylines, splines etc?

 

 

Posted

Like dlanorh just select objects and get the length and save object entity name in a varible if less than. 

 

*lines & arc  vla-get-length

Circle vla-get-circumference

 

 

Posted
10 hours ago, dlanorh said:

 

Are you refering to just "LINE" lines or does this include arcs, circles, ellipses, lwpolylines, splines etc?

 

 

Mostly it will be lines and some times it will have lwpolylines along with the lines.

Posted

Hi devitg no need for acdoc code

 

  (SETQ LENGTH+HANDLE-LIST ())
  (repeat (setq x (sslength lines-ss))
  (setq  LINE-OBJ  (vlax-ename->vla-object (ssname LINES-SS (setq x (- x 1)))))

 

 

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...