Author Topic: NCOPY entire layer  (Read 14964 times)

0 Members and 1 Guest are viewing this topic.

danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Re: NCOPY entire layer
« Reply #15 on: December 16, 2015, 01:47:30 AM »
Thank you  T.Willey for your program.
It works good even very good, but when you copy items to current drawing you have a problem to move it to another place..
Is it possible to involve a "move" command to selection set of items "transferred" to current drawing from nested one, like in a one of previous posts?


Code - Auto/Visual Lisp: [Select]
  1. (command "_.move" p "" pause)  ; HIGHLIGHT IT AND BEGIN A MOVE ACTION
  2.  

T.Willey

  • Needs a day job
  • Posts: 5251
Re: NCOPY entire layer
« Reply #16 on: December 16, 2015, 08:19:02 AM »
I would believe that it would not be a problem.  I have not looked at the code since I posted it, so if you want to add that line of code it should work.

It looks like you would need to create a new variable for the selection set, then after all the new items are created in the drawing (variable NewObj), add that object to the selection set.  Then you can just pass the selection set to the move command.  Sorry I do not have time right now to add this.  Hope this explains it clear enough that you can add the bit of code you want.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Re: NCOPY entire layer
« Reply #17 on: December 17, 2015, 01:53:29 AM »
It seems, I find another way to solve a problem.
I did a little modification of routine from here:

http://www.theswamp.org/index.php?topic=27354.msg329179#msg329179

Now you can copy nested blocks and/or other entities and move it in a same time (see attached lisp)

Remain a "little" issue: Routine explode blocks in current drawing...
Is it  possible to fix it?
« Last Edit: December 17, 2015, 02:46:45 AM by danglar »