Jump to content

Highlight straight polylines


Nikon

Recommended Posts

Posted (edited)
On 16.05.2024 at 02:28, Tsuky said:
(defun c: NTT ( / ss AcDoc Space len lap n ename obj dxf_10 p1 p2 p_mid brk1 brk2 lst_brk
 dxf_obj dxf_43 dxf_38 dxf_39 dxf_10 dxf_40 dxf_41 dxf_42 dxf_39 dxf_210 lst_tmp where count ltmp e_last nw_pt)
 (princ "\nSelect polyline")

@Tsuky This is a very good code!

Unfortunately, it does not highlight straight polylines, is it possible to add straight polylines (and lines) to the selection?

Edited by Nikon
Link to comment
Share on other sites

Posted (edited)
On 15.05.2024 at 07:41, vandehuy said:

Cut pline-NTT.VLX

This code does what needs, but it gives a message:
Unknown "UNDO" command

Edited by Nikon
Link to comment
Share on other sites

@Nikon

Thank you!

According to your images, I think I have answered your request although I am not in the trade (if I understood correctly it concerns steels and I know nothing about it).
So this accepts polylines with 4 or 2 vertices, as well as lines and the dimensions follow the direction of creation of the entities.

 

For the VLX, we can't do anything because it is compiled. Only the creator who owns the sources can correct it.

ntt(bis).lsp

  • Like 1
Link to comment
Share on other sites

Posted (edited)
On 17.05.2024 at 01:59, Tsuky said:

So this accepts polylines with 4 or 2 vertices, as well as lines and the dimensions follow the direction of creation of the entities.

For the VLX, we can't do anything because it is compiled. Only the creator who owns the sources can correct it.

Yes, this applies to the layout of reinforcing steel, taking into account the length and overlap.
@Tsuky Thanks

Edited by Nikon
Link to comment
Share on other sites

Immediately you can rerun the command several times by selecting the previous polylines/lines. Only segments of sufficient length will be processed.

I will see if I can complete the code to avoid this manipulation.

  • Like 1
Link to comment
Share on other sites

1 hour ago, Tsuky said:

I will see if I can complete the code to avoid this manipulation.

@Tsuky Thank you, that would be good!

Link to comment
Share on other sites

On 5/17/2024 at 12:44 PM, Nikon said:

@Tsuky Thank you, that would be good!

@Nikon

You can try this, but there may still be bugs.
I'm not guaranteeing anything, but with my brief testing, it looks good.

ntt(bis).lsp

  • Like 1
Link to comment
Share on other sites

10 hours ago, Tsuky said:

ou can try this, but there may still be bugs.
I'm not guaranteeing anything, but with my brief testing, it looks good.

@Tsuky This code does the job perfectly! Thank you very much!

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