LISP2LEARN Posted July 25, 2011 Share Posted July 25, 2011 Hi, I was just wondering if anyone has a lisp routine for NCOPY with a little twist. Ncopy is great but itself but it takes forever to copy multiple entities. Is there a way to select entities via crossing window? Thanks. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted July 25, 2011 Share Posted July 25, 2011 Selection of nested entities via window selection is difficult and troublesome - the ssget function has the ":N" mode string for supposedly allowing selection of nested entities, but this is temperamental at best and rarely works. My guess is that you would have to write your own nested selection function, which may be something along the lines of using getcorner or a grread construct to obtain a selection window from the user, detect any blocks within this window, iterate through the block definition of each of the selected blocks and, (perhaps using a transformation matrix), transform these objects to the selected block references to test whether they lie within the selection window. Quote Link to comment Share on other sites More sharing options...
LISP2LEARN Posted July 25, 2011 Author Share Posted July 25, 2011 I guess I'll pick, pick, and pick. Thanks Lee. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted July 25, 2011 Share Posted July 25, 2011 I guess I'll pick, pick, and pick. Thanks Lee. Sorry to be the bearer of bad news, I welcome others to correct me should I have overlooked something. Quote Link to comment Share on other sites More sharing options...
alanjt Posted July 26, 2011 Share Posted July 26, 2011 If you have so many things to copy from your XRef to the parent DWG, just open the XRefed drawing and clipboard the items. BTW, XOpen opened a selected XRef. Quote Link to comment Share on other sites More sharing options...
LISP2LEARN Posted July 26, 2011 Author Share Posted July 26, 2011 Yes, I've been doing that. It's just a burden always copying with base point and changing the layer of the entities. If I use ncopy, all entities will be on my current layer. Thanks Alan, it just struck me. The answer is right in front of me. I'll just write a routine I mention above. Sometimes... I'm stupider than the stupid. If you have so many things to copy from your XRef to the parent DWG, just open the XRefed drawing and clipboard the items. BTW, XOpen opened a selected XRef. 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.