Skip to main content
Solved

Force line to be written as polyline in AutoCAD

  • October 25, 2019
  • 3 replies
  • 147 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.

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

3 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 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
  • 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
  • October 28, 2019
daveatsafe wrote:

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


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