hosyn Posted May 19, 2013 Posted May 19, 2013 How we can merge 2 or more dwg togather with lisp or simple way:cry:. Quote
alanjt Posted May 20, 2013 Posted May 20, 2013 Insert drawing B into drawing A; explode newly inserted block; take a bathroom break. Quote
hosyn Posted May 20, 2013 Author Posted May 20, 2013 thanks a lot my q is How we can merge 2 or more dwg togather with lisp or simple way:cry: without opening them Quote
satishrajdev Posted May 20, 2013 Posted May 20, 2013 (edited) Here is a way, Create a folder in drive Known as Merge DWG whose directory will be C:\Merge DWG and put all drawing file in that folder which you want to merge, and run the following routine, but check drawing units of drawings which you want to insert and keep them same (defun c:MDWG (/ directory files) (setvar "cmdecho" 0) (alert "\n Please put your DWG files in ''C:\\Merge DWG'' Directory") (setq directory "C:\\Merge DWG") (if (setq files (vl-directory-files directory "*.dwg" 1)) (foreach dwg files (command "_.-insert" (strcat directory "\\" dwg) '(0. 0. 0.) "" "" "" ) ) (princ "\n No DWG files found into that folder !") ) (alert (strcat "\n ''DWG files has merged together'' ") ) (setvar "cmdecho" 1) ) Enjoy:) Edited May 20, 2013 by satishrajdev Quote
Tharwat Posted May 20, 2013 Posted May 20, 2013 @ satishrajdev It is a good practice when you in need of changing any system variable , you should reset it back . Quote
satishrajdev Posted May 20, 2013 Posted May 20, 2013 Dear Tharwat, I had posted same thread which is http://www.cadtutor.net/forum/showthread.php?70158-Merge-multiple-DXF-in-a-single-drawing You only have provided this routine, so big thanks to you, it made my work lot easier:) Quote
Tharwat Posted May 20, 2013 Posted May 20, 2013 Dear Tharwat, I had posted same thread which is http://www.cadtutor.net/forum/showthread.php?70158-Merge-multiple-DXF-in-a-single-drawing I was referring to the system variable "cmdecho" and not to the other codes . You only have provided this routine, so big thanks to you, it made my work lot easier:) Happy to hear that . Quote
satishrajdev Posted May 20, 2013 Posted May 20, 2013 I was referring to the system variable "cmdecho" and not to the other codes . Oops....forgot to put that, Being newbie it happens in excitement Quote
irneb Posted May 20, 2013 Posted May 20, 2013 Are the DWGs already xreffed into one another? Or do you want to simply place them into a blank DWG and not overlap each other (like in the thread teknomatika pointed to)? If the former, there are lots of stuff concerning binding xrefs. Just do a search here. Also, what about any paper space tabs? Neither of these would bring those in as well. For that you'd need to import the layouts, and might also need to adjust the viewports. Quote
hosyn Posted July 8, 2014 Author Posted July 8, 2014 Dear satishrajdev I tried your lisp and that massage "DWG files has merged together" but but i don't know that which location save the merged dwg?? Quote
Dadgad Posted July 8, 2014 Posted July 8, 2014 You might want to check out the Express Tool, LAYOUTMERGE. I have never used it, but it may prove helpful. Quote
satishrajdev Posted July 8, 2014 Posted July 8, 2014 Dear satishrajdev I tried your lisp and that massage "DWG files has merged together" but but i don't know that which location save the merged dwg?? It saves merged files into your current drawing, where you have loaded this lisp... Quote
Tharwat Posted July 8, 2014 Posted July 8, 2014 I think - to say attached in is much clearer than to say merged in - in this regard . Quote
hosyn Posted July 8, 2014 Author Posted July 8, 2014 Dear satishrajdev I checking current drawing but there's not there also.?? Quote
Tharwat Posted July 9, 2014 Posted July 9, 2014 I checking current drawing but there's not there also.?? How do you run the codes ? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.