Author Topic: [XDrX-PlugIn(51)] Merge Hatches  (Read 1380 times)

0 Members and 1 Guest are viewing this topic.

xdcad

  • Swamp Rat
  • Posts: 514
[XDrX-PlugIn(51)] Merge Hatches
« on: December 18, 2023, 01:17:38 PM »


Code: [Select]
(defun c:XDTB_HaMerge (/ ss ss1 nums)
  (if (and (setq ss
  (xdrx-ssget
    (if (xd::doc:acadischs)
      "\n请选取要合并的HATCH实体[全选(All)]<退出>:"
      "\nPlease select the HATCH entities to be merged<Exit>:"
    )
    '((0 . "HATCH"))
  )
   )
   (> (setq nums (sslength ss)) 1))
    (progn
      (if (xdrx_hatch_merge ss)
(xdrx-prompt
  (xdrx-string-formatex
    (if (xd::doc:acadischs)
      "\n共选取了 %d 个HATCH实体,合并成了"
      "\nA total of %d HATCH entities were selected and merged into 1 ."
    )
    nums
  )
)
      )
    )
    (xdrx-prompt
      (if (xd::doc:acadischs)
"\n没有选到填充或者数量为1,未完成合并。"
"\nNo Hatch is selected or the sums is 1, and the merge is not completed."
      )
    )
  )
  (princ)
)
« Last Edit: January 10, 2024, 06:01:42 PM by xdcad »
The code I wrote uses XDRX-API,which can be downloaded from github.com and is updated at any time.
===================================
https://github.com/xdcad
https://sourceforge.net/projects/xdrx-api-zip/
http://bbs.xdcad.net

reyas1123

  • Newt
  • Posts: 50
Re: [XDrX-PlugIn(51)] Merge Hatches
« Reply #1 on: January 06, 2024, 06:49:04 AM »
Hi,
Got some error

Command: XDTB_HAMERGE
; error: no function definition: XD::DOC:ACADISCHS

Thanks

Hugo

  • Bull Frog
  • Posts: 433
Re: [XDrX-PlugIn(51)] Merge Hatches
« Reply #2 on: January 06, 2024, 08:39:20 AM »
Everything is ok for me and works perfectly

xdcad

  • Swamp Rat
  • Posts: 514
Re: [XDrX-PlugIn(51)] Merge Hatches
« Reply #3 on: January 06, 2024, 08:48:41 AM »
Hi,
Got some error

Command: XDTB_HAMERGE
; error: no function definition: XD::DOC:ACADISCHS

Thanks

Go here: https://github.com/xdcad/XDrx-API
Download and install the API, then...
The code I wrote uses XDRX-API,which can be downloaded from github.com and is updated at any time.
===================================
https://github.com/xdcad
https://sourceforge.net/projects/xdrx-api-zip/
http://bbs.xdcad.net