Hi,
if you want to add attributive data to AutoCAD geometry (non block geometry) then you have to develop it. It is possible, but nothing written in a few minutes.
Think also about handling like _COPY (to hold id's unique you have to react to all copy-like commands to give the copied objects new id's), command's like _BREAK (splitting one object in two) also needs to get solved from your app and that is only 2D .... A lot of work.
The options I see (without Map3D functionality).
a) you can connect your AutoCAD objects to ODBC database records (>>>details<<< to _DBCONNECT and following), I'm not sure to suggest that way as there are multiple releases of AutoCAD now passed without any new features with that.
b) you can hold attributive data in XRecords/Dictionaries
c) you can hold attributive data in XData (not recommended as it's limited to 16kB)
d) you can develop your owm database connection that might also hold the geometry in the database so you don't loose the connection between database-record and geometry.
So there are many ways possible, if we know better what you really want to achive the tips get more and more fitting to your needs.
- alfred -
------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ...
blog.ish-solutions.at ...
LinkedIn ...
CDay 2026------------------------------------------------------------------------------------
(not an Autodesk consultant)