The most expensive sentence in a utility’s history was spoken by a project manager who said, “We’ll add the attributes later.” The utility had paid for a survey of its entire stormwater network. The survey was excellent: every manhole located to within a few centimeters, every pipe drawn on a clean layer, the whole network connected. But the diameters, the materials, the invert levels and the dates were not in the data. They were in the surveyors’ field books, in text labels scattered across the drawing and in the memories of three people, two of whom later retired. “Later” turned out to be fourteen months and a team of five, going from label to label, pipe to pipe, retyping what had already been measured. The geometry cost a fraction of what the missing attributes cost to recover.
That is the importance of what this guide covers. In a CAD drawing, geometry is easy and information is hard. A line is a line. The fact that it is a 300-millimeter concrete pipe laid in 1987, owned by the municipality and in poor condition, has to live somewhere, and the place where it lives determines whether anyone can ever use it. AutoCAD Map 3D offers several ways to attach such information to drawing objects, in a form closer to a GIS database than to a drawing. They go by names that confuse newcomers: object data, object classification, extended entity data, block attributes and external data links. In this guide I’ll explain what each is, how they differ, how to design a good attribute structure, how to create, edit, query and export the data, and how to carry it into a GIS without losing it.
This guide belongs to our Autodesk series. For the general idea of CAD versus GIS data models, see CAD vs. GIS: What Is the Difference and When to Use Each? and for the product overview, Autodesk Software for GIS Professionals: Complete Overview.
A note on facts: names, dialogs and capabilities vary by version. I describe the concepts and the typical locations. Check your version’s documentation for specific commands and limits.

