Skip to main content
Solved

autocad attribute block to kml


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.

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

3 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • 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?


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