Skip to main content
Question

Change autocad_layer

  • April 10, 2018
  • 4 replies
  • 46 views

Forum|alt.badge.img

Hi all,

A simple question for you but I am blocked...

I have a dwg file containing multiple layers. I want to rename some of autocad_layer.

Example : 1ROADS in the writer must be renamed in WAYS

Thank you for your help.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

zzupljanin
Contributor
Forum|alt.badge.img+5
  • Contributor
  • April 10, 2018

Hi,

if you want just to rename attributes do it with AttributeRenamer (AttributeManager will also do the trick). Since its Format Attributes you want to rename, expose them beforehand in properties window of Feature Type.

Before writing, make sure to name Feature Type correspondent name (WAYS in your example)

Cheers


Forum|alt.badge.img
  • Author
  • April 10, 2018

Hi @zzupljanin

Your procedure can change the attribute name itself but what I want to change is the value of the attribute.

Example : Autocad_layer = 1ROADS must be changed in Autocad_layer = WAYS

And then I use an automatic writer based on the value of the autocad_layer attribute (@Value(autocad_layer)


zzupljanin
Contributor
Forum|alt.badge.img+5
  • Contributor
  • April 10, 2018

Hi @zzupljanin

Your procedure can change the attribute name itself but what I want to change is the value of the attribute.

Example : Autocad_layer = 1ROADS must be changed in Autocad_layer = WAYS

And then I use an automatic writer based on the value of the autocad_layer attribute (@Value(autocad_layer)

Oh yeah, You're absolutely right. But solution with AttributeManager should do the trick...

 

 

And in case you're reading your file dinamically use conditional value inside AtributeManager like in 2nd picture

 

 

am.jpg

 

 

am-conditional.jpg

 


Forum|alt.badge.img
  • Author
  • April 10, 2018
Oh yeah, You're absolutely right. But solution with AttributeManager should do the trick...

 

 

And in case you're reading your file dinamically use conditional value inside AtributeManager like in 2nd picture

 

 

am.jpg

 

 

am-conditional.jpg

 

Your solution am-conditionnal suit very well.

 

Thanks