Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
First, excuse my english, I'm french 🙂
I'm a total noob in autocad, but for work I have to import several DXF files into one DWG. I found a little script working, my dxf files are all merged into one dwg but original coordinates are lost.
(defun c:DXFIMPORTALL (/ directory files)
(setq directory "D:\\3D\\273_Port_Valais\\01_ENTREES\\SWISS_BUILDINGS")
(if (setq files (vl-directory-files directory "*.dxf" 1))
(foreach dxf files
(command "_.-insert" (strcat directory "\\" dxf) '(0. 0. 0.) """""")
)
(princ "\n No DXF files found into that folder !")
)
(princ)
)
I don't know how to obtain the same result has with a CTRL+C / Paste to original coordinates.
Thanks in advance for help!
Solved! Go to Solution.