romzak Posted March 5, 2010 Posted March 5, 2010 I've created a script which converts a drawing from .dwg format to .dxf format. (not lsp..more like the dxfout utility). I have scores of maps to do the conversion on. Each map has its own scr file associated with it. I have no experience with writing batch files, and am looking for a way to run these under a batch. I appreciate any help. gerry Quote
romzak Posted March 5, 2010 Author Posted March 5, 2010 Thanks...but scriptpro is too cumbersome given that it needs to open autocad, then shut down for each run of the script. This would require letting it run all night long. Quote
dbroada Posted March 7, 2010 Posted March 7, 2010 I crate a list of files using the DOS command dir *.dwg /b > list.txt but you may have your own way to create a plain list. Open that in excel and using find|replace and by copying columns you can end up with a list of files like this.... open drawing1.dwg dxfout open drawing2.dwg dxfout open drawing3.dwg dxfout now save it as a plain text file named list.scr and you can run it as a script. if you have to run a seperate script for each drawing this won't be the best solution though as you cannot get a script to call a second script and then return from where you left. If all your scripts are identical you can put each step in where I have put dxfout. Quote
fuccaro Posted March 8, 2010 Posted March 8, 2010 Here is a similar program: http://www.cadtutor.net/forum/showthread.php?t=19474 See if you can modify it to suit your needs. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.