<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-IE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Chiz,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The only thing I can think of is
<b>Split Vector Layer</b> (<b>Vector</b> </span><span style="font-size:10.0pt;font-family:Wingdings;color:#1F497D">ð</span><span style="color:#1F497D">
<b>Data Management</b>) that will allow you to split your Layer by attribute, outputting a DXF for each layer.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">One other consideration would be, splitting the single layer by attribute in QGIS as separate Layers and then exporting the Project…..<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Kind Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><br>
Richard<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<table style="FONT-SIZE: 9pt; HEIGHT: 321px; FONT-FAMILY: Arial, sans-serif; WIDTH: 500px; LINE-HEIGHT: 15px" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial,sans-serif; WIDTH: 500px; COLOR: #004d44; PADDING-BOTTOM: 6px">
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #004d44"><br>
——</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #004d44">Richard McDonnell MSc GIS, FME Certified Professional</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44"><i>Geographical Information Systems Officer</i></span><br>
<br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">——</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #004d44">Oifig na nOibreacha Poiblí</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">Office of Public Works</span><br>
<br>
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #565148">Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #565148">Jonathan Swift Street, Trim, Co Meath, C15 NX36</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #565148">——</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #565148">M +353 87 688 5964 T +353 46 942 2409</span><br>
<a href="https://gov.ie/opw">https://gov.ie/opw</a><br>
<br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">——<br>
To send me files larger than 30MB, please use the link below https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie<br>
</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">Email Disclaimer: https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/
</span></td>
</tr>
</tbody>
</table>
<table style="FONT-SIZE: 9pt; FONT-FAMILY: Arial, sans-serif; WIDTH: 420px; LINE-HEIGHT: 15px" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial,sans-serif; WIDTH: 420px; COLOR: #004d44; PADDING-BOTTOM: 6px">
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #004d44"><br>
——</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #004d44">MSc GIS, FME Certified Professional</span><br>
<br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">——</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #004d44">Oifig na nOibreacha Poiblí</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">Office of Public Works</span><br>
<br>
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #565148">Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #565148">Jonathan Swift Street, Trim, Co Meath, C15 NX36</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #565148">——</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #565148">M +353 87 688 5964 T +353 46 942 2409</span><br>
<font color="#565148"><a href="https://www.opw.ie">https://https://gov.ie/opw</a></font><br>
<br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">——<br>
</span><span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">Email Disclaimer:
<a href="https://www.opw.ie/en/disclaimer/">https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/</a></span>
</td>
</tr>
</tbody>
</table>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-IE">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-IE"> QGIS-User <qgis-user-bounces@lists.osgeo.org>
<b>On Behalf Of </b>Chiz Harward via QGIS-User<br>
<b>Sent:</b> 13 February 2024 10:04<br>
<b>To:</b> qgis-user@lists.osgeo.org<br>
<b>Subject:</b> [Qgis-user] Convert .shp to CAD, with attribute values as different layers<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB">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. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">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<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Running QGIS 3.16.11 Hannover<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Any help appreciated<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;color:black;mso-ligatures:standardcontextual;mso-fareast-language:EN-GB">Chiz Harward BA MCIfA he/him</span><span lang="EN-GB" style="font-size:10.0pt;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;color:black;mso-ligatures:standardcontextual;mso-fareast-language:EN-GB">Senior Archaeologist, Urban Archaeology<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;color:black;mso-ligatures:standardcontextual;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;color:red;mso-ligatures:standardcontextual;mso-fareast-language:EN-GB">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<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;color:black;mso-ligatures:standardcontextual;mso-fareast-language:EN-GB"><br>
<a href="http://urban-archaeology.blogspot.com/" target="_blank"><span style="color:blue">http://urban-archaeology.blogspot.com</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;color:black;mso-ligatures:standardcontextual;mso-fareast-language:EN-GB"><a href="https://www.facebook.com/urb.arch/"><span style="color:blue">https://www.facebook.com/urb.arch/</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;color:black;mso-ligatures:standardcontextual;mso-fareast-language:EN-GB"><a href="http://gloscross-slabs.blogspot.co.uk/"><span style="color:blue">http://gloscross-slabs.blogspot.co.uk/</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;color:black;mso-ligatures:standardcontextual;mso-fareast-language:EN-GB"><br>
</span><span lang="EN-GB" style="font-size:10.0pt;mso-ligatures:standardcontextual;mso-fareast-language:EN-GB">Urban Archaeology<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;mso-ligatures:standardcontextual;mso-fareast-language:EN-GB">2 Slad View,
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;mso-ligatures:standardcontextual;mso-fareast-language:EN-GB">Gaineys Well,
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;color:black;mso-ligatures:standardcontextual;mso-fareast-language:EN-GB">Stroud,<br>
Gloucestershire<br>
GL5 1LQ<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;color:black;mso-ligatures:standardcontextual;mso-fareast-language:EN-GB">07881 486837<br>
<a href="mailto:chiz@urban-archaeology.co.uk"><span style="color:blue">chiz@urban-archaeology.co.uk</span></a><br>
<br>
</span><span lang="EN-GB" style="font-size:8.0pt;color:black;mso-ligatures:standardcontextual;mso-fareast-language:EN-GB">Urban Archaeology is a trading name of Chiz Harward BA MCIfA<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
</div>
</div>
</body>
</html>