salman Posted June 17, 2010 Posted June 17, 2010 Hi all, Is it possible to select entities such as polylines using (ssget) in one drawing and then paste that selection in some other drawing. We can do that by using CTRL+C and CTRL+V but the drawing I am working on has some problem and these windows copy paste commands are not working in that drawing. Thanks. Quote
Tharwat Posted June 17, 2010 Posted June 17, 2010 Hi Salman Here is the Selection Set Function for Polyline includ it into your Lisp Program to select all polyline that are in a drawing; (setq pl (ssget "_X" '((0 . "LWPOLYLINE")))) Enjoy. Regards Tharwat Quote
jammie Posted June 17, 2010 Posted June 17, 2010 As an option wblock could possibly be used. Export the selection out & insert it into the next drawing Quote
alanjt Posted June 18, 2010 Posted June 18, 2010 Copyclip / Pasteclip Same as Ctrl+C or Ctrl+V. You could export all the entity data and entmake it elsewhere. However, that's a lot of legwork and will not work on all objects. If you can't copy/paste, I'd wblock/insert. Quote
Tharwat Posted June 18, 2010 Posted June 18, 2010 Hi. Try this also. (defun c:poly (/ pl) (setq pl (ssget "_X" '((0 . "LWPOLYLINE")))) (command "_copyclip" pl "" "_pasteclip" pause) (princ "CadTutor Forum") (princ)) Regards. Tharwat Quote
Lee Mac Posted June 21, 2010 Posted June 21, 2010 (edited) As posted over at AUGI, using ObjectDBX: > Edited November 28, 2010 by Lee Mac Quote
Lee Mac Posted November 28, 2010 Posted November 28, 2010 CopytoDrawing code updated here: http://lee-mac.com/copytodrawing.html Quote
Lee Mac Posted June 15, 2011 Posted June 15, 2011 Works great! Can it do multiple files? It could definitely be made to copy to multiple files - when I get a chance, I'll perhaps include a version to do so. 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.