I've always wanted autoCAD to have this function natively.
I still have to hit some angles. I believe I have the Clockwise-p function.
If you could help me fix it, I'd be grateful.
Thanks to member PKENEWELL for encouraging me to learn about the GRREAD function.
If he had not made a constructive criticism at the time, i would not have expanded my knowledge, but of course I am far from the quality of the people here.
You have a good start Augusto. I would recommend strongly however you learn how to do entity modification using the entity list and ENTMOD, or using VLA-Object modification rather than repeating a command sequence in the GRREAD loop. Your current method is slow and very inefficient. There is also a number of other things that must be emulated in a GRREAD loop to make the program viable to other users, such as object snaps and function keys etc. I'm sorry I currently do not have time to play more with your code and give you an example. Keep learning and experimenting with the code and you will progress.
To give you something to try out: This is a function I created to emulate Function keys while working in a GRREAD loop.
;; Returns a list with duplicate elements removed.
You may be interested in this alternative implementation of orthogonal tracking with grread.
It was just missing defining the variable "position".
I believe that from this concept it is possible to make many variances. Make yourself comfortable.
Thanks Augusto. I'm glad I was able to inspire you to learn more. Looks like you're learning quickly too, and as Lee pointed out, you have caught the GRREAD bug.