The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Hurricane for AutoCAD
 General Discussion
 Batch for multiple xrefs into new DWG

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Attach a File

Check here to subscribe to this topic.
   

T O P I C    R E V I E W
bband Posted - March 30 2007 : 4:42:45 PM
I am looking for a batch routine to XREF multiple(100)DWGs into a new DWG each with a 0,0 insertion. Each individual DWG is a section of a map and I want to have a file with all maps together.
1   L A T E S T    R E P L I E S    (Newest First)
Admin 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


The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.2 seconds. Snitz Forums 2000