All I need to do is change the linetype to "OVERHEAD_ELECTRIC_SERVICE", draw a line or two, then switch back to "BYLAYER" linetype. This code I have written doesn't change the linetype at all and when I take out (setvar "celtype" "bylayer"), it works but then of course I'm out of Bylayer linetype. Somebody please help!!! This is driving me crazy
(defun c:OES ()
(command "layer" "s" "ELECTRIC_LINE" "")
(SETVAR "CELTYPE" "OVERHEAD_ELECTRIC_SERVICE")
(command "LINE")
(setvar "CELTYPE" "bylayer")
(PRINC)
)