The following is a routine that I use regularly on Autocad 2012
with Express Tools to effect a Fence Selection from a polyline.
;; getfencesel by ymg ;
;; ;
;; Arguments: en, Linear Entity Name (Polylines, Arc, Ellipse etc.) ;
;; flt, A valid Entity filer Ex: '((0 . "3DFACE")) or nil ;
;; ;
;; Returns: A Selection Set of Entities touching the selecting entity. ;
;; ;
;; Requires: Express Tools ;
;; ;
(defun getfencesel (en flt / fe px ss)
(acet-ss-zoom-extents (setq ss (ssadd en)))
(setq px (* 0.75 (acet-geom-pixel-unit))
fe (acet-list-remove-adjacent-dups (acet-geom-object-point-list en (/ px 2.0)))
ss (if flt (ssget "_F" fe flt) (ssget "_F" fe))
)
)
On another board, one poster is telling me it does not work with Autocad 2014.
However I suspect his installation might not be complete.
I would appreciate if some of you coud test it on Version 2013, 2014 and 2015
Thanks,
ymg