home *** CD-ROM | disk | FTP | other *** search
- ;; ! ***************************************************************************
- ;; ! GT_Load
- ;; ! ***************************************************************************
- ;; ! Function : Load the GeoTools software program and the menu
- ;; ! Argument : None
- ;; ! Return : None
- ;; ! Updated : June 11, 1999
-
- (defun C:GT_Load( / kwd )
- (initget "Yes No")
- (setq kwd (getkword "\nDo you wish to load GeoTools program and menu? <Yes>:"))
- (if (not kwd) (setq kwd "Yes"))
- (if (= kwd "Yes")
- (GT_Load)
- )
- (prin1)
- )
-
- (defun GT_Load( / AcadVer )
- (if (wcmatch (getvar "ACADVER") "15*") ; AutoCAD 2000
- (progn
- (if (findfile "GeoT.VLX")
- (load "GeoT.VLX")
- (alert "Cannot find GeoTools executable file GeoT.VLX. Please check you installation.")
- )
- )
- (progn
- (if (not (member "geot.arx" (arx)))
- (progn
- (arxload "geot")
- (if (boundp 'c:R)
- (c:R)
- )
- )
- (alert "GeoTools program is already loaded and running.")
- )
- ))
- )
-
- ;; ! ***************************************************************************
- ;; ! GT_UnLoad
- ;; ! ***************************************************************************
- ;; ! Function : UnLoad the GeoTools software program and the menu
- ;; ! Argument : None
- ;; ! Return : None
- ;; ! Updated : June 11, 1999
-
- (defun C:GT_UnLoad( / kwd )
- (initget "Yes No")
- (setq kwd (getkword "\nDo you wish to unload the GeoTools program and menu? <No>:"))
- (if (not kwd) (setq kwd "No"))
- (if (= kwd "Yes")
- (GT_UnLoad)
- )
- (prin1)
- )
-
- (defun GT_UnLoad( / AcadVer )
- (if (wcmatch (getvar "ACADVER") "15*") ; AutoCAD 2000
- (progn
- (princ "\nGeoTools in AutoCAD 2000 cannot be unloaded.")
- )
- (progn
- (if (member "geot.arx" (arx))
- (progn
- (if (arxunload "geot")
- (alert "GeoTools program unloaded successfully.")
- (alert "GeoTools program could NOT be unloaded successfully.")
- )
- )
- (alert "GeoTools program has not been loaded.")
- )
- ))
-
- (if (menugroup "GeoT")
- (progn
- (command "._MenuUnLoad" "GeoT")
- (alert "GeoTools menu unloaded successfully.")
- ))
- )
-
- (princ "\nType GT_LOAD to load GeoTools.")
- (princ "\nType GT_UNLOAD to unload GeoTools.")
- (prin1)
-