Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am using below lisp code to import multiple DXF files into my drawing. But the issue is when I import all the DXF files, those gets overlapped. Is there any possibility to move the each DXF files in horizontal direction during import, so that they don’t overlap?
(defun c:PR (/ directory files)
(setq directory "C:\\Temp\\Automation")
(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)
)
Thanks in advance for help.
Solved! Go to Solution.