Professional Documents
Culture Documents
; Select closed polyline and place mtext with the room name and Area in m2
;
; How to use:
; 1. select polyline
; 2. type in room name
; Note: the getstring function does not allow spaces, so use a _
underscore to seperate words
; 3 select insert point
; 4 Something similar to this will be placed with MTEXT
; room_name
; Area: 111.11 m2
; 5 MTEXT will be placed with no wrap, to current settings
;
; Created
; 11-June-2003 YZ
; This code was taken from an internet web site. the original author was 'Jos
van Doorn'.
; Among other things, I have modified the program to use MTEXT.
;
(defun c:pla ()
(setvar "cmdecho" 0)
(while (setq et
(car
(entsel "\nSelect polyline: ")
) ;end car function
) ;end setq function
(command "area" "o" et)
(drtxt)
) ; wnd while funtion
(setvar "cmdecho" 1)
(princ)