[Qgis-user] DXF Export symbolLayer

Simon Gröchenig groechenig at zt-gis.at
Mon Jun 12 00:08:09 PDT 2023


Hi Richard,

thank you for your support.

I have added a (virtual) attribute 'RefName' with a similar CASE WHEN statement. But I don't see how this should change the DXF-output.

Some information:

  *   I have a point layer that I want to export to a DXF-file using the native:dxfexport algorithm.
  *   This layer has a categorized renderer.
  *   For the DXF export, I also set a field ("sgg_code" is my case) to split the features into several DXF-layers.
  *   Now I also have a field "RefName".
  *   The RefName corresponds with the expression used for the categorized rendering.
  *   And the RefName does NOT match the field "sgg_code" used for the DXF-split.
  *   I want to use the RefName (or labels set in categorized renderer) values instead of symbolLayer0, symbolLayer1, ...

I have attached a simple project with the point layer.

Simon


________________________________
Von: Richard McDonnell <richard.mcdonnell at opw.ie>
Gesendet: Freitag, 9. Juni 2023 15:18
An: Simon Gröchenig <groechenig at zt-gis.at>
Cc: qgis-user at lists.osgeo.org <qgis-user at lists.osgeo.org>
Betreff: RE: DXF Export symbolLayer


Hi Simon,

You don’t mention the field name in QGIS, but in the example below, I will use “TEST”

Create a new field, giving it a name, it can be “RefName” if you like, you can then create an expression like



CASE WHEN " TEST " ='symbolLayer0' THEN 'SomeOtherStringA'

WHEN " TEST " ='symbolLayer1' THEN 'SomeOtherStringB'

END



This should look at the “TEST” Attribute and where it has ‘symbolLayer0’ it will output 'SomeOtherStringA' and where “TEST” is ‘symbolLayer1’ it will output 'SomeOtherStringB'

When its complete you can delete any attributes you don’t need

I hope that helps,



Regards,



Richard



——
Richard McDonnell MSc GIS, FME Certified Professional
FRM Data Management

——
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/richard.mcdonnell@opw.ie

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 <qgis-user-bounces at lists.osgeo.org> On Behalf Of Simon Gröchenig via QGIS-User
Sent: 09 June 2023 10:12
To: qgis-user at lists.osgeo.org
Subject: [Qgis-user] DXF Export symbolLayer



Hi all,



I am trying to configure a DXF export using the native:dxfexport algorithm and layer symbology.



Using the categorized rendering for a vector layer results in values "symbolLayer0", "symbolLayer1", ... in the dxf-file. In Autodesk Viewer these values are the "Name", ArcMap imports these as "RefName" attribute.



My question: how can I modify the values symbolLayer0, symbolLayer1, ... to another string? A third-party tool requires special values here.



Best regards
Simon





------------------------------------------------

Vermessungskanzlei Neumayr

Simon Gröchenig - Geoinformation



[cid:image001.jpg at 01D99ADA.4ADA9F90]



Albin Egger-Str. 10

9900 Lienz

Tel: +43 4852-68568-31

Email: groechenig at zt-gis.at<mailto:groechenig at zt-gis.at>

Web: http://www.zt-gis.at/


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230612/8b113029/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 1879 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230612/8b113029/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dxf-export.zip
Type: application/x-zip-compressed
Size: 22301 bytes
Desc: dxf-export.zip
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230612/8b113029/attachment-0001.bin>


More information about the QGIS-User mailing list