- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Im missing something here and dont know what it is. In the first program "Travertine" Im trying to string together a few external programs with some prompts in order to go through a sort of checklist approach. Problem Im having is between the TRAVTOP and TRAVCOP programs. If either one of those the are active in the main program is works fine but if BOTH are active it skips the second one and fails on the following line as well. Do I need to add something to the TRAVTOP/TRAVCOP programs or is it something between those lines in the main program? Thank you
(defun C:TRAVERTINE () (TRAVERTINE nil))
(DEFUN TRAVERTINE (TYP / pt)
(GV)
(PB)
(GETKWORD "\nEnter Field Label: ")
(C:TPVR-TRV)
(TRAVTOP)
(TRAVCOP)
(GETKWORD "\nBorder: ")
(6X6T)
(SV)
(PRINC)
)
(DEFUN TRAVTOP ()
(initget 1)
(IF (NULL TYP)
(PROGN (INITGET "TOP-PATIO NO-TOPPING")
(SETQ TYP (COND ((GETKWORD "\nTOP PATIO? [TOP-PATIO/NO-TOPPING] <TOP-PATIO>: "))
(TOP-PATIO)
)
)
)
)
(COND
((= TYP "TOP-PATIO")
(C:TTOP-TRV)
)
((= TYP "NO-TOPPING")
(C:TNO-TOP)
)
)
; (PRINC)
)
(DEFUN TRAVCOP ()
(initget 1)
(IF (NULL TYP)
(PROGN (INITGET "NBN SBN")
(SETQ TYP (COND ((GETKWORD "\nCOPING [NBN/SBN] <NBN>: "))
(NBN)
)
)
)
)
(COND
((= TYP "NBN")
(NBNT)
)
((= TYP "SBN")
(SBNT)
)
)
; (PRINC)
)
Solved! Go to Solution.