Message 1 of 3
nil return stops script in conditional progn
Not applicable
05-15-2015
03:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey all, I'm setting up a conditional statment with a progn action. I'm receiving a nil return on the last conditional statement that is stopping my script. I'm running this as a command in a script for multiple files.
Please help!
(cond ((vl-string-search name attI) (progn (command "copybase" "0,0" "al" "") (command "erase" "al" "") (command "layout" "t" seed (vl-string-trim "_att" (vl-string-trim "sw_" name))) (command "layout" "s" (vl-string-trim "_att" (vl-string-trim "sw_" name))) (command "layout" "d" "layout1" "") (command "pasteclip" "0,0") (command "-layer" "lo" "0L_TB_TEXT" "") (vla-saveas dwg (strcat dirI (vl-string-trim "_att" (vl-string-subst "sht" "sw" name))) ac2007_template) );progn end );cond );cond end