Author Topic: CURVE-TAKE-OUT-THE-INSIDE  (Read 1224 times)

0 Members and 1 Guest are viewing this topic.

domenicomaria

  • Swamp Rat
  • Posts: 724
CURVE-TAKE-OUT-THE-INSIDE
« on: November 28, 2023, 08:32:40 AM »
Code - Auto/Visual Lisp: [Select]
  1. (defun C:CURVE-TAKE-OUT-THE-INSIDE ( / en es i-ss int-lst offset-v-lst ss ss-en-lst v-lst )
  2.    (and
  3.       (setq es (xdrx-entsel "\nselect a 2d closed curve < exit> : ") )
  4.       (setq en (car es))
  5.       (setq v-lst (xdrx-curve-getsamplepoints en))
  6.  
  7.       (setq offset-v-lst (xdrx-curve-getoffsetcurves en 0.15 t) )  ; 0.15 ???    T  ???
  8.       (entdel (entlast) )
  9.  
  10.       (setq ss (ssget "f" v-lst) )
  11.       (setq ss (ssdel en ss) )
  12.       (setq ss-en-lst (xdrx-pickset->ents ss) )
  13.  
  14.       (xdrx-begin)
  15.       (foreach x ss-en-lst
  16.          (if (setq int-lst (xdrx-entity-intersectwith x en) )
  17.              (xdrx-curve-getsplitcurves x int-lst)
  18.          )
  19.       )
  20.      
  21.       (setq i-ss (ssget "wp" offset-v-lst) )
  22.       (setq i-ss (ssdel en i-ss) )
  23.       (setq i-ss (ssadd (xdrx-object-clone en) i-ss) )
  24.       (xd::drag:simplemove i-ss  "\nInsert Point:" 5 t)
  25.       (xdrx-end)
  26.    )
  27. )
  28.  
  29.    
  30. (defun C:XXX () (C:CURVE-TAKE-OUT-THE-INSIDE) )

If you can't see the video, please wait a while

https://drive.google.com/file/d/1S0oReQEMkufkboNnVd2_An5JfigWX7Z_/view?usp=sharing

xdcad

  • Bull Frog
  • Posts: 473
Re: CURVE-TAKE-OUT-THE-INSIDE
« Reply #1 on: November 28, 2023, 08:47:32 AM »
Canít see the video and canít download it
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: 724
Re: CURVE-TAKE-OUT-THE-INSIDE
« Reply #2 on: November 28, 2023, 08:52:37 AM »
Wait 1 hour
...
Is there a way to get only
the offset point list,
without xdrx-curve-getoffsetcurves
draws also an offset curve ?

Explain the arguments of xdrx-curve-getoffsetcurves ,
please.
« Last Edit: November 28, 2023, 08:59:01 AM by domenicomaria »

xdcad

  • Bull Frog
  • Posts: 473
Re: CURVE-TAKE-OUT-THE-INSIDE
« Reply #3 on: November 28, 2023, 08:56:29 AM »
Code - Auto/Visual Lisp: [Select]
  1. (defun C:CURVE-TAKE-OUT-THE-INSIDE ( / en es i-ss int-lst offset-v-lst ss ss-en-lst v-lst )
  2.    (and
  3.  

If you can't see the video, please wait a while

https://drive.google.com/file/d/1S0oReQEMkufkboNnVd2_An5JfigWX7Z_/view?usp=sharing

Is this what you want to do?

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: 724
Re: CURVE-TAKE-OUT-THE-INSIDE
« Reply #4 on: November 28, 2023, 09:00:22 AM »
Yes
More or less ...

xdcad

  • Bull Frog
  • Posts: 473
Re: CURVE-TAKE-OUT-THE-INSIDE
« Reply #5 on: November 28, 2023, 09:05:43 AM »
I have written two before
1. Cutting
2. Take Out

Can handle BLOCK

« Last Edit: November 28, 2023, 09:10:26 AM 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: 724
Re: CURVE-TAKE-OUT-THE-INSIDE
« Reply #6 on: November 28, 2023, 09:14:24 AM »
if you think my post is superfluous, delete it... don't worry...

xdcad

  • Bull Frog
  • Posts: 473
Re: CURVE-TAKE-OUT-THE-INSIDE
« Reply #7 on: November 28, 2023, 09:38:26 AM »
Wait 1 hour
...
Is there a way to get only
the offset point list,
without xdrx-curve-getoffsetcurves
draws also an offset curve ?

Explain the arguments of xdrx-curve-getoffsetcurves ,
please.

xdrx-curve-getoffsetcurves
The usage is written in this post.
http://www.theswamp.org/index.php?topic=58803.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

xdcad

  • Bull Frog
  • Posts: 473
Re: CURVE-TAKE-OUT-THE-INSIDE
« Reply #8 on: November 28, 2023, 09:42:36 AM »
if you think my post is superfluous, delete it... don't worry...

 :smitten: :smitten:
No, you may have misunderstood, English is not my mother tongue

I didn’t see your video, so I guessed that you wanted to do this, so I posted a few animations.
I want to say that xdrx-curve-getsplitcurves may have more uses, such as processing the inside of block. I want to discuss it with you more.

I want to thank you for posting here and would be happy to see more in the future
Thanks
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

xdcad

  • Bull Frog
  • Posts: 473
Re: CURVE-TAKE-OUT-THE-INSIDE
« Reply #9 on: November 28, 2023, 09:45:52 AM »
Wait 1 hour
...
Is there a way to get only
the offset point list,
without xdrx-curve-getoffsetcurves
draws also an offset curve ?

Explain the arguments of xdrx-curve-getoffsetcurves ,
please.

The point table (for multiple) is not returned normally when given the T parameter. I will check the code and modify it.
Thanks
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

xdcad

  • Bull Frog
  • Posts: 473
Re: CURVE-TAKE-OUT-THE-INSIDE
« Reply #10 on: November 28, 2023, 09:51:12 AM »
if you think my post is superfluous, delete it... don't worry...

Command: (xdrx-curve-offset1 (entlast) 100.0)
((6955.29 550.873 0.0) (7455.96 550.873 0.0) (7455.96 896.79 0.0))

You can use this first, it doesnít have as many functions as xdrx-curve-offset

This xdrx-curve-offset1 is from the original manual
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

ribarm

  • Gator
  • Posts: 3255
  • Marko Ribar, architect
Re: CURVE-TAKE-OUT-THE-INSIDE
« Reply #11 on: November 28, 2023, 02:19:15 PM »
Isn't this behaviour similar to CLIPIT on blocks geometry... Are those lines all inside block? If that's so then XDRX is nothing special...
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

domenicomaria

  • Swamp Rat
  • Posts: 724
Re: CURVE-TAKE-OUT-THE-INSIDE
« Reply #12 on: November 28, 2023, 03:16:58 PM »
Isn't this behaviour similar to CLIPIT on blocks geometry... Are those lines all inside block? If that's so then XDRX is nothing special...
XDRX has many functions, very powerful and special,
which allow VLisp users to do things that could not even be imagined before.

domenicomaria

  • Swamp Rat
  • Posts: 724

xdcad

  • Bull Frog
  • Posts: 473
Re: CURVE-TAKE-OUT-THE-INSIDE
« Reply #14 on: November 28, 2023, 11:14:08 PM »
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