Hi -- I'm working in AutoCAD 2000. I'm attempting to use a text script (.scr) file to plot a series of lines in a drawing. (and eventually some rectangles, etc....) When I run the script from the command line, it draws the first line as expected, but simply ignores all the remaining _line commands. Following execution of the script, only the first _line command and data appear in the AutoCAD text window, but the rest do not. For example: _line 0,0 0,-100 _line 596.19,0 596.19,-100 _line 192.38,0 1192.38,-100 _line 1788.57,0 1788.57,-100 _line 2384.76,0 2384.76,-100 _line 2980.95,0 2980.95,-100 Within the .scr file, I have also tried inserting one or two <Esc> commands after each set of coordinates (and before the next _line command) with the thought that it might cancel the first _line command to "clear the way" so the second _line command can be recognized and begin. Doesn't help.... Any suggestions? Thanks John ))))))) (o)-(o) -----oo0---(_)---0oo-------------------------- | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | John Cutler -- Mapping/GIS Director, Ozark Regional Land Trust (Ozark Bioregion - MO/AR/KS/OK) 2435 Sweetwater Lane Mansfield MO 65704 (417) 741-7363 www.orlt.org
_line 0,0 0,-100 _line 596.19,0 596.19,-100 _line 192.38,0 1192.38,-100 _line 1788.57,0 1788.57,-100 _line 2384.76,0 2384.76,-100 _line 2980.95,0 2980.95,-100 ;end of script I don't know to anything about scripts, but this works now. I think you need a hard return after you put in the second point to end the line command, that is why there is an extra enter at the end of the one I posted. Hope it helps at least a little. Tim
Thanks, guys -- it couldn't be more straightforward! If I'd experimented a little more, I might have figured that out. The <Return> cancels the existing _line command and allow the start of another.... That's what I was trying to accomplish with the <Esc> -- but that cancelled the *whole script* after the first _line set. I've noticed (in the past) that drawing points with a script works without the space (return) between _point commands because that command is a "single shot" process and thus is not looking for additional values the way _line does -- _line keeps asking for more starting and ending points. Thanks John ))))))) (o)-(o) -----oo0---(_)---0oo-------------------------- | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | John Cutler -- Mapping/GIS Director, Ozark Regional Land Trust (Ozark Bioregion - MO/AR/KS/OK) 2435 Sweetwater Lane Mansfield MO 65704 (417) 741-7363 www.orlt.org