(entmake [elist])
Makes a new object or entity, gives it a handle and entity name, and returns the new entity name.
This function allows you to define new entities -- both graphical and nongraphical -- where elist is a list of the information necessary to define the entity. If any required definition data is omitted, entmakex returns nil and the entity is rejected. If you omit optional definition data (such as the layer), entmakex uses the default value. If successful, entmakex returns the name of the entity created. If entmakex is unable to create the entity, the function returns nil.
Objects and entities without owners are not written out to .dwg or .dxf files. Be sure to set an owner at some point after using entmakex. You can use dictadd to set a dictionary to own an object.