Skip to main content
Solved

Translate AutoCAD block names to Esri shapefile


Forum|alt.badge.img

This should be a dead easy translation, but unfortunately I use FME only one or two times a year, and I’ve been too lazy to take enough time to read the documentation and become more proficient.

I have several hundred AutoCAD drawing files that I need to extract data from three feature types:

  • linework on layer R-UTIL-CATV-LINES
  • blocks on layer S-UTIL-CATV-SYM: all I want are the insertion points and the block name at each insertion point
  • blocks on layer S-UTIL-ELEC-SYM: again, just insertion points and the block name

The target writer type is Esri shapefile. I can get the geometry of the lines and the block insertion points, but I cannot get the block name no matter what permutations of translation parameter that I try. I have looked through the forum postings, but apparently this is one of those FME 001 translation types that is supposed to be self-evident. I will accept the fact that I’m a lazy ignoramus, but I would really appreciate a solution for getting those block names. Here is a link to a sample file (sorry, I can't figure out how to add an attachment-- nothing happens when I click on the 'Attachments' link).

Rudy Stricklan

Best answer by andreaatsafe

Hi @rudystricklan,

Unfortunately I was unable to download your source file.

To preserve block insertion points, you can uncheck the "Explode Blocks into Entities" so that you have just the insertion point:

 

We also have a tutorial for preserving block entities, going from DWG to shapefile, I think this example will assist you in setting up your workflow.

If you are still not getting the results you are looking for, could you attach your workspace (saved as a template which will include your source data)?

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

2 replies

Forum|alt.badge.img

Maybe this will help some other poor dolt. Since all I'm looking for are points, I decided to just write out to a csv file. That exercise reminded me how complicated the permutations are for FME reader parameters, though.

If I specify exploding bock entities and check "Preserve Insert Points", then what I get as an output is this:

i.e., no insert coordinates. But if I check the "Store Insert Location on Components", then I do get the insert coordinates:

OK, they are repeated three time I guess for good measure. At that point I can import the data into PostGIS and delete the dupes.

I know I'm being whiney, but it's these sorts of things that make FME less than intuitive. I suppose that's part of trying to pare down a semi-infinite number of reader options.


andreaatsafe
Safer
Forum|alt.badge.img+12
  • Safer
  • Best Answer
  • March 21, 2019

Hi @rudystricklan,

Unfortunately I was unable to download your source file.

To preserve block insertion points, you can uncheck the "Explode Blocks into Entities" so that you have just the insertion point:

 

We also have a tutorial for preserving block entities, going from DWG to shapefile, I think this example will assist you in setting up your workflow.

If you are still not getting the results you are looking for, could you attach your workspace (saved as a template which will include your source data)?


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