本帖最后由 Gu_xl 于 2021-11-23 08:57 编辑
 - ;;(gxl-Sel-SS->variant ss) 选择集物体转变体
- (defun gxl-Sel-SS->variant (ss / c r en)
- (repeat (setq c (sslength ss))
- (setq en (ssname ss (setq c (1- c))))
- (if (entget en)
- (setq r (cons en r))
- )
- )
- (vlax-make-variant
- (vlax-safearray-fill
- (vlax-make-safearray
- vlax-vbObject
- (cons 0 (1- (length r)))
- )
- (mapcar 'vlax-ename->vla-object r)
- )
- )
- )
|