home *** CD-ROM | disk | FTP | other *** search
- ; SEATCALL - Place seating callout with auto increment and defaults
- ;; Jonathan B. Solomon 3/02/88
- ;; (C)1989 Cadcraft, Inc.
- (princ "\nInsert Seat Callout ... ")
- ;
- ; 1. SET DEFAULTS
- (if (null srmno)(setq srmno "200"))
- (if (null sno)(setq sno 100))
- (if (null stype)(setq stype ""))
- (if (null scond)(setq scond ""))
- (while (/=
- (setq sntemp (getstring (strcat "\nSeat Number (. = done) <" (rtos sno 2 0) ">: ")))
- ".")
- (if (= sntemp "")(setq sntemp sno) (setq sno (atoi sntemp)))
- (setq sno (1+ sno))
- ;
- (setq temp (getstring T (strcat "\nRoom Number <" srmno ">: ")))
- (if (/= temp "")(setq srmno temp))
- (setq temp (getstring T (strcat "\nSeating type <" stype ">: ")))
- (if (/= temp "")(setq stype temp))
- (setq temp (getstring T (strcat "\nSeating condiditon <" scond ">: ")))
- (if (/= temp "")(setq scond temp))
- (setq sremrk (getstring T "\nRemarks: "))
- (princ "\nInsertion point: ")
- (command "insert" (strcat drive (if macii ":arch:" "/arch/") "seatcall") "scale" scale1 pause 0 sntemp
- srmno stype scond sremrk)
- )
- (princ)