From the course: AutoCAD Map 3D Essential Training

Creating object data definitions - AutoCAD Tutorial

From the course: AutoCAD Map 3D Essential Training

Start my 1-month free trial

Creating object data definitions

- [Man] Let's look at object data tables. They're used to store your own custom properties. Every feature in your DWG can have object data attached, and this starts with the creation of a place to put this data, the object data table. So let's create an empty one now. First thing we need to do is go to the map setup ribbon. If the map setup ribbon does not exist in your current AutoCAD session, make sure you change your workspaces and ensure that the planning and analysis workspace is checked. If it is, you should see the map setup ribbon at the top. Under map setup ribbon, click define object data. Where it says table, there should be no tables in the drop-down box. Click new table, and we'll create a brand-new table. Call it STREETS, all uppercase. Now that we have a table name, we're going to add fields to this table. The first field we're going to add is FEATID or the ID of the features we're going to draw. This will be under description unique ID for streets. And the default value will be zero, so if we draw a new one, it'll automatically have a unique ID of zero that we can change later. For field type, we have a number of types. We have integer, character, point, and real. The integer is unique values one, two, three, four. Characters are any kind of phrasing or words. The point is an XYZ value usually separated by commas. And the real is a float or decimal points within your number. In this case, we're going to choose integer, no decimal points. Click add when we're done. You should see FEATID. If you pick on FEATID, you'll see what you just entered. FEATID integer, unique ID for streets and zero. Let's change the field name now and call it STREET, singular, all uppercase. That's going to be the street name. So for description, I'm just going to type in street name. There'll be no default value, so we'll get rid of that zero. And for type, instead of integer, we're going to use character, because it'll be characters. And we'll put in the full name of the streets later on. So let's click add. Now we have a STREETS object data table with FEATID and STREET, which is the street name. We can click okay to create it and close. Now we have an empty object data table that we can use to attach to any object inside of AutoCAD.

Contents