From the course: AutoCAD: Building Add-ins with C#

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Working with table records

Working with table records - AutoCAD Tutorial

From the course: AutoCAD: Building Add-ins with C#

Start my 1-month free trial

Working with table records

- [Presenter] So far we've learned a lot about transactions, databases, object IDs, all within the Database namespace. We're going to bring this all together now, in this video as we create a new layer in our drawing, and we're gonna take advantage of the transaction process, the object ID for the layer table and then get the layer table object using both the transaction and the object ID. In the process, we're gonna create a new object, a layer table record, and add that layer table record to our layer table. We'll see how all this works together in this video. Let's open up our exercise file for this video. I go to the desktop, exercise files, chapter five, and we'll choose the 05-04 solution. We're gonna open that solution up. Open up our Initialization class and you'll notice that within the Initialization class we have, in the region Commands, a command that's already been written for us, LICreateLayer connected with a routine called cmdDbCreateLayer. Some early on variables…

Contents