Exporting Existing Entity Information In Entmake Format
Instead of issuing and debugging all of the commands required to
construct an entity, simply draw and edit the entity you require,
then export its information along with the proper entmake call
and format and then insert the new code into your AutoLisp routine.