Hi guys!

How are you?
I'm working in a project that I have create alignments.
But there are alignments that I have to do some autocad commands to get my goal.
steps:
1-create a line from the center
2-create a line perpendicular to the center line.
3-move that perpendicular line to the intersection
4-rotate the group from the center to make a better alignment.
5-trim the lines
i'd like to know if there is a easier way to do that, or maybe a lisp could help me.
Thanks in advance