Author Topic: Copying all objects from Xref to Drawings  (Read 1646 times)

0 Members and 1 Guest are viewing this topic.

jasonyctam

  • Guest
Copying all objects from Xref to Drawings
« on: January 13, 2015, 04:06:25 PM »
Hi All,
 
As a newbie to AUTOLisp, I am trying to accomplish the following with a script/function, however I still haven't found much useful information
 
1. While looping through the files in the directory, check if each drawing has any xrefs attached.
2. If yes, then copy all objects from all attached xrefs to the current drawing, and detach them. If no, skip the the next drawing. (If there are xref objects that cannot be copied to the drawing (such as jpgs), then leave them as they are).
3. Save the drawing with the same file name in another folder.
 
I know this sounds like asking someone else to do the homework for me, but any kind of help is appreciated as a lot of time has been used already googling around without much progress.....
Cheers

ronjonp

  • Needs a day job
  • Posts: 7531
Re: Copying all objects from Xref to Drawings
« Reply #1 on: January 13, 2015, 04:19:33 PM »
You could use Etransmit with the bind option and include all files in a directory.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

cmwade77

  • Swamp Rat
  • Posts: 1443
Re: Copying all objects from Xref to Drawings
« Reply #2 on: January 14, 2015, 01:40:11 PM »
Depending on the version of AutoCAD, you could use DWGConvert as well, this offers an in-place option and use it to bind everything.

If you ahve an older version that doesn't have this command, you can use DWG TrueView to convert it as well (it is free to download from Autodesk's website and it has the same options for converting)