是EXPRESSTOOL中的公共函數
(ARXLOAD "ACETUTIL.ARX" NIL)
The acetutil modules (acetutil.arx, acetutil*.fas) provide a number of utility functions which can be called from LISP.
(acet-ent-geomextents ename)
Returns the geometric extents of the given object.
Arguments
ename The entity name of an object.
Return Values
A list containing two points (such as ((1.0 1.0 0.0) (2.0 2.0 0.0))) describing the geometric extents
; Draw a rectangle to mark the range of the selected entities( Pline or Circle).
(if (and ret_val (/= (cdr (car ret_val)) (cdr (cadr ret_val))))
(progn
(command "rectang" (cdr (car ret_val)) (cdr (cadr ret_val)) 3)
)
);_if