Skip to main content
Solved

autocad attribute block to kml

  • October 18, 2017
  • 3 replies
  • 76 views

Forum|alt.badge.img

I converted Autocad dwg to KML but I am having issues with attribute blocks. In KML file text in the block is separated into 3 entities with each one having a placemarker which I want to get rid of and show only plain text with proper attributes. Also I do not want to show kml_xxx for each poliline.

CAD file, workflow and KML file attached.

Any help would be much appreciated

Best answer by daveatsafe

Hi @klika68,

When adding your source AutoCAD DWG file to the FME workspace, please choose the following settings in the reader Parameters:

Group Entities By: Attribute Schema - this will expose the attributes on the features to the workspace

Explode Blocks into Entities: disabled - we want only the block location, not its parts

Read Interpreted Extended Entity Data: disabled - we don't want to expose the extended entity data in this dataset, which just appears to be a file path.

These settings will expose the following attributes on the TEXT features:

B_XXX

MH

SHAW

XXXX

Add these attributes to the TEXT KML feature type as well, if necessary. Now the TEXT placemarks in the output KML file will have the appropriate attributes on them.

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

daveatsafe
Safer
Forum|alt.badge.img+20
  • Safer
  • Best Answer
  • October 18, 2017

Hi @klika68,

When adding your source AutoCAD DWG file to the FME workspace, please choose the following settings in the reader Parameters:

Group Entities By: Attribute Schema - this will expose the attributes on the features to the workspace

Explode Blocks into Entities: disabled - we want only the block location, not its parts

Read Interpreted Extended Entity Data: disabled - we don't want to expose the extended entity data in this dataset, which just appears to be a file path.

These settings will expose the following attributes on the TEXT features:

B_XXX

MH

SHAW

XXXX

Add these attributes to the TEXT KML feature type as well, if necessary. Now the TEXT placemarks in the output KML file will have the appropriate attributes on them.


Forum|alt.badge.img
  • Author
  • October 19, 2017

Hi Dave,

unfortunately this does not work for me. Everything is pretty much the same, yellow place markers are still there. I lost MH blocks (circles) now yellow place markers. I do not want place markers to be shown.

"Add these attributes to the TEXT KML feature type as well, if necessary. Now the TEXT placemarks in the output KML file will have the appropriate attributes on them."

How do I do that?

Would you be able to upload FME workflow?

Thanks


Forum|alt.badge.img
  • Author
  • October 19, 2017
fme.png

Am I suppose to add AttributeCreator like this one? If so , what attribute values shoud I use?