home *** CD-ROM | disk | FTP | other *** search
- ;Fast import text (set style first)
- ;
- ; ********Patrick J. McKee, author********
- ; ****Copyright 1992, Power Key tm****
- ;
- (DEFUN C:IT(/ TXT SP TH LNS HT WD STL LS DT)
- (PRINC "\nEnter filename to read. If not on current path, enter full path. ")
- (SETQ TXT(OPEN(GETSTRING "\nFile name [filename.txt]: ")"r"))
- (SETQ SP(GETPOINT "\nText starting point: "))
- (SETQ HT(GETSTRING "\nText height: "))
- (SETQ WD(GETSTRING "\nWidth: "))
- (SETQ DT(READ-LINE TXT))
- (COMMAND "text" SP "" DT)
- (WHILE(/= DT NIL)
- (SETQ DT(READ-LINE TXT))
- (COMMAND "text" "" DT))
- (CLOSE TXT)(PRINC))
- (PRINC "\n.............loaded.")
- (PRINC "\n")
- (PRINC "\nThis text importing routine defaults to the current style.")
- (PRINC "\n")
- (PRINC "\nIf you want to, set style before executing. We found")
- (PRINC "\n")
- (PRINC "\nit faster to sacrifice style control to eliminate the possibility")
- (PRINC "\n")
- (PRINC "\nof a regen on a large drawing file.")
- (PRINC)