Admin
Administrator
652 Posts |
Posted - March 30 2007 : 6:42:12 PM
|
Hi bband,
I think since you are wanting to script everything into a SINGLE DWG file, the best way would be to use Excel to help create your script.
Firstly, I would make sure that all the blocks you want to insert are numbered consecutively. You can use Hurricane's FILE RENAMER to do that.. http://www.74mph.com/faq/FAQ00157.html
i.e. map001.dwg map002.dwg . . map059.dwg map060.dwg . . map098.dwg map099.dwg
Then use Excel or a text editor to create the script file..
Then open AutoCAD and create a new drawing, and run the script. Assuming all parts of the map have been staggered properly, and they can be inserted at 0,0, you should see them all appear in the drawing.
Actually, BETTER YET, this task could be performed in a SINGLE line, which could be generated quite easily in Excel. Such as:
-XREF A "C:\mapparts\map000.dwg" 0,0 1 1 0 -XREF A "C:\mapparts\map001.dwg" 0,0 1 1 0 -XREF A "C:\mapparts\map002.dwg" 0,0 1 1 0 -XREF A "C:\mapparts\map003.dwg" 0,0 1 1 0 -XREF A "C:\mapparts\map004.dwg" 0,0 1 1 0 and so on...
If you are up on Excel, you can put each of the words in a differenct CELL, and put your filenames in their own cell, then use a final cell on the far right to concatenate a single string which can be copied and pasted into a text editor and saved as an .scr file, then run in AutoCAD.
Here is an XLS file with the general idea... Download Attachment: XREF-MULTIPLE.zip 3.94 KB
You can use the Hurricane "File Renamer" to get all your map blocks into sequential order, then use Excel to create a field column with the incremental filenames (drag down and the file names increment in Excel (if you hold SHIFT the numbers DON'T increment)), then have a quick equation to put all the strings together on the right, and you can copy/paste that in to a .scr file and run it on a single file.
(Adjust direction of slashes, quotes, syntax, and other parameters as necessary!)
Hope this gives you an idea or two!
Regards, Bill
|
Hurricane for AutoCAD http://www.74mph.com FAQ at http://www.74mph.com/faq/faq.html Tutorials at http://www.74mph.com/tutorials.html |
|
|