Author Topic: [XDrX-PlugIn(103)] Supper Extend  (Read 468 times)

0 Members and 1 Guest are viewing this topic.

xdcad

  • Bull Frog
  • Posts: 479
[XDrX-PlugIn(103)] Supper Extend
« on: January 23, 2024, 07:43:42 AM »
Code: [Select]
(defun c:xdtb_polyextend (/ e1 e2 e3 inx1 inx2 bak)
  (if (and (setq e1 (xdrx-entsel (xdrx-string-multilanguage "\n拾取多段线延伸起始边<结束>:"
    "\nPick Polyline Extend start Edge<Exit>:"
)
'((0 . "*polyline"))
    )
   )
   (or (setq e2 (xdrx-entsel (xdrx-string-multilanguage "\n拾取延伸结束边<alone>:"
"\nPick Extend end Edge<Exit>:"
     )
     '((0 . "*polyline"))
)
       )
       t
   )
   (equal (car e1) (car e2))
      )
    (progn (xd::begin)
   (setq inx1 (xdrx-getpropertyvalue (car e1) "onseg" (cadr e1))
inx2 inx1
   )
   (if e2
     (setq inx2 (xdrx-getpropertyvalue (car e2) "onseg" (cadr e2)))
   )
   (if (setq e3 (xdrx-entsel (xdrx-string-multilanguage "\n拾取目标边<退出>:"
"\nPick Dest Edge<Exit>:"
     )
     '((0 . "*polyline,line,arc,circle"))
)
       )
     (xdrx-polyline-extend inx1 inx2 e1 e3)
   )
   (xd::end)
    )
  )
  (princ)
)
« Last Edit: January 23, 2024, 09:08:29 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

Hugo

  • Bull Frog
  • Posts: 430
Re: [XDrX-PlugIn(103)] Supper Extend
« Reply #1 on: January 23, 2024, 11:39:56 AM »
Unfortunately it doesn't do anything for me

xdcad

  • Bull Frog
  • Posts: 479
Re: [XDrX-PlugIn(103)] Supper Extend
« Reply #2 on: January 23, 2024, 08:06:42 PM »
Unfortunately it doesn't do anything for me

1. Click the mouse three times, click the extended edge entity twice, and click the target curve once
2. To update the API updated on 1.23
3. Does the function xdrx-polyline-extend exist?
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: 479
Re: [XDrX-PlugIn(103)] Supper Extend
« Reply #3 on: January 23, 2024, 08:29:56 PM »
Unfortunately it doesn't do anything for me

I tried it in the German version of AUTOCAD and I have no problem here.
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

Hugo

  • Bull Frog
  • Posts: 430
Re: [XDrX-PlugIn(103)] Supper Extend
« Reply #4 on: January 24, 2024, 03:02:22 AM »
Thanks, I missed the double click