;;; GRADLBL.LSP ;;; (C) Copyright 2002 by Thomas Gail Haws and WRG Design Inc. ;;; GRADLBL.LSP labels civil engineering grading plan lots by picking. ;;; ;;; This program is free software under the terms of the ;;; GNU (GNU--acronym for Gnu's Not Unix--sounds like canoe) ;;; General Public License as published by the Free Software Foundation, ;;; version 2 of the License. ;;; ;;; You can redistribute this software for any fee or no fee and/or ;;; modify it in any way, but it and ANY MODIFICATIONS OR DERIVATIONS ;;; continue to be governed by the license, which protects the perpetual ;;; availability of the software for free distribution and modification. ;;; ;;; You CAN'T put this code into any proprietary package. Read the license. ;;; ;;; If you improve this software, please make a revision submittal to the ;;; copyright owner at hawstom@despammed.com or see www.hawsedc.com. ;;; ;;; This program is distributed in the hope that it will be useful, ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License on the World Wide Web for more details. ;;; ;;; OVERVIEW ;;; GRADLBL.LSP helps you label civil engineering grading plan lots in AutoCAD. ;;; ;;; GETTING STARTED ;;; ;;; DEVELOPMENT NOTES ;;; ;;; REVISION HISTORY ;;; ;;; Date Programmer Revision ;;; 20021125 TGH Initial coding 2.0 hrs. No functioning change to drawing. ;;; 20021210 TGH Made values write to selected text or attribute. Made defaults save to Registry, AutoCAD area. ;;; (DEFUN C:GG () (C:GRADLBL)) (DEFUN C:GRADLBL (/ GRADLBL:ACTION GRADLBL:FFHEIGHT GRADLBL:PADHEIGHT GRADLBL:REARHEIGHT GRADLBL:TYPELEV ) (PROMPT "\nGRADLBL version 1.0, Copyright (C) 2002 Thomas Gail Haws and WRG Design Inc. GRADLBL comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the terms of the GNU General Public License. The latest version of GRADLBL is always available at www.hawsedc.com" ) ;_ end of prompt (VL-LOAD-COM) (VL-REGISTRY-WRITE (STRCAT "HKEY_CURRENT_USER\\" (VLAX-PRODUCT-KEY) "\\HawsEDC" ) ;_ end of strcat "" "" ) ;_ end of vl-registry-write (VL-REGISTRY-WRITE (STRCAT "HKEY_CURRENT_USER\\" (VLAX-PRODUCT-KEY) "\\HawsEDC\\GRADLBL" ) ;_ end of strcat "" "" ) ;_ end of vl-registry-write (SETQ GRADLBL:TYPELEV (ATOI (COND ((GRADLBL:GETDEFAULT "typelev")) ((ALERT "\nPlease start by using the Setup option\nto set lot grading defaults." ) ;_ end of alert ) ((GRADLBL:SETDEFAULT "typelev" "1190")) ) ;_ end of cond ) ;_ end of atoi GRADLBL:PADHEIGHT (ATOF (COND ((GRADLBL:GETDEFAULT "padheight")) ((GRADLBL:SETDEFAULT "padheight" "0.5")) ) ;_ end of cond ) ;_ end of atof GRADLBL:FFHEIGHT (ATOF (COND ((GRADLBL:GETDEFAULT "ffheight")) ((GRADLBL:SETDEFAULT "ffheight" "0.67")) ) ;_ end of cond ) ;_ end of atof GRADLBL:REARHEIGHT (ATOF (COND ((GRADLBL:GETDEFAULT "rearheight")) ((GRADLBL:SETDEFAULT "rearheight" "-0.2")) ) ;_ end of cond ) ;_ end of atof ) ;_ end of setq (WHILE (PROGN (INITGET "Setup") (SETQ GRADLBL:ACTION (NENTSEL "\nSetup/