
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to update a couple of lisp routines to for us changing over to annotative dimensioning. However since we are just switching I need for commands to work on the old files and the new files. I had looked into cond statements so that I could have 4 different conditions similar to what I had before. The lisp we were running before had only two conditions looking at tilemode but now i need to look at tilemode and dimanno to make sure I am entering the correct things. Here is what I have, but it wont load and vlisp says "; error: malformed list on input" and I cannot tell what the problem is from looking arond and trying new things. Any help on this is greatly appriciated, this is what has kept us from updating to annotative dimensioning in the past.
(defun C:CS-ENV-1 ( / TILE ANNO ) (setq TILE (getvar "tilemode")) (setq ANNO (getvar "dimanno")) (cond ((and (= ANNO 1) (= TILE 0) (setvar "cannoscale" "1'-0\" = 1'-0\"") (princ "\nAnnotative Layout.") ) ;_ end of first condition ((and (= ANNO 1) (= TILE 1) (setvar "cannoscale" "1'-0\" = 1'-0\"") (princ "\nAnnotative Model.") ) ;_ end of second condition ((and (= ANNO 0) (= TILE 0) (setvar "cannoscale" "1'-0\" = 1'-0\"") (setq FL:FLAYTAB "C:\\Canova and Stone\\Customizations\\CS - Autodesk AutoCAD 2017\\Programming\\FLAY.TAB")(FL:LoadTable) (command "textsize" "3/32" "LAYON" "VPLAYER" "THAW" "*" "CURRENT" "" "VPLAYER" "FREEZE" "*dim*,*ceiling*,*flooring*,*rcp*" "CURRENT" "" "VPLAYER" "THAW" "*CS-DIM1*,*PSL-DIM1*" "CURRENT" "" "VPLAYER" "FREEZE" "*CS-DIM16*,*CS-DIM12*,*PSL-DIM16*,*PSL-DIM12*" "CURRENT" "") (princ "\nStandard Layout.") ) ;_ end of third condition ((and (= ANNO 0) (= TILE 1) (setvar "cannoscale" "1'-0\" = 1'-0\"") (setq FL:FLAYTAB "C:\\Canova and Stone\\Customizations\\CS - Autodesk AutoCAD 2017\\Programming\\FLAY.TAB")(FL:LoadTable) (command "dimscale" "1" "textsize" "3/32" "LAYON" "-layer" "set" "CS-AW-MILLWORK1-SECT" "" "-layer" "off" "*dim*,*ceiling*,*flooring*,*rcp*" "on" "*CS-DIM1*,*PSL-DIM1*" "OFF" "*CS-DIM12*,*CS-DIM16*,*PSL-DIM16*,*PSL-DIM12*" "" "users1" ".") (princ "\nStandard Model.") ) ;_ end of fourth condition ) ;_ end of condition (princ) )
Solved! Go to Solution.