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 <[email protected]>
Gesendet: Freitag, 9. Juni 2023 15:18
An: Simon Gröchenig <[email protected]>
Cc: [email protected] <[email protected]>
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/[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 Simon 
Gröchenig via QGIS-User
Sent: 09 June 2023 10:12
To: [email protected]
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:[email protected]]



Albin Egger-Str. 10

9900 Lienz

Tel: +43 4852-68568-31

Email: [email protected]<mailto:[email protected]>

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


<<attachment: dxf-export.zip>>

_______________________________________________
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

Reply via email to