For all objects lose the -1, 5 and 330 groups.
For lines lose the 100 groups.
IIRC 8, 67, and 410 are optional but a good idea (will default to current space etc).
Entity types addded to AutoCAD 13 and later require the 100 groups, for example mtext.
Thus, this should work:
(entmake
'(
(0 . "LINE")
(10 512691.0 0.0 0.0)
(11 512455.0 0.0 0.0)
(210 0.0 0.0 1.0)
)
)