If you have any questions about anything in this post, just ask and I'll be happy to explain.
Wow, such great responses!! Thanks to all. Lee, I will take you up on your offer. First, what's crazy to me, is for some reason I can actually follow the code. I guess me trolling through these forums and monkeying with enough code through the years is beginning to pay off a little. Weird...
Anyways, on to my questions.
(cons 10 pt1)
(cons) is used to to take the user input from pt1, combine it with 10 to turn it into a dotted pair to generate the necessary syntax for the DXF code, correct? Why no apostrophe when using (cons)?
(progn)
Reading the documentation I can't follow exactly what this function does. I read it, but just doesn't click for me? Hoping to get more insight from you if you wouldn't mind.

(append
(list
'(000 . "LWPOLYLINE")
'(100 . "AcDbEntity")
'(100 . "AcDbPolyline")
(cons 90 (length lst))
'(070 . 0)
)
(reverse lst)
)
The (append) function is new to me, but after reading up on the documentation I think I follow. In your other lists from the first three main routines, you used multiple arguments but did not append them. Any particular reason you did on the
c:mypline routine? Also, is the (list) function the only argument that (append) handles?
CAB, question for you my friend.
(mapcar
'(lambda (x / slst)
Of all the code through the years I've monkeyed around with, I see the (mapcar) and (lambda) functions used
a lot. After reading the documentation I'm assuming that the (lambda) function is just defining a function "on the fly" so to speak? I noticed that the x and slst symbols aren't localized at the beginning of the routine. Is this why the (lambda) function is used? To focus on the spot it's intended to be used, like the documentation states?
One rule for entmake is that DXF group 0 must the fist listed.
David, thank you for the gotcha's and tips. One quick question, is there any area of the documentation that defines the "rules" for properly formatting the DXF codes? I read from a post on another site the other day that DXF codes are to be listed in proper order. Sure enough, I tested Lee Mac's code above last night, mixed the DXF Group Code order in the list and things went wonky on me. The reason I ask is because I see there are common group codes and entity group codes, and I'm not sure on which codes go where when they're combined.
Very big thanks to all! :kewl: