- (defun cw (ss / I OUT OUTX OUTY P1 P2 X)
- (setq i -1 out '())
- (repeat (sslength ss)
- (setq out (cons (ssname ss (setq i (1+ i))) out))
- )
- (setq out (mapcar '(lambda(x)
- (vla-GetBoundingBox (vlax-ename->vla-object x) 'p1 'p2)
- (setq x (mapcar 'vlax-safearray->list (list p1 p2)))
- (list (mapcar 'car x) (mapcar 'cadr x))
- )
- out)
- )
- (setq outx (apply 'append (mapcar 'car out)))
- (setq outy (apply 'append (mapcar 'cadr out)))
- (list (list (apply 'min outx)
- (apply 'min outy))
- (list (apply 'max outx)
- (apply 'max outy))
- )
- )
|