Object Identity - ObjectID
§All Objects that exist in the database have an ObjectId
§Is unique per session (or instance) of AutoCAD
§Is generated automatically for an object when it is added to the database
§Non-database resident objects do not have an ObjectId set
§Can be cached to open an object later
§
§Get it using ObjectId property
§
§
§
When we use the AutoCAD .NET API we will most likely be using ObjectIds. Every object will have an ObjectId and it is unique throughout the session of AutoCAD. This means that even with multiple drawings open there will not be any two objects with the same ObjectId. The ObjectId is automatically generated when the entity is added to the database. We will use the ObjectId with Transactions to open objects for manipulation.