<div dir="ltr"><div>Good evening to all,</div><div><br></div><div>as in object,  there is a way to save a DXF from a 3D polygon layer, using pyQgis ?</div><div><br></div><div>I am using:</div><div><br></div><div>QgsVectorFileWriter.writeAsVectorFormat(layer, file, "UTF-8", crsCrs, "DXF", overrideGeometryType=QgsWkbTypes.PolygonZ,skipAttributeCreation=True)</div><div><br></div><div>but (also it works with other file types) the option "overrideGeometryType" seems to be irrilevant with DXF, and it saves in 2D.</div><div><br></div><div>Someone can help me to discover the correct syntax ?</div><div><br></div><div>Thank you in advance</div><div><br></div><div>Roberto<br></div><div><br></div><div><br></div></div>