Jump to content

export polyline length to excel


pmadhwal7

Recommended Posts

  • Replies 26
  • Created
  • Last Reply

Top Posters In This Topic

  • pmadhwal7

    13

  • Tsuky

    8

  • devitg

    3

  • BIGAL

    3

Top Posters In This Topic

Posted Images

On 3/3/2024 at 8:46 AM, Tsuky said:

@pmadhwal7

Please, give me the drawing exemple for help me to identifie the bug, if I can...

Actually not any particular file but facing in every file, file attached please check 

LENGTH.dwg

Link to comment
Share on other sites

@pmadhwal7

Here's an improved version that should work better.
But before using it, an overlap inconsistency between 2 polylines exists in your drawing that you must correct.
To help you locate them, copy/paste these two lines successively and make the desired correction.

(redraw (handent "2FD") 3)
(redraw (handent "2FE") 3)


On the other hand I noticed many duplicate vertices on many polylines especially at the start and/or at the end, this does not pose a problem for the program provided but for other actions it could pose problems... Forewarned is forearmed!

length2excel.lsp

Link to comment
Share on other sites

19 hours ago, Tsuky said:

@pmadhwal7

Here's an improved version that should work better.
But before using it, an overlap inconsistency between 2 polylines exists in your drawing that you must correct.
To help you locate them, copy/paste these two lines successively and make the desired correction.

(redraw (handent "2FD") 3)
(redraw (handent "2FE") 3)


On the other hand I noticed many duplicate vertices on many polylines especially at the start and/or at the end, this does not pose a problem for the program provided but for other actions it could pose problems... Forewarned is forearmed!

length2excel.lsp 2.83 kB · 3 downloads

thanks for help i was tried the given code but it was export only first line length

Link to comment
Share on other sites

Depending on the reference point you choose on the base polyline ("Designate an end point of the base polyline:"), the result will be different.

This determines the direction for the search.
So try with the other opposite point.

 

NB: Bad translation : Designate an end point of the base polyline: -> Designate an start point of the base polyline:

Link to comment
Share on other sites

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