@GLAVCVS I tried your program and it is very nice. Yesterday I was thinking of writing a random chord length routine but you seem to have a good solution, so now I will just study your code to see what I can learn.
Just a real comment, re speed.
Manual task do 2000+ changes = 3hrs.
1st go at a program using command = 32 minutes.
About 5 go, using VL = 2 minutes. Client was very
So if speed is a problem need to look at what your coding just changing to VL or entmake may give improvements, but using defuns and cond v's multi If's can increase speed also.
Review lines 1076-1112 of my TabSort program for an example of how to accomplish this using COM; though, this is one of those scenarios where a simple command call will likely perform faster, given the number of operations involved to copy the layout - such operations can be performed by the C++ implementation of the command rather than individually interpreted through evaluation of each LISP expression.