[FONT=courier new]
;GetBlockNea ---返回点距块内每个子实体最近的点
; 测试:(GetBlockNea (vlax-ename->vla-object (car (entsel))) (getpoint) acExtendNone)
;暂时仅支持Curve类子实体
; Arguments [Typ]:
; Blk = Block object [VLA-OBJECT]
; Pt1 = Point [LIST]
; Mde = Intersection mode [INT]
; Constants:
; - acExtendNone Does not extend either object.
; - acExtendThisEntity Extends the Fst object.
; - acExtendOtherEntity Extends the Nxt object.
; - acExtendBoth Extends both objects.
; Return [Typ]:
; > list of points '((1.0 1.0 0.0)... [LIST]
; > Nil if not found
; Notes:
; None
;
(defun GetBlockNea (Blk Pt1 Mde / ObjNme PntLst TmpVal Pt2 dst1 Pt3 )
(foreach memb (vlax-invoke Blk "Explode"