I'm very new to Autolisp, and I am having some trouble with my code. Here's a description of what I am trying to do:
I have a drawing consisting of two pipes, bottom pipe and upper pipe. They will be inclined in reference to the paper, represented by the square. I need to insert at the end of these pipes a block (inside the block will be a leader), which then will be rotated to align itself with the paper orientation.
Somehow, the code i've written so far is not working, I believe it's because i'm not getting the correct syntax of the commands i'm using. Would anyone be willing to take a look? Help is much appreciated.
See attached files for my code and the drawing (containg the desired block)
ttten.LSP
Drawing1.dwg