How to export layers from Qgis to AutoCAD (DWG) and maintain projection

How to export layers from Qgis to AutoCAD (DWG) and maintain projection

secnFV9SX
Explorer Explorer
36,664 Views
6 Replies
Message 1 of 7

How to export layers from Qgis to AutoCAD (DWG) and maintain projection

secnFV9SX
Explorer
Explorer

Hello! I need to export som layers with som basic map information from Qgis so that I can open the different layers in AutoCAD, and the layers need to maintain their projection when I import them into AutoCAD. Does anybody know how to do it? Thanks a lot. 

 

Best, Sofie 

Accepted solutions (1)
36,665 Views
6 Replies
Replies (6)
Message 2 of 7

tboehler
Collaborator
Collaborator

I believe you need to have MAP 3D or Civil 3D (AutoCAD programs) to import the shp files from GIS/Qgis.  Unless there is a dxf or dwg export option in qgis - then you could import the dxf/dwg into plain AutoCAD.

 

There are apps or add on software that would help you import into plain AutoCAD.

 

Make sure you have the geolocation set in AutoCAD.  I believe this is now possible in plain AutoCAD.  (I'm strickly a Civil 3D user).

 

0 Likes
Message 3 of 7

ChicagoLooper
Mentor
Mentor

What format are the files? Are you dealing with shapefile(s)?   It sounds like you are. Plain vanilla AutoCAD is incapable of handling geospatial objects such as shapefile, geodatabase (gdb) files and georeferenced images—you need either Map3D or Civil3D. 

Using M3D /C3D you can use a Feature Data Object (FDO) connection or the MAPIMPORT command. Either way, the projection will be maintained.

 

Sorry, but vanilla AutoCAD doesn’t read or understand your QGIS data. 

Map3D’s Data Connect Palette. 

CCEF7B4B-C81F-415F-A5DB-C57CA16A56BE.jpeg

Chicagolooper

EESignature

0 Likes
Message 4 of 7

secnFV9SX
Explorer
Explorer
Accepted solution

Thank you for your responses and help. 

I found out that in Qgis you can export each layer manually to a DXF-format that I can open in AutoCAD, so I think I solved the issue. 

 

// Sofie

0 Likes
Message 5 of 7

radulowYE6J2
Contributor
Contributor

I am not sure what you mean by "maintain projection" because Qgis-dxf exports the drawing from model space. The projection is exported as it is shown on the screen.

 

Another tip which might help you: If you have conditional coloring of a layer like this

radulowYE6J2_0-1644489326352.png

then you can change a property while exporting to maintain the color codes. In the export dialog scroll to right

radulowYE6J2_1-1644489421390.png

And change the "Output Layer Attribute" to the Attribute which your colors are assigned to

Then you have the same layers in your DWG as in Qgis 

 

0 Likes
Message 6 of 7

ChicagoLooper
Mentor
Mentor

Just because you can ‘open’ it in AutoCAD doesn’t mean it has been reprojected—it just means you can ‘open’ it. An easy way, not the only way, to determine whether its been reprojected accurately is to turn on Bing Aerial map. if you are unable to turn it on, or if Bing map doesn’t match your line work, then you haven’t maintained the geospatial accuracy. 

Chicagolooper

EESignature

0 Likes
Message 7 of 7

robert_godinKK64X
Community Visitor
Community Visitor

This is working good that way now ?

 

0 Likes