Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My colleague tells me (vaguely) that spatial join is possible in standard versions of autocad using reference manager and xref. Does anyone know how to do this? Or if not, how to do a spatial join of data in autocad.

(Map3d versions excluded.)

Edit: Yes, I mean the same kind of spatial join as in arcmap. I will probably have some extended entity data attached to a bunch of lines. I am wondering how you would join this to data from either the nearest, or all overlapping, points or polygons.

share|improve this question

standard autocad does have a db join (called link templates) but the join will only go to block references or if you write your own code to eed {extended entity data}(as there is no object data in autocad only map3d).
**EDIT: I take that back. you can attach a link to about any object but the "id" will have to be managed manually similar to a hyperlink.

But the question you ask about "spatial" join is quite different.

A spatial join (in arcmap) is when you have two feature classes with location information for both, and you join based on the location. please clarfy your question
i.e.this point is in this poygon and attach attributes from the polygon to the point.
Spatial Join arcmap style

Now the link template in autocad is accessed through the dbconnect command (see command in image).
The image also shows that there is quite extensive help for the subject.
The data source must be managed through the windows "data sources (ODBC)" icon in the control panel.
If this is the functionality you are looking for there are some samples in the sample folder of your autocad installation.

share|improve this answer
Thank you. See my edit - I do mean arcmap style spatial join. Does the procedure you show do that? – Sideshow Bob Feb 9 '12 at 10:08
No this is just linking data to an object. It is possible though with map3d Not sure about base autocad. I will research and edit. – Brad Nesom Feb 9 '12 at 23:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.