Author Topic: xdrx-curve-join  (Read 1106 times)

0 Members and 1 Guest are viewing this topic.

domenicomaria

  • Swamp Rat
  • Posts: 720
xdrx-curve-join
« on: November 23, 2023, 12:47:30 PM »
(defun C:J ()   (setq ss (ssget) ) (xdrx-curve-join ss) )

xdcad

  • Bull Frog
  • Posts: 424
Re: xdrx-curve-join
« Reply #1 on: November 25, 2023, 12:28:58 PM »

I haven't had any problems here
Upload the DWG in question and let me take a look.
The code I wrote uses XDRX-API,which can be downloaded from github.com and is updated at any time.
===================================
[XDrx-Sub Forum]
https://www.theswamp.org/index.php?board=78.0
https://github.com/xdcad/XDrx-API
http://bbs.xdcad.net

domenicomaria

  • Swamp Rat
  • Posts: 720
Re: xdrx-curve-join
« Reply #2 on: November 25, 2023, 01:39:15 PM »
The first time it works well.

After, you have to explode it,
and join it again using
(defun C:J ()   (setq ss (ssget) ) (xdrx-curve-join ss) )

The dwg is exactly the same.
No need to upload it again.




xdcad

  • Bull Frog
  • Posts: 424
Re: xdrx-curve-join
« Reply #3 on: November 25, 2023, 02:28:16 PM »
The first time it works well.

After, you have to explode it,
and join it again using
(defun C:J ()   (setq ss (ssget) ) (xdrx-curve-join ss) )

The dwg is exactly the same.
No need to upload it again.

I haven't reproduced the problem you encountered here.
It may still have something to do with the type of object you are operating on.
Upload the DWG and take a look
« Last Edit: November 25, 2023, 03:48:25 PM by xdcad »
The code I wrote uses XDRX-API,which can be downloaded from github.com and is updated at any time.
===================================
[XDrx-Sub Forum]
https://www.theswamp.org/index.php?board=78.0
https://github.com/xdcad/XDrx-API
http://bbs.xdcad.net

domenicomaria

  • Swamp Rat
  • Posts: 720
Re: xdrx-curve-join
« Reply #4 on: November 26, 2023, 04:17:50 AM »
... the dwg is always the same ...

ask someone else to test the dwg with this function

domenicomaria

  • Swamp Rat
  • Posts: 720
Re: xdrx-curve-join
« Reply #5 on: November 26, 2023, 04:24:20 AM »
Quote
The first time it works well.

After, you have to explode it,
and join it again using
(defun C:J ()   (setq ss (ssget) ) (xdrx-curve-join ss) )


again !

allways !

xdcad

  • Bull Frog
  • Posts: 424
Re: xdrx-curve-join
« Reply #6 on: November 26, 2023, 12:01:41 PM »
... the dwg is always the same ...

thanks...

ask someone else to test the dwg with this function

Found the reason,
At the location marked below in your picture, after re-exploding, there will be an extra LINE with a length of 0. This is caused by it.

In the next version, the API will be corrected to handle the case where the length is 0.
The code I wrote uses XDRX-API,which can be downloaded from github.com and is updated at any time.
===================================
[XDrx-Sub Forum]
https://www.theswamp.org/index.php?board=78.0
https://github.com/xdcad/XDrx-API
http://bbs.xdcad.net

domenicomaria

  • Swamp Rat
  • Posts: 720
Re: xdrx-curve-join
« Reply #7 on: November 26, 2023, 12:49:26 PM »
Well !

xdcad

  • Bull Frog
  • Posts: 424
Re: xdrx-curve-join
« Reply #8 on: November 26, 2023, 02:26:25 PM »
Well !


Updated API, re-uploaded, try downloading

The xdrx-curve-join function is dedicated to batch processing of various curves line, *polyline, arc, ellipse, spline, circle....

Supports gap tolerance, overlap...



It is currently known that when there are some special arc combinations, the arcs may produce unwanted results. If you encounter such problems during testing, please post and upload the DWG. Thank you.
The code I wrote uses XDRX-API,which can be downloaded from github.com and is updated at any time.
===================================
[XDrx-Sub Forum]
https://www.theswamp.org/index.php?board=78.0
https://github.com/xdcad/XDrx-API
http://bbs.xdcad.net

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2081
  • class keyThumper<T>:ILazy<T>
Re: xdrx-curve-join
« Reply #9 on: November 26, 2023, 02:36:17 PM »
@xdczd,
very nice !
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.