Adding an Object to the database
§ Find the right owner to add a newly created object to
§All objects have exactly one owner - The owner can be the database
§A LayerTableRecord can only be added to the Layer Table
§
§Add() for adding Symbol Table Records to  Symbol Table
§
§Use AppendXXX to add other kinds of objects to its owners
§ AppendEntity to add to BlockTableRecord
§
§Once an object is added to an owner, always let the transaction know!
§ newBtr.AppendEntity(circle) ‘Add our circle to its owner the BTR
§ trans.AddNewlyCreatedDBObject(circle, True)
§
In the previous slide we saw an example that opens the BlockTable. The example did not do anything to the BlockTable or add any new BlockTableRecord. Here let’s focus on how you would add an object to the database. First you would need to find the right object to add the new object to. If we are creating a new layer then we would need to add a new layerTableRecord to the LayerTable. If we want to add a new circle to the drawing then we would need to append it to either the Model Space blockTableRecord or PaperSpace BlockTableRecord. Remember to always use the AddNewlyCreatedDBObject of the transaction to let the transaction now about the new object.