Solved

Blocks not written to Autocad drawing

  • 20 November 2021
  • 8 replies
  • 15 views

I am using FME 2019.2 to read multiple Autocad drawings (r.2018) and then write them out into a single combined DWG. I've referenced a template file with all of the block definitions in it for the writer, but cannot seem to get any of my CAD blocks to write. The log tells me that "AutoCAD Writer: 3189 feature(s) were rejected and not written to the destination dataset", but doesn't give any hint as to why they were rejected. I've tried this using both the RealDWG and Map OD readers & writers, and I've tried it both with and without a DWG Styler transformer. Why are my blocks getting lost in translation?

icon

Best answer by tomfriedl 1 December 2021, 09:02

View original

8 replies

Userlevel 2
Badge +17

Hi @garyb​,

Would you mind posting a copy of your workspace and a log file? This may give us the information needed to solve the problem.

I'm happy to share the workspace and log. Thanks for taking a look at it for me.

Not too sure why the workspace didn't upload there. Let's try again.

Userlevel 2
Badge +12

see the log-file:

2021-11-25 11:23:29| 353.6| 0.0|WARN |Specified block 'EX SURV TRAVERSE HUB' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.6| 0.0|WARN |Specified block 'EX SURV TRAVERSE HUB' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.6| 0.0|WARN |Specified block 'EX SURV LEAD PLUG' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.6| 0.0|WARN |Specified block 'EX SURV LEAD PLUG' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.6| 0.0|WARN |Specified block 'EX SURV OLD IRON PIN' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.6| 0.0|WARN |Specified block 'EX SURV LEAD PLUG' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.7| 0.0|WARN |Specified block 'EX SURV LEAD PLUG' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.7| 0.0|WARN |Specified block 'EX SURV OLD IRON PIN' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.7| 0.0|WARN |Specified block 'EX MISC POST' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.7| 0.0|WARN |Specified block 'EX MISC POST' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.7| 0.0|WARN |Further instances of this message will be suppressed

 

Have you set a AutoCad-Template?

see the log-file:

2021-11-25 11:23:29| 353.6| 0.0|WARN |Specified block 'EX SURV TRAVERSE HUB' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.6| 0.0|WARN |Specified block 'EX SURV TRAVERSE HUB' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.6| 0.0|WARN |Specified block 'EX SURV LEAD PLUG' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.6| 0.0|WARN |Specified block 'EX SURV LEAD PLUG' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.6| 0.0|WARN |Specified block 'EX SURV OLD IRON PIN' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.6| 0.0|WARN |Specified block 'EX SURV LEAD PLUG' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.7| 0.0|WARN |Specified block 'EX SURV LEAD PLUG' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.7| 0.0|WARN |Specified block 'EX SURV OLD IRON PIN' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.7| 0.0|WARN |Specified block 'EX MISC POST' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.7| 0.0|WARN |Specified block 'EX MISC POST' is not defined in AutoCAD file. Skipping feature

2021-11-25 11:23:29| 353.7| 0.0|WARN |Further instances of this message will be suppressed

 

Have you set a AutoCad-Template?

Yes I have set a template file with all of the necessary layers, blocks, and linetypes defined within it. I've attached it here for reference. The workspace I uploaded earlier has a different template file set; it is one I created by using Autocad to manually build the combined drawing that I'm trying to get FME to do for me, so it not only contains the block definitions, but it is fully populated with multiple instances of those blocks as drawing objects, yet FME still fails to add them into the new drawing.

Userlevel 2
Badge +12

Blockname"EX SURV TRAVERSE HUB" is not "EX Surv Traverse Hub"

Autocad is not case sensitive when it comes to block names, so yes they are the same thing in there. I suppose the question is whether or not this matters to the FME writer; I don't know why it would, but it's something which I can test.

Thank you Tom for pointing me in the direction of string case. Although Autocad is agnostic, the FME writer does seem to be particular about the text case.

Reply