salman Posted June 17, 2010 Share 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 Link to comment Share on other sites More sharing options...
Tharwat Posted June 17, 2010 Share 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 Link to comment Share on other sites More sharing options...
jammie Posted June 17, 2010 Share Posted June 17, 2010 As an option wblock could possibly be used. Export the selection out & insert it into the next drawing Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 17, 2010 Share Posted June 17, 2010 Copyclip / Pasteclip Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 18, 2010 Share 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 Link to comment Share on other sites More sharing options...
Tharwat Posted June 18, 2010 Share 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 Link to comment Share on other sites More sharing options...
Lee Mac Posted June 21, 2010 Share Posted June 21, 2010 (edited) As posted over at AUGI, using ObjectDBX: > Edited November 28, 2010 by Lee Mac Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted November 28, 2010 Share Posted November 28, 2010 CopytoDrawing code updated here: http://lee-mac.com/copytodrawing.html Quote Link to comment Share on other sites More sharing options...
NH3man! Posted June 15, 2011 Share Posted June 15, 2011 Works great! Can it do multiple files? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 15, 2011 Share 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 Link to comment Share on other sites More sharing options...
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.