Skip to main content
Question

FME fails to convert properly hatches of AutoCAD to polygons,


jamal
Forum|alt.badge.img+5
FME fails to convert properly hatches of AutoCAD to polygons,

 

 

I’m still the first square where FME fails to interpret the "dirty" AutoCAD file properly.

 

 

 

I wanted to convert the hatches shown in the screenshots with the given workbench.

 

 

 

 

 

 

 

 

The result is improper. The polygon selected on the result (below) is not there in the original CAD file

 

 

 

 

CAD file:

 

 

http://www.mediafire.com/download/9vqkzoouri6uon5/Ramallah_Ramallah_MasterPlan__07_X.dwg

 

 

what might be the issue here?

 

 

Thank you

 

 

Best

 

 

Jamal

14 replies

samisnunu
Contributor
Forum|alt.badge.img+10
  • Contributor
  • April 7, 2014
Hi Jamal,

 

I think it's related to coordinates systems issue, try to view the data in the FME Data Inspector and apply a coordinates system, see if this overcomes the issue.

 

 

Sami

jamal
Forum|alt.badge.img+5
  • Author
  • April 7, 2014
Thanks Sami.

 

 

Correct. Opening the AutoCAD file from the “FME Data Inspector” shows the strange object there. In return, this object doesn’t appear in the AutoCAD file.

 

 

 

 

But how to apply coordinate system for this AutoCAD file?

 

 

By the way, the coordinate system is set in the workbench. Nevertheless, the strange object is generated.

 

 

 

 

What might be the issue here?

jamal
Forum|alt.badge.img+5
  • Author
  • April 7, 2014
By the way, this is similar to other problem that I have highlighted in pervious thread.

 

 

An object that “FME Data Inspector” but doesn’t in the AutoCAD file

 

 

 

 

 

 

CAD file:

 

http://www.mediafire.com/download/drac0zo1u0sa3c9/Halhul__Hebron_03_Landuse.dwg

samisnunu
Contributor
Forum|alt.badge.img+10
  • Contributor
  • April 7, 2014
Ok, can you upload the same .dwg file but saved in a lower AutocCAD versions, 2010, or 2007 

 


jamal
Forum|alt.badge.img+5
  • Author
  • April 8, 2014

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • April 8, 2014
hi Jamal,

 

 

the object is generated because it is actualy in the autocad file.

 

 

There are different reasons why a object can become "invisible" in autocad.

 

 

Some assosciation is probably deleted in hte autocad file, messing things up a bit.

 

 

U need to clean it either in (preferably) autocad or via fme.

 

 

Gio

samisnunu
Contributor
Forum|alt.badge.img+10
  • Contributor
  • April 8, 2014

 

I would agree with Gio, the odd objects are read as an aggregate (group).

 

 

filtering them out would solve the issue.

 

 

Snapshot 1: How autoCAD sees the file ( snapshot resolution below may not show exisiting hatched areas clearly)..

 

 

 

Snapshot 2 : Filtering out the aggregate objects (odds).

 

 

 

Snapshot 3: Output as seen in FME Data inspector

 


jamal
Forum|alt.badge.img+5
  • Author
  • April 8, 2014
Thank You GIO and Sami for the help.

 

 

Could you please Sami share the workbench that solves the issue of hatches?

 

 

Did you find how come the indicated objects appear in the FME but not on the AutoCAD in the “Halhul_Hebron_03_Landuse_02.dwg” file?

 

 


samisnunu
Contributor
Forum|alt.badge.img+10
  • Contributor
  • April 8, 2014
Sure, I shared the workspace with you.. you can find it in my Chatter section in the FMEPEdia

jamal
Forum|alt.badge.img+5
  • Author
  • April 9, 2014
Thank you very much Sami,

 

 

The only new tool in the workbench that you have already shared is “TestFilter”. This command can introduce critical problems

 

 

Please, try to apply it in the CAD file:

 

http://www.mediafire.com/download/qbefigbj9cc32d2/Marda_Salfit_UrbanMasterPlan_03.dwg

 

 

 

 

 

 


samisnunu
Contributor
Forum|alt.badge.img+10
  • Contributor
  • April 9, 2014
I see,..now this is different, you need to filter out the features that are not participants in the polygons that you need..These scatted objects can be eliminated using a GeometryFilter transformer, I attached you an updated version of the workspace..

 

 

Also another trick it to disable the option Expand Blocks into Entities..See snapshots below.

 

 

 

 

 

 


jamal
Forum|alt.badge.img+5
  • Author
  • April 9, 2014
Many thanks Sami for the massive efforts.

 

 

It works fine the Marda CAD file.

 

 

Now back to Ramallah. The modified workbench doesn’t correctly translate the AutoCAD file

 

 

 

 

 

 


samisnunu
Contributor
Forum|alt.badge.img+10
  • Contributor
  • April 12, 2014
That's weired, I ran the same script I shred with you for the three regions, and worked fine, with no missing features..see snapshots below

 

 

 

 

 

 

 


jamal
Forum|alt.badge.img+5
  • Author
  • April 13, 2014
Many thanks Sami foe the help,

 

 

Could you please re-share the workbench by which you have already extracted these polygons from the AutoCAD hatches? I should have the same result if I apply the same workbench with same data.

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