Hi Chiz, The only thing I can think of is Split Vector Layer (Vector => Data Management) that will allow you to split your Layer by attribute, outputting a DXF for each layer. The only issue is that you will have a series of separate Layers which you will have to manually merge into a single dxf file.
One other consideration would be, splitting the single layer by attribute in QGIS as separate Layers and then exporting the Project..... Sorry I can't be of more help, there's probably a way, using Python, to carry out the split and write out a single DXF, but I can't help you there. Kind Regards, Richard -- Richard McDonnell MSc GIS, FME Certified Professional Geographical Information Systems Officer -- Oifig na nOibreacha Poiblí Office of Public Works Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36 Jonathan Swift Street, Trim, Co Meath, C15 NX36 -- M +353 87 688 5964 T +353 46 942 2409 https://gov.ie/opw -- To send me files larger than 30MB, please use the link below https://filetransfer.opw.ie/filedrop/[email protected] Email Disclaimer: https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/ -- MSc GIS, FME Certified Professional -- Oifig na nOibreacha Poiblí Office of Public Works Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36 Jonathan Swift Street, Trim, Co Meath, C15 NX36 -- M +353 87 688 5964 T +353 46 942 2409 https://https://gov.ie/opw<https://www.opw.ie> -- Email Disclaimer: https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/<https://www.opw.ie/en/disclaimer/> From: QGIS-User <[email protected]> On Behalf Of Chiz Harward via QGIS-User Sent: 13 February 2024 10:04 To: [email protected] Subject: [Qgis-user] Convert .shp to CAD, with attribute values as different layers Hallo, I have a shapefile that has attributes and need to convert this to a CAD file. I can do this by export project to dxf, but it comes through with one CAD layer per shapefile. I need to have the shapefile come through as different CAD layers according to one of the attribute fields. Example: Shapefile contains many polygons, the attribute field 'colour' of each polygon can be red, blue, green etc. I need it to get it into CAD with a layer for the red polygons, one for the blue, one for green etc Running QGIS 3.16.11 Hannover Any help appreciated Chiz Harward BA MCIfA he/him Senior Archaeologist, Urban Archaeology I work flexibly - so whilst it suits me to email now, I do not expect a response or action outside of your own working hours http://urban-archaeology.blogspot.com<http://urban-archaeology.blogspot.com/> https://www.facebook.com/urb.arch/ http://gloscross-slabs.blogspot.co.uk/ Urban Archaeology 2 Slad View, Gaineys Well, Stroud, Gloucestershire GL5 1LQ 07881 486837 [email protected]<mailto:[email protected]> Urban Archaeology is a trading name of Chiz Harward BA MCIfA
_______________________________________________ QGIS-User mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