The Problem: Where Does Information Live in a Drawing?
In ordinary AutoCAD, a drawing object has a geometry and a few built-in properties: layer, color, line type, line weight, and so on. These properties describe how it is drawn, not what it is. To say what an object is, you have several options, and in practice you will meet all of them.
| Where the information lives | What it is | Typical use |
|---|---|---|
| Text next to the object | A separate text object, placed close by | Labels on plans. Readable by people, not by software |
| Layer name | The name of the layer | “WM-PIPE-150-PVC”: a convention that encodes information in a name |
| Block attributes | Named text values attached to a block insertion | Symbols with data: valves, manholes, trees, title blocks |
| Extended entity data (XData) | Application-defined data attached to any object | Custom applications and third-party tools |
| Object data (Map 3D) | Tables of typed fields attached to objects | GIS-style attributes inside a drawing |
| Object classification (Map 3D) | Classes that define the data and display of a type of object | Structured, rule-driven feature types |
| Property sets (in some Autodesk products) | Named groups of properties attached to objects | Architecture, engineering and Civil 3D workflows |
| External database links | Links from objects to rows in an outside table | Connecting drawings to asset databases |
| Nothing at all | The information is in someone’s head | More common than anyone admits |
The further down this list you go, the closer you are to a GIS. The higher up you stay, the harder it is to turn drawings into data.
Object Data in Map 3D
What it is
Object data (OD) is a feature of AutoCAD Map 3D that lets you attach tables of typed attributes to drawing objects. Each table has a name and a set of fields. An object can have one or more tables attached, and each table holds one or more records. It works much like attribute tables in a GIS: a line that is a pipe can carry the fields diameter, material, year and status.
The structure
- An object data table is defined once, with a name, a description and a list of fields.
- Fields have a name, a data type, a description and a default value. Typical types are character (text), integer, real (decimal) and point (a coordinate). Check what your version offers.
- Records: the actual values for one object, in one table. An object may have several records in a table, which is a feature that has no direct equivalent in a simple GIS attribute table.
- Attachment: the data is attached to each object, and travels with it inside the drawing.
Why use it
- It makes drawings queryable. You can select all pipes with a diameter greater than 300 using a query, instead of looking at labels.
- It drives display. Map 3D can style objects (color, line type, labels) according to their data, producing thematic maps inside a drawing. See Mapping and Plotting in AutoCAD Map 3D: Styles, Thematic Maps and Map Book.
- It exports to GIS. Object data can be exported to Shapefile and other formats as attribute fields. See Importing and Exporting GIS Data in AutoCAD Map 3D.
- It imports from GIS. Attributes of imported GIS data can be stored as object data.
- It supports data-driven workflows, such as quantity takeoffs, checks and reports.
The catches
- It is specific to Map 3D. Other software typically ignores or loses it. A plain AutoCAD user may not see it. Other CAD programs usually can’t read it. A DXF export may not carry it. If object data matters, make sure that it is exported to a format that others can read, or deliver it in a table.
- It has no built-in domain or validation comparable to a geodatabase (no guaranteed lists of allowed values, no relationships, no topology rules). Quality depends on discipline. Check what your version provides.
- It lives inside drawings, which are individual files. Large organizations may end up with data scattered across thousands of drawings, with no central database.
- Field limits apply (names, lengths, numbers of fields). Check them.
Object Classification
What it is
Object classification is a Map 3D feature that adds structure and consistency on top of object data. You define classes of objects, such as “Water main”, “Valve” or “Building”, each with:
- a name and a description,
- properties (the attributes, which are the fields), with types and defaults,
- drawing characteristics: which layer, color and line type objects of this class should have,
- a hierarchy: classes can be arranged in a tree, with subclasses inheriting from parents (for example, “Pipe” with the subclasses “Water pipe” and “Sewer pipe”).
You can then classify existing objects (assigning them to a class and populating their properties), or create new objects that are born with the class’s structure and appearance.
Why use it
- Consistency: every water main in every drawing has the same fields, names and appearance.
- Fewer errors: drawers don’t invent their own attribute names and layer names.
- Efficient capture: creating a feature fills in the defaults.
- Queries and thematic maps by class.
- Standardized exports to GIS.
- Industry models: Map 3D has offered ready-made class definitions for utilities and other fields, which can serve as starting points. Check what is available in your version.
When it is worth it
Classification pays off when many people edit data across many drawings, and when consistency matters: utilities, municipalities and infrastructure owners. For a one-off conversion, it may be overkill. For a long-term, CAD-based asset records system, it is the right approach, though many organizations now move such data into a geodatabase or a spatial database, and use CAD only for the design. See Enterprise GIS & Spatial Databases: PostGIS, Geodatabases, and Server Architecture and Utilities Mapping with AutoCAD Map 3D and Civil 3D.
The Other Ways to Attach Data
Block attributes
A block is a reusable symbol, such as a valve. An attribute definition inside the block specifies named text values (tags), such as DIAMETER or TYPE. Each insertion of the block carries its own values.
- Strengths: widely supported across CAD software, easy to extract in bulk, ideal for point features such as valves, hydrants, manholes, poles and trees.
- Limits: only for blocks, not for lines and polygons. Values are text (numbers are stored as text). The tags must be consistent.
- Extraction: AutoCAD’s data extraction tools can produce a table (and an Excel file) of block attributes. Libraries, such as the Python
ezdxfpackage, can read them from DXF files. See Working with DWG and DXF Files in GIS (QGIS, ArcGIS, GDAL).
Extended entity data (XData)
Any object can carry extended data, attached by an application under a registered name. It’s a general-purpose mechanism used by many third-party tools and custom programs. It is not visible in the normal interface, and requires an application or a script to read and write it. It is limited in size per object.
Property sets
Some Autodesk products, especially in the architectural and building world, use property sets to attach named, typed properties to objects, in a way similar to object data. They are managed through definitions and can be used for schedules and reports. Whether they are available depends on the products installed.
Text and layers
Text labels and layer names are the lowest-tech carriers of information, and the most common in older drawings. They are readable by humans, but they have to be parsed, which is error-prone. See the extraction techniques in Working with DWG and DXF Files in GIS (QGIS, ArcGIS, GDAL).
External data and database links
Map 3D can link drawing objects to rows in external databases (through ODBC connections and link templates), so that the information stays in a central table, and the drawing holds only the key. It’s a more advanced approach, valuable when a corporate asset database already exists. It requires careful setup and maintenance. A related and more modern approach is to keep the features in a GIS database and connect to them from the drawing. See Importing and Exporting GIS Data in AutoCAD Map 3D.
Choosing Where to Store Attributes
| Situation | Best choice | Why |
|---|---|---|
| Point features such as valves, manholes and trees | Block attributes, or object data | Easy to extract, widely supported |
| Lines and polygons that need attributes inside CAD | Object data | The only built-in table-like mechanism for non-block objects (in Map 3D) |
| Many editors, many drawings, consistency needed | Object classification | Standard definitions |
| Data must be shared with non-Map-3D users | Export to GIS format or a table | Object data may not travel |
| A corporate asset database already exists | Link to the database, or keep features in a GIS | Single source of truth |
| One-off conversion of an old drawing | Create attributes during conversion, in the GIS | Less overhead |
| Exchange with other CAD software | Block attributes or a separate table | Most portable |
| Long-term archive | A GIS database, with object data exported | Durable and open |
The general principle: use CAD mechanisms for the design phase, and move the authoritative data into a GIS or a database as early as possible.
Designing a Good Attribute Structure
Whichever mechanism you choose, the quality of the design of your attributes determines whether the data is useful. The same principles apply as in Understanding Spatial Data Types and Attributes.
1. Start from the questions
What will the data be used for? Maintenance planning, customer service, design checks, regulatory reporting? List the questions first, then the fields needed to answer them.
2. Choose a small set of meaningful fields
For a water pipe, a minimal sensible set might be:
| Field | Type | Example | Notes |
|---|---|---|---|
| ID | Text | WM-000123 | Unique identifier |
| DIAMETER_MM | Integer | 150 | Unit in the field name |
| MATERIAL | Text, from a list | PVC | Controlled values |
| YEAR_INSTALLED | Integer | 1998 | Four digits |
| OWNER | Text | Municipality | |
| STATUS | Text, from a list | In service | Proposed, in service, abandoned |
| SOURCE | Text, from a list | As-built survey | How the position was obtained |
| ACCURACY_CM | Integer | 5 | Positional accuracy |
| DATA_DATE | Date, or text in ISO form | 2025-03-04 | When it was recorded |
| NOTES | Text | For exceptions only |
3. Name fields carefully
- Use short, clear, consistent names, without spaces or special characters.
- Think of the destination format. A Shapefile limits field names to 10 characters, so long names will be truncated, and collisions can occur. If you intend to export to Shapefile, design names that stay unique at 10 characters. See Shapefile Limitations and Encoding Problems (Field Names, UTF-8).
- Put the unit in the name (DIAMETER_MM) or the description.
4. Choose the right type
- Numbers as numbers, not text, so that you can sort and calculate.
- Identifiers as text, to preserve leading zeros and long values.
- Dates in a consistent form (ISO 8601 is best).
- Avoid mixed content in one field.
5. Control the values
Where possible, define lists of allowed values (domains) and use them consistently, for example material codes and status values. In object data and classification, this is partly a matter of discipline and documentation, so provide the list to every editor. In a geodatabase, you can enforce it.
6. Separate design from as-built
Record whether the feature is proposed, designed or as-built. Many data problems come from mixing them.
7. Record provenance and accuracy
Source, date and accuracy let others judge how far to trust the data.
8. Document it
Write a data dictionary: field, type, description, allowed values, units and example. See Metadata in GIS: Why It Matters and How to Create It.
Working With Object Data: The Typical Workflow
The exact commands differ between versions. These are the steps and where to look.
1. Define a table
In Map 3D, use the object data tools (on the ribbon, under the tools for creating and managing object data). Create a new table with a name, a description and the fields you designed, with their types and default values.
2. Attach data to objects
Select the objects, choose the table, and attach it. Fill in the values for each object, one at a time in a form, or in bulk with a data table view or by importing from another source.
3. Edit and view
Open the data table to see the values of selected objects in a grid, edit them and sort them. It’s the closest thing to a GIS attribute table inside Map 3D.
4. Query
Use the query tools to select objects by their data (for example, diameter above 300 and material equal to concrete), by location or by properties, and to save the results to a new drawing. See Spatial Analysis in AutoCAD Map 3D: Topology, Queries and Overlays.
5. Style by data
In the Display Manager, create styles and thematic rules based on object data, such as coloring pipes by diameter, and labels using field values. See Mapping and Plotting in AutoCAD Map 3D: Styles, Thematic Maps and Map Book.
6. Export
Export objects with their data to a GIS format. See below.
Moving Attributes Into and Out of Map 3D
Importing GIS data as object data
When you import a Shapefile or another GIS format with the Map 3D import tool, you can choose to create object data from its attribute table, so that each imported object carries the original attributes. You can also create layers from attribute values, and store attributes as block attributes or annotation. See Importing and Exporting GIS Data in AutoCAD Map 3D.
Exporting object data to GIS
With the Map 3D export tool, you can export selected objects to a Shapefile (or another format), choosing which object data tables become attribute fields, and mapping field names. Watch for:
- Field name length: Shapefile limits names to 10 characters.
- Data types: make sure numbers stay numbers.
- Multiple records: an object with several records in a table doesn’t map to a single row. Decide how to handle it (first record, a summary, or separate output).
- One geometry type per output file: points, lines and polygons must go into separate files.
- Coordinate system: state it, and check that the export assigns the right one.
- Encoding: check accented and non-Latin characters. See Shapefile Limitations and Encoding Problems (Field Names, UTF-8).
Getting data out of drawings without Map 3D
If you receive a drawing and don’t have Map 3D, object data may not be accessible. Options:
- Ask the sender to export the attributes (to a Shapefile, a GeoPackage or a spreadsheet).
- Ask for a data extraction of block attributes, or a table of object data.
- Use a data integration tool that reads object data, where supported, such as FME.
- Use a library or a script if the data is in block attributes or XData that can be read. See Working with DWG and DXF Files in GIS (QGIS, ArcGIS, GDAL) and Batch Processing DWG Files: Core Console, Scripts and FME.
- Don’t assume that a DXF export has preserved it.
Round trips
A common flow is: GIS data goes into a drawing for design, gets modified, and goes back. To make this reliable:
- Keep a unique ID on every feature, so that records can be matched after the round trip.
- Record the source and date.
- Don’t edit attributes in two places. Decide where the authoritative copy lives.
- Check the result after each transfer: counts, fields, values.
Converting Labels Into Attributes
Many older drawings hold their data only in text. If you are using Map 3D, there are tools that help to convert annotation into data, and in any environment you can write a short script, as shown in Working with DWG and DXF Files in GIS (QGIS, ArcGIS, GDAL). The key principles:
- Standardize the labels if you have influence. A consistent format (“150 PVC 1998”) is far easier to parse than free text.
- Parse with patterns (regular expressions) into fields.
- Associate labels with objects by proximity, with a sensible maximum distance.
- Check the ambiguous cases by hand.
- Keep the original text as a field or a note, so that you can audit the conversion.
- Document the rules you used.
A small example of the parsing step, on its own:
import re
labels = ["Ø150 PVC PN10", "DN200 DI", "⌀ 110 PE", "D=300 CONCRETE", "pipe 63mm HDPE"]
pattern = re.compile(r'(?:Ø|⌀|DN|D=|\bpipe\s*)\s*(\d{2,4})\s*(?:mm)?\s*([A-Za-z]+)?', re.I)
for text in labels:
m = pattern.search(text)
print(text, "->", (int(m.group(1)), m.group(2)) if m else None)This prints the diameter and material for each label. Adapt the pattern to your own conventions, and always test it on a sample. A pattern that works on 95 percent of the labels will quietly mis-parse the other 5 percent.
Civil 3D Objects and Their Data
Civil 3D has its own object model, in which intelligent objects carry data as properties:
- Parcels: area, perimeter, number and name, with labels and tables.
- Alignments and profiles: stations, lengths and design speeds.
- Surfaces: elevations, slopes and volumes.
- Pipe networks: pipes and structures with part properties, such as diameter, material, invert elevations and slope.
- Survey points: point numbers, descriptions and elevations, with description keys that map codes to styles.
- Corridors and sample lines.
- Property sets and user-defined properties for custom data, in some configurations.
Civil 3D objects are custom objects, so their data is read by Civil 3D itself, but a GIS or another CAD program may not see it. To use it elsewhere, export it: to LandXML, to a Shapefile or GeoPackage through the GIS export tools, or to a table. See Parcels, Alignments and Corridors in Civil 3D: A GIS Perspective, Surfaces and TIN Models in Civil 3D: Slope, Volumes and Watersheds, and Civil 3D Data Shortcuts and Xref Problems.
A Worked Example: A Stormwater Network With Proper Attributes
Task: an organization wants to convert its stormwater drawings into an attributed, queryable dataset, and keep it up to date in future drawings.
- Define the questions. The utility needs to find pipes by diameter and age, to estimate replacement costs and to identify pipes in poor condition near roads under construction.
- Design the structure. The data dictionary lists two classes: Storm pipe (ID, diameter in millimeters, material, year, status, invert up and down, source, accuracy, date) and Storm manhole (ID, depth, cover level, type, status, source, accuracy, date). Allowed values are listed for material, status and source.
- Create the definitions in Map 3D: an object data table (or object classes, if several editors will work with it) for each type, with the fields, types and defaults.
- Convert existing drawings: attach the structure to the pipes (lines) and manholes (blocks), and populate it from the labels, block attributes and the survey spreadsheet. Parse the labels with patterns, associate them with the nearest pipes, and review ambiguous cases.
- Check the quality. Run queries to find pipes with no diameter, with unlikely values, with years in the future or unknown materials. Fix them.
- Validate connectivity and topology. See Drawing Cleanup in AutoCAD Map 3D Explained.
- Export to the corporate GIS as a GeoPackage or geodatabase, with field names preserved, the coordinate system assigned and an ID that links back to the drawings.
- Decide where the master copy lives. The authoritative data lives in the GIS database. Future drawings pull the relevant extract from it, and design changes are loaded back after approval.
- Write the data dictionary and the delivery specification for contractors, so that new as-built drawings arrive with the right attributes. See CAD vs. GIS: What Is the Difference and When to Use Each?
- Train the team, and review a sample of every delivery.
The project cost less than the retyping exercise in my opening story, and it ended with something that could be maintained.
Common Mistakes
- “We’ll add the attributes later.” Capture them with the geometry, or as soon as you can.
- Using text labels as the only data.
- Assuming that object data travels to other software, or through a DXF export.
- Inventing a different structure in each drawing.
- No data dictionary, so that nobody knows what a field means.
- Free text where a list of values is needed.
- Numbers stored as text.
- Field names that collide when truncated to 10 characters.
- Mixing design and as-built data.
- Not recording source, date and accuracy.
- Letting multiple drawings each become the “master”.
- Doing a one-off conversion without making the next one easier.
- Overengineering: building a complex classification system for a small, one-off job.
- Not checking the quality of the data after conversion.
- Ignoring Civil 3D’s data when delivering to GIS.
Best Practices
- Decide early where the authoritative data will live, and treat CAD mechanisms as transport.
- Design the attributes from the questions, and write them down.
- Use consistent names, types and value lists across all drawings.
- Capture source, date, accuracy and status with every feature.
- Use unique IDs to link drawings, databases and GIS.
- Export to open formats for exchange and archiving. See Shapefile vs. GeoJSON vs. GeoPackage: Which Format to Use?
- Test round trips on a small sample.
- Validate attributes with queries and checks.
- Provide a delivery specification to everyone who sends you drawings.
- Train editors, and review samples.
- Automate repeated tasks with scripts. See Automating AutoCAD Map 3D: Scripts, AutoLISP and the .NET API and Python for GIS: Getting Started.
Final Thoughts
The project manager who said “we’ll add the attributes later” was not careless. He was working with the intuition of a drafting culture, in which a drawing is finished when it looks right. A data culture asks a different question: can this be used by someone who wasn’t there when it was drawn? AutoCAD Map 3D’s object data and classification are bridges between those two cultures. They let you keep working in the environment you know, while building the records that an organization will need for decades.
Take one drawing in your archive, a set of pipes, a set of buildings, a set of survey points, and write the data dictionary for it. Just the dictionary: the questions, the fields, the types, the values. If you can write it in an hour, you are ready to attach it. If you can’t, you have discovered why the “later” never comes, and you can fix that before the next project.
Where to go next: learn the tools that move data across the boundary in Importing and Exporting GIS Data in AutoCAD Map 3D, and the cleanup that prepares drawings in Drawing Cleanup in AutoCAD Map 3D Explained.



