Author Topic: [XDrX-Function(11)] API variable BoExtLen, impact on searching contour lines  (Read 514 times)

0 Members and 1 Guest are viewing this topic.

xdcad

  • Swamp Rat
  • Posts: 527
API variable BoExtLen, impact on searching contour lines

(xdrx-geom-searchoutline ss)
contour lines is lwpolyline.

(xdrx-geom-searchoutline ss 0)
contour lines is Native curves, line, arc, ellipse, spline...

(xdrx-geom-searchoutline ss 1)
contour lines is Region.

(xdrx-geom-searchoutline ss 2)
contour lines is spline.

Code - Auto/Visual Lisp: [Select]
  1. (defun c:tt ()
  2.   (while (and (setq tol (getreal "\nGAP TOL:"))
  3.               (setq ss (xdrx-ssget "\nSelect Curve:" '((0 . "*line"))))
  4.          )
  5.     (xdrx-setvar "boextlen" tol)
  6.     (if (setq ss (xdrx-geom-searchoutline ss))
  7.       (progn
  8.         (xd::drag:simplemove (entlast) "\nInsert Point:" 5 t)
  9.       )
  10.       (progn
  11.         (xdrx-ui-msgbox
  12.           (xdrx-string-format
  13.             "The selected curve is not closed within the gap tolerance %0.1f" tol
  14.           )
  15.           "INFO"
  16.           1
  17.           3
  18.         )
  19.       )
  20.     )
  21.   )
  22.   (princ)
  23. )
« Last Edit: December 09, 2023, 09:32:04 AM 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

xdcad

  • Swamp Rat
  • Posts: 527
search block contour lines,
Add background color fill to Hatch.

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

xdcad

  • Swamp Rat
  • Posts: 527
search block contour lines
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