While doing automation in AutoCAD electrical it is the harder factor to call any ACADE command from AutoLISP. but it is easy to call plane AutoCAD command from AutoLISP.
;EX. for Line
(command "Line" (list 0 0 ) (list 10 10) "")
but you can not call any electrical command like that
;if I need to insert Ballon it should be like that
(AEBALLON (car (entsel)) (list 0 0 ) (list 10 10) "")
;for RESEQUENCE it should like that
(AERESEQUENCE "PROJECT" 1 "")
;For Circuit Builder it should like that
(AECIRCBUILDER "Circuit name" (optional XML file) (insertion point) "")
If this done so it saves a lot of time of R&D. and make ACADE simple to automate.