Skip to main content
Solved

DWG Writer - Force Output to Autocad Line

  • July 20, 2020
  • 2 replies
  • 55 views

hansgm
Contributor
Forum|alt.badge.img+6

Hello

I want to write Lines (with 2 points) instead of Polylines, so i use a Chopper to create Lines with 2 Points. But if i use a DWGStyler to set the Linetype all those Lines are written to DWG as Polylines. If i do not use the DWG Styler everything is like i need it. I'm not sure if the DWGStyler is the main reason for this.

So i would like to know, is it possible to force the Writer to create Autocad Lines instead of Polylines?

 

The writers Autodesk AutoCAD DWG/DXF and Autodesk AutoCAD RealDWG DWG/DXF create the same result.

 

Thanks

Best answer by daveatsafe

Hi @hansgm,

The DWGStyler adds (but does not expose) the attribute autocad_elevation, which forces the writer to create a polyline. Please use an AttributeExposer to expose autocad_elevation, then an AttributeRemover to remove it.

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.

2 replies

daveatsafe
Safer
Forum|alt.badge.img+20
  • Safer
  • Best Answer
  • July 20, 2020

Hi @hansgm,

The DWGStyler adds (but does not expose) the attribute autocad_elevation, which forces the writer to create a polyline. Please use an AttributeExposer to expose autocad_elevation, then an AttributeRemover to remove it.


hansgm
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • July 20, 2020

Hi Dave

that's it.

Thanks very much.

Hans