Skip to main content
Solved

Force line to be written as polyline in AutoCAD

  • October 25, 2019
  • 3 replies
  • 179 views

zzupljanin
Contributor
Forum|alt.badge.img+4

Hi,

 

By default autocad_line gets writen in Autodesk DWG/DXF as line if it has 2 vertices or polyline if it has 2 or more vertices according to https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/acad/Lines.htm

 

Is there a way to treat and write lines as polylines regardless of number of vertices in Autodesk DWG/DXF.

 

Cheers,

Želimir.

 

 

Best answer by daveatsafe

Hi @zzupljanin,

Please create an attribute on the output features named autocad_original_entity_type, and set it to autocad_polyline. This will force the output to be a polyline, regardless of the number of vertices.

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.

3 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 2252 replies
  • October 25, 2019

If you create a polyline in AutoCAD and check quickproperties it is indeed a polyline.If you now keep the begin and end vertex and remove all in between and check quick properties, autocad still says it is a polyline. Afaik, you cannot (over)write the autocad parameter to do so. I would argue that to call a line a polyline would be like realizing that you can identify a square as a heavily stroked circle. (even if it brakes some circle rules)


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • Best Answer
  • October 25, 2019

Hi @zzupljanin,

Please create an attribute on the output features named autocad_original_entity_type, and set it to autocad_polyline. This will force the output to be a polyline, regardless of the number of vertices.


zzupljanin
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 120 replies
  • October 28, 2019

Hi @zzupljanin,

Please create an attribute on the output features named autocad_original_entity_type, and set it to autocad_polyline. This will force the output to be a polyline, regardless of the number of vertices.

Yes, that's the one. Thank you