Skip to main content
Solved

DWG Writer - Force Output to Autocad Line


hansgm
Contributor
Forum|alt.badge.img+5

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.

View original
Did this help you find an answer to your question?

2 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • 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+5
  • Author
  • Contributor
  • July 20, 2020

Hi Dave

that's it.

Thanks very much.

Hans


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings